Cannot record Bitrate-based audio using Windows media encoder -
i want record video webcam , sound microphone using windows media encoder. set profile record audio using bitrate-based mode , video using cbr.
this.newprofile = new wmencprofile2(); this.newprofile.validatemode = true; this.newprofile.contenttype = 17; this.newprofile.set_vbrmode(wmenc_source_type.wmenc_audio, 0, wmenc_profile_vbr_mode.wmenc_pvm_bitrate_based); this.newprofile.set_vbrmode(wmenc_source_type.wmenc_video, 0, wmenc_profile_vbr_mode.wmenc_pvm_none); newprofile.addaudience(400000); iwmencaudienceobj audience = newprofile.get_audience(0); audience.set_videocodec(0, 3); audience.set_videobitrate(0, 700000); audience.set_videofps(0, 25000); audience.set_videokeyframedistance(0, 5000); audience.set_videobuffersize(0, 3000); audience.set_videowidth(0,800); audience.set_videoheight(0, 600); audience.set_audiocodec(0, 1); audience.setaudioconfig(0, 2, 44100, 192000, 16); this.newprofile.validate(); however, video output has no sound. it's work in cbr mode.
i konw bitrate-based vbr, encoder must start(encoder.start();) twice. now, can record sound.
Comments
Post a Comment