[FFmpeg-user] Streaming two sources merged to one RTMP stream

corwin devcorwin at gmail.com
Thu Apr 17 17:28:14 CEST 2014

I have two video sources (one is webcam and another is video captured from the screen) and I want to stream it into one RTMP stream using ffmpeg. When I’m trying to run command:

ffmpeg -y -f vfwcap -i 0 -f dshow -i video="screen-capture-recorder" -r 25 -s 320x240 -vcodec libx264  -f flv "rtmp://example.com”  

Of course “example.com” should be another source. So when I’m running this command and then looking this stream using ffplay on the end side I can see only one stream.

Can you help me and tell what am I doing wrong?

More information about the ffmpeg-user mailing list