allo- / virtual_webcam_background

Use a virtual webcam background and overlays with body-pix and v4l2loopback
GNU General Public License v3.0
306 stars 48 forks source link

Add MJPEG Webcam support #37

Closed frankenstein91 closed 4 years ago

frankenstein91 commented 4 years ago

I have found a way to switch the WebCam to MJPEG. Thereby higher FPS are possible. I'd appreciate it if you could check and apply it. It's worked for me so far.

allo- commented 4 years ago

This looks reasonable. Did you compare it to using the default input format (YUYV?) of your cam with FPS reduced to 20?

allo- commented 4 years ago

I rebased this onto master and added a commit replacing mjpeg_fps with fps.

I wonder if there should be a general input_format option, but probably it is better to keep it simple for now.

frankenstein91 commented 4 years ago

This looks reasonable. Did you compare it to using the default input format (YUYV?) of your cam with FPS reduced to 20?

my webcam can only do 5 FPS in YUYV and up to 30 on MJPG