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.8k stars 581 forks source link

How to stream desktop and local mkv video files? #625

Open XingJinming-real opened 9 months ago

XingJinming-real commented 9 months ago

I don't know how to config the conf.json to make webrtc-streamer stream desktop captures and local video files. Below is my config file. I want to know how to modify it to make it work. conf Thanks very much for your help.

XingJinming-real commented 9 months ago

Machine: CPU:intel i7-11800h GPU:rtx-3060 laptop

Regarding local video streaming, I change the dir of the video, putting it to the root dir of the webrtc-streamer. Then the local video streaming works, but in a very leggy way, losing many frames.

And the screen capture still doesn't work.

Could you tell me how to improve the smoothness of the local video streaming and how to do screen capture.

Thanks!

mpromonet commented 9 months ago

Hi,

screen:// and window:// scheme are using names of the screen or window title to stream. You should be able to get this from /api/getMediaList if it was build with screen capture. It needs to have WEBRTCDESKTOPCAPTURE set to ON (it is default) and need to have gtk3 installed.

Best Regards, Michel.