Created
October 20, 2015 15:36
-
-
Save cheuerde/eb95083c8cf736239482 to your computer and use it in GitHub Desktop.
Extract images from video ffmpeg
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
# 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