Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
5.00/5 (1 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:
C#
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 5:11am
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