-
-
Save johnbender/84f47d78cccbf0c632e0 to your computer and use it in GitHub Desktop.
This file contains 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
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