I need to implement a webrtc RTP sender client with decoupled 2 parts:
One is the H264 encoded stream source, which produce series of I- & P-frames (logically);
The other accepts the encoded video stream as input, and do RTP send stream to mediasoup SFU server.
The mediasoup-broadcaster-demo code depends on libmediasoupclient C++ client sdk, which further depends on libwebrtc, doesn’t provide useful sample code pieces for doing this.
When i take a look at the libwebrtc source, there is 2 concepts:
VideoFramewhich is normally taken as libwebrtc’s input type, but it’s YUV420p raw format and not encoded by codecs. The video encoding occurs internally in libwebrtc, which i don’t need, since i have
encoded video streamas input…
EncodedFramewhich seems exactly what i need, but there is no convenient way to construct by parsing from a H264 encode video stream…
Look for advice.
Maybe i should not use libwebrtc but switch to directly use ffmpeg’s source to do this?