Skip to content

Instantly share code, notes, and snippets.

View cwgreene's full-sized avatar

Chris Greene cwgreene

  • Exploding at the origin
View GitHub Profile
@mds2
mds2 / launch_virtual_webcam.sh
Last active November 11, 2021 00:08
shader video effect for zoom (on linux)
# run this one *after* running setup_virtual_webcam.sh
# it will require a variety of gstreamer plugins
# it will also take over your main webcam.
# Kill the process(es) this launches to regain control of your main webcam
gst-launch-1.0 --gst-debug -v v4l2src device=/dev/video0 ! video/x-raw,width=640,height=360 ! videoconvert ! video/x-raw,format=RGBA ! glupload ! glshader fragment="\"`cat myshader.frag`\"" ! gldownload ! video/x-raw,width=640,height=360 ! queue ! videoconvert ! video/x-raw,format=I420,framerate=30/1 ! v4l2sink device=/dev/video10