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.31k stars 347 forks source link

Stream to WEBRtc from capture device #209

Closed rn3kk closed 6 years ago

rn3kk commented 6 years ago

Hello. We need send stream from capture device to web page. What need for create this with using libsourcey library?

auscaster commented 6 years ago

You can achieve exactly that with the webrtccapturer sample!

rn3kk commented 6 years ago

Ok, I see it. But for capture device I see into input codec context codec is AV_CODEC_ID_RAWVIDEO. What should I do ? I need encode input raw frame using h264 codec and emit his? I don't have a output context, because have not created output stream/file and don have muxing audio and video (need only video data).