Created
March 7, 2013 01:58
-
-
Save chrismullins/5104964 to your computer and use it in GitHub Desktop.
Encoding video with ffmpeg for COMP715
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
# first, get ffmpeg | |
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg | |
# next, configure it | |
cd ffmpeg | |
./configure --disable-yasm | |
# build it (-j<# of cores>) | |
make | |
# Paraview saved all the images into a directory called | |
# 3a-animation, like this: 3a.0000.png, 3a.0001.png | |
# all the way through 3a.0500.png. | |
# | |
# This command takes those images and encodes them, saving | |
# into a file named 3a.avi | |
./ffmpeg -f image2 -i ../3a-animation/3a.0%04d.png ../3a.avi | |
# However, what you get won't be all that good. Let's try it | |
# again with a lossless codec | |
./ffmpeg -i ../3a-animation/3a.%04d.png -vcodec huffyuv ../3a-huffyuv.avi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment