jremmons / pyfakewebcam

A library for writing RGB frames to a fake webcam device on Linux!
GNU Lesser General Public License v3.0
9 stars 2 forks source link

Get a green screen #9

Open jbrownkramer opened 4 years ago

jbrownkramer commented 4 years ago

I am able to manipulate my webcam image and display it to screen. However, if I pass it into a pyfakewebcam camera, the feed I get when I ffplay /dev/video2 is the SIZE I set, but not the image. It's just green. Any ideas?

parthsarthiprasad commented 4 years ago

hi, @jbrownkramer I have faced similar issues in the past with MVI errors and frame drops with camera and green screen, this might happen if your opencv resolutions are not working fine with frames passes, you can manually try changing them by

IMG_W = 640
IMG_H = 480

alternatively also try setting input video resolutions in ffplay//ffmpeg which might fix the issue. Try these options and let me know. Thanks.