Making a video from a set of frames can be done with transcode as follows. Disclaimer: this is mainly a reminder to myself, based on these instructions for making animations from frames, with some extra's.
First make a file with the filenames of the individual frames (in the right order of course). E.g. if the frames are named /tmp/0001.png
, /tmp/0002.png
, ..., /tmp/0100.png
:
$> ls /tmp/0*.png > framelist.txt
Also, indentify the size of the input frames. E.g. with ImageMagick's identify:
$> identify /tmp/0001.png
/tmp/0001.png PNG 400x300 400x300+0+0 DirectClass 65kb
Then invoke transcode with the frame list as input:
$> transcode -i framelist.txt \
-x imlist,null -g400x300 --use_rgb -z \
-y xvid,null -f25 -o frames.avi -H 0
the meaning of the different arguments:
-x
: the input video format (imlist) and audio format (null)-g
: the size of the frames (400x300 in this case)--use_rgb
: to indicate that the input color space is RGB-z
: to flip the input upside down (I need this to get the output video right)-y
: the output video format (xvid) and audio format (null)-f
: the frame rate-o
: the output video file-H 0
: disable autoprobing for the input format