Skip to content

Instantly share code, notes, and snippets.

@cloudnull
Created July 19, 2021 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cloudnull/509198b53f76dc80a15ede5e7eac998e to your computer and use it in GitHub Desktop.
Save cloudnull/509198b53f76dc80a15ede5e7eac998e to your computer and use it in GitHub Desktop.
Alias used to start and stop webcam access. Assumes the kernel module `v4l2loopback` is loaded.
# Make sure you load the v4l2 kernel module
# $ modprobe v4l2loopback exclusive_caps=1 max_buffer=2
alias m200-webcam='gphoto2 --set-config="/main/capturesettings/liveviewsize=Medium" --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -deinterlace -threads 0 -vf lut3d=${HOME}/Documents/GC_Cinestyle-Rec709.cube -f v4l2 $1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment