Click here to Skip to main content
14,384,229 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am using the Expression Encoder SDK 4 and when I send the video to display the preview it works.

The zip file is only 3k though. My code is shown below:
LiveJob job = new LiveJob();
job.AddDeviceSource(null,null);
job.OutputFormat.VideoProfile.FrameRate = 15;
job.OutputFormat.VideoProfile.Size = new Size(320,240);

fileOut = new FileArchivePublishFormat();
fileOut.OutputFileName = String.Format(textBox1.Text+"{0:yyyyMMddhhmmss}.wmv", DateTime.Now);
 
job.PublishFormats.Add(fileOut);
 
deviceSource = job.AddDeviceSource(video, audio);
deviceSource.PreviewWindow = new PreviewWindow(new HandleRef(panel1, panel1.Handle));

job.ActivateSource(deviceSource);
job.StartEncoding();
Does anyone have any tips?
Posted
Updated 12-Jul-11 6:11am
v2

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100