Skip to content

Instantly share code, notes, and snippets.

@chrismullins
Created March 7, 2013 01:58
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 chrismullins/5104964 to your computer and use it in GitHub Desktop.
Save chrismullins/5104964 to your computer and use it in GitHub Desktop.
Encoding video with ffmpeg for COMP715
# 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