The LiveSource sample is a Windows Presentation Foundation (WPF) application that checks for valid audio and video input sources, such as webcams, and displays them in a preview window.
To encode using the LiveSource sample
Build the LiveSourceSample.csproj and run LiveSource.vshost.exe. You will see any available audio and video sources in the Preview window. You can also monitor any audio or video that the source is capturing.
To capture and encode the source, click Encode. The application uses default settings to encode the captured audio and video.
To stop encoding, press Stop or exit the application. After encoding is complete, the application saves the encoded file in the C:\output folder with a time-and-date stamp.