#
FFMPEG streaming
Our SDK offers the capability to stream video from multiple sources directly into FFMPEG, started as an external process. You can use GPL/LGPL FFMPEG builds with any configurations of video/audio codecs and muxers.
You can configure FFMPEG to save the stream to a file, stream it to a server, or use it for any other purpose.
#
Sample code
We'll use the Main Demo as a video source and FFMPEG as a streaming target. FFMPEG will be configured to save the stream to an MP4 file with H264 code used for compression.
#
Configure Main Demo
Set the Preview mode and enable the Virtual Camera SDK output checkbox. Or do it in code.
VideoCapture1.Virtual_Camera_Output_Enabled = true;
Start the Main Demo (or your code) video streaming.
#
Configure FFMPEG
Start FFMPEG as an external process with the following command line:
ffmpeg -f dshow -i video="VisioForge Virtual Camera" -c:v libopenh264 output.mp4
You can use the VisioForge Virtual Audio Card
as an audio source.
#
Required redists
- Base redist
- SDK redist
- Virtual Camera SDK redist
Check the Deployment page for more information.
Visit our GitHub page to get more code samples.