Skip to content

Instantly share code, notes, and snippets.

@junjuew
Created December 21, 2017 03:56
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 junjuew/ad307ba89e11f4f9450596b480dcbd56 to your computer and use it in GitHub Desktop.
Save junjuew/ad307ba89e11f4f9450596b480dcbd56 to your computer and use it in GitHub Desktop.
ffmpeg cheatsheet
mkfifo /tmp/testpipe
while true; do ffmpeg -f v4l2 -s 1280x720 -i /dev/video0 -f rawvideo -video_size 1280x720 -pix_fmt rgb24 - | ffmpeg -f rawvideo -video_size 1280x720 -pix_fmt rgb24 -i - -f rawvideo -pix_fmt rgb24 -video_size 1280x720 - > /tmp/testpipe; wait; done
cat /tmp/testpipe | mplayer -nosound -framedrop -benchmark -nostop-xscreensaver -nolirc -demuxer rawvideo -rawvideo w=1280:h=720:format=rgb24 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment