ammen99 / wf-recorder

MIT License
870 stars 63 forks source link

Issues with v4l2loopback, slurp and zoom #132

Open juacq97 opened 3 years ago

juacq97 commented 3 years ago

Hi! I'm trying to use wf-recorder with zoom (I know, this is a common thing here). It works fine when I want to share all my screen, but I want to share just a part of the screen. I tried with slurp with wf-recorder -g "$(slurp)" --muxer=v4l2 --codec=rawvideo --file=/dev/video2 -x yuv420p. It works, but not as expected. Sometimes the output on Zoom is cropped, sometimes I get weird glitches and sometimes looks just fine. Inthe video you can see how it looks for me (the PC) and how will look for every else (the iPad).

I think this is more a limitation of Zoom rather than wf-recorder, since I can record the screen without problems. There's any workaround for this? I don't want to share my entire screen just to project a image to my students.

Thanks!!

https://user-images.githubusercontent.com/7623047/103380454-2aeaf580-4aa6-11eb-92b7-1c1d4c8614c1.mp4

soreau commented 3 years ago

It appears to me, that if you feed zoom a stream that doesn't match the aspect ratio of the client, it scale/crops/centers the video.