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
3.03k stars 608 forks source link

CPU load on Raspi #115

Closed dherman516 closed 6 years ago

dherman516 commented 6 years ago

I am seeing a 226% CPU load on my raspi3 with one 480p RTSP stream. Janus handles it with a 10% cpu load.. thoughts?

mpromonet commented 6 years ago

Janus doesnot uncompress & compress the video stream

dherman516 commented 6 years ago

Not trolling, is there a reason to do that?

mpromonet commented 6 years ago

webrtc::PeerConnectionFactoryInterface::CreateVideoSource doesnot support compressed input. Maybe this changed recently ?

dherman516 commented 6 years ago

Looking at Janus.. Did they write their own RTC components (did not use the google code base)? Maybe that explains it..

mpromonet commented 6 years ago

Janus gateway implement its own WebRTC stack. you can also have a look to https://github.com/kclyu/rpi-webrtc-streamer that implement use raspberry OMX features

dherman516 commented 6 years ago

I am working on a non-GPU equipped platform acting as a webrtc gateway. so, using OMX features would be a bandaid for my proof of concept, but not for what I need.. thanks for the link