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.83k stars 582 forks source link

Why doesn't adding - o capture the desktop anymore? I want to capture the desktop and reduce CPU usage #587

Closed zhuya1996 closed 2 months ago

zhuya1996 commented 1 year ago

Why doesn't adding - o capture the desktop anymore? I want to capture the desktop and reduce CPU usage

mpromonet commented 1 year ago

Hi,

Because -o use H264 frame, desktop capture is not compressed. You need to find a way to compressed it.

Best Regards, Michel.

zhuya1996 commented 1 year ago

Is webrtc streamer currently using the H264 codec or VP8???

mpromonet commented 1 year ago

Hi,

Using -o, only h264 is added to supported codec. Without it supports codec supported by webrtc, h264, vp8, ans others... You Can sée this in the /call answer.

Best Regards Michel

zhuya1996 commented 1 year ago

I want to share video conference screens with you, but now the CPU takes up a large proportion. I want to use less than 3% of the CPU. Is it the only way to add gpu hard coding? - o supports rtsp, but does not support screen sharing? Can desktop capture be forwarded directly using -0?

thank you