chenxiaoqino / getusermedia-to-rtmp

186 stars 61 forks source link

what if I have multiple media input #13

Closed Yidada closed 5 years ago

Yidada commented 5 years ago

If I have multiple input, like two usermedia input, I want to combine these input togethor. How to config the ffmpeg options, may i use double '-i', '-', '-i', '-' ?

chenxiaoqino commented 5 years ago

Hi Yida,

Yes, it is entirely possible to use ffmpeg to combine multiple sources. However, it's not straightforward how to pass the two streams from the browser into a single ffmpeg inside emscripten via socketio. If you can upload them separately into two different RTMP address via two separate web pages, then use the concatenate feature of ffmpeg (read from two RTMP streams, then write into a third one).

chenxiaoqino commented 5 years ago

Feel free to reach me out via email, and we can discuss your particular use case and more possibilities offline.

Yidada commented 5 years ago

Feel free to reach me out via email, and we can discuss your particular use case and more possibilities offline.

Thanks for answer, I'm very grad to discuss this use case with you via email, And my email address is zydvip@yeah.net.

PNixx commented 4 years ago

I am interested in the same idea. Have you found a way to do this?