sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.32k stars 349 forks source link

Is it possible to capture live WebRTC video stream and transform it to RTMP stream using Libsourcey? #215

Closed MaksimDzhangirov closed 6 years ago

MaksimDzhangirov commented 6 years ago

I want to capture live WebRTC video stream and transform it to RTMP stream on server side. Is it possible using Libsourcey? If answer is yes, which example I should use as a starting point?

auscaster commented 6 years ago

We can do the WebRTC video capture part, but you would need to develop the RTMP conversion code yourself. Check the werrtctreamer sample for inspiration.

On 24 January 2018 at 11:18, Maksim Dzhangirov notifications@github.com wrote:

I want to capture live WebRTC video stream and transform it to RTMP stream on server side. Is it possible using Libsourcey? If answer is yes, which example I should use as a starting point?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sourcey/libsourcey/issues/215, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGKDIAEatJ6cpDAVlbPR0WONouZmuJ8ks5tNwNrgaJpZM4RrBP9 .

MaksimDzhangirov commented 6 years ago

FFMPEG can easy transform H.264/ACC stream to RTMP stream. In "WebRTC Native Video Streamer" demo you show how to stream realtime video to the the browser using LibSourcey and WebRTC. But I want to capture live WebRTC video stream from browser. In "WebRTC Native Video Recorder" can I set FFMPEG coding parameters like -preset, -tune, -r, -bufsize, output file extension, etc.?

auscaster commented 6 years ago

To capture the browser stream check webrtcrecorder, it captures a stream from the browser, and records using FFmpeg on the server - I'm sure you can modify that for your needs by modifying the recorder component.

On 24 January 2018 at 13:25, Maksim Dzhangirov notifications@github.com wrote:

FFMPEG can easy transform H.264/ACC stream to RTMP stream. In "WebRTC Native Video Streamer" demo you show how to stream realtime video to the the browser using LibSourcey and WebRTC. But I want to capture live WebRTC video stream from browser. In "WebRTC Native Video Recorder" can I set FFMPEG coding parameters like -preset, -tune, -r, -bufsize, output file extension, etc.?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sourcey/libsourcey/issues/215#issuecomment-360114669, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGKDHNy-EjJnsjRZ-_9rr48d2teYftpks5tNyEhgaJpZM4RrBP9 .