mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
2.94k stars 598 forks source link

H264 transmission, too high CPU usage #209

Closed neucoreAn closed 5 years ago

neucoreAn commented 5 years ago

Running on ARM, the CPU takes up 70% of the total. It converts H264 into webrtc. Now can we directly transmit H264 data?

mpromonet commented 5 years ago

Hi neucoreAn, This question was often asked, actually the WebRTC SDK seems to need I420 frames, but maybe you could try to feed the rtc::VideoBroadcaster with an H264 frame ? or modify the WebRTC SDK to process H264 frames. An project that forward RTP packet without uncompression/compresion is janus-gateway Best Regards, Michel.