Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I try to create a profile for Video. Because I don't know how to create, I follow the Windows media Encoder and make this method.
private void createNewProfie() {
             this.newProfile = new WMEncProfile2();
             this.newProfile.ContentType = 17;
            newProfile.set_InterlaceMode(0,true);
             this.newProfile.set_VBRMode(WMENC_SOURCE_TYPE.WMENC_AUDIO, 0, WMENC_PROFILE_VBR_MODE.WMENC_PVM_NONE);
             this.newProfile.set_VBRMode(WMENC_SOURCE_TYPE.WMENC_VIDEO, 0, WMENC_PROFILE_VBR_MODE.WMENC_PVM_NONE);


             newProfile.AddAudience(100000);
            IWMEncAudienceObj audience= newProfile.get_Audience(0);
            audience.SetAudioConfig(0,1,8000,8000,16);
            
        }

I show error "value does not fall within the expected range" when
Encoder.run();

What I have to change or any additional config?
Posted
Updated 18-Nov-10 2:10am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900