Created
July 19, 2021 15:41
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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