Skip to content

Instantly share code, notes, and snippets.

@cheuerde
Created October 20, 2015 15:36
Show Gist options
  • Save cheuerde/eb95083c8cf736239482 to your computer and use it in GitHub Desktop.
Save cheuerde/eb95083c8cf736239482 to your computer and use it in GitHub Desktop.
Extract images from video ffmpeg
# Claas Heuer, October 2015
#
# first get ffmpeg (http://superuser.com/a/865744)
sudo echo deb http://www.deb-multimedia.org stable main non-free >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install deb-multimedia-keyring
sudo apt-get update
sudo apt-get install ffmpeg
# go to video directory and extract images (http://unix.stackexchange.com/a/185879)
# -r indicates how many frames per second
ffmpeg -i inputfile.avi -r 1 -f image2 image-%3d.jpeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment