Skip to content

Instantly share code, notes, and snippets.

@johnbender
Created July 25, 2012 21:01
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 johnbender/84f47d78cccbf0c632e0 to your computer and use it in GitHub Desktop.
Save johnbender/84f47d78cccbf0c632e0 to your computer and use it in GitHub Desktop.
OUTRES="1280x720"
FPS="30"
QUAL="superfast"
ffmpeg \
-f alsa -ac 2 -i pulse \
-f x11grab -s 1680x1050 -r "$FPS" -i :0.0+0,0 -aspect 16:10 \
-vf "movie=/dev/video0:f=video4linux2, setpts=N/($FPS*TB) [movie]; [in][movie] overlay=main_w-overlay_w:0 [out]" \
-vcodec libx264 -vpre "$QUAL" -s "$OUTRES" \
-acodec libmp3lame -ab 128k -ar 22050 \
-threads 8 \
~/foo.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment