How to specify encoding bitrate while capturing from a webcam - MS Expression Encoder 4 -
i have program capture , save live webcam video. taken sample programs coming expression encoder 4.
livejob job = new livejob(); encoderdevice video = encoderdevices.finddevices(encoderdevicetype.video).count > 0 ? encoderdevices.finddevices(encoderdevicetype.video)[0] : null; encoderdevice audio = encoderdevices.finddevices(encoderdevicetype.audio).count > 0 ? encoderdevices.finddevices(encoderdevicetype.audio)[0] : null; livedevicesource devicesource = job.adddevicesource(video, audio); job.activatesource(devicesource); //when start encoding button clicked. fileout.outputfilename = "c:\\output\\capture\\video1.wmv"; job.publishformats.add(fileout); job.startencoding(); //when stop encoding button clicked. job.startencoding();
how specify bitrate of encoded video.
you need add format
windowsmediaoutputformat outputformat = new windowsmediaoutputformat(); advancedvc1videoprofile profile = new advancedvc1videoprofile(); profile.bitrate = 1; outputformat.videoprofile = profile; job.outputformat = outputformat;
Comments
Post a Comment