Skip to content

Instantly share code, notes, and snippets.

@daviderickson
Created February 8, 2020 02:45
Show Gist options
  • Save daviderickson/441b8ce7b675cca837d4ed0fba5398bf to your computer and use it in GitHub Desktop.
Save daviderickson/441b8ce7b675cca837d4ed0fba5398bf to your computer and use it in GitHub Desktop.
ffmpeg
ffmpeg -f v4l2 -video_size 1920x1080 -framerate 30 -i /dev/video0 \
-filter_complex \
"[0:v]setpts=PTS-STARTPTS[bg]; \
[bg]overlay=shortest=1" \
-c:v libx264 output.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment