./nfo/linux/ffmpeg.tga.sequence.nfo
=================================================================
Create mpeg4 encoded avi video container from tga image sequence:
=================================================================
-------------------------------------
# If needed, convert sequence to tga:
-------------------------------------
for f in *.tif ; do convert -verbose $f `basename $f tif`tga; done
-----------------------------------------------
# Create avi video container from tga sequence:
-----------------------------------------------
ffmpeg -f image2 -sameq -i image.%03d.tga -r 25 output.avi
------
Notes:
------
# "%03d" is used for a number padding of three (image.123.tga), for
# images with a number padding of four (image.1234.tga), use "%04d".
#
# -f = Force format.
# -i = Input filename(s).
# -sameq = Use same video quality as source (implies VBR).
# -r = Output framerate.
------------------------------------
Adding audio to the video container:
------------------------------------
ffmpeg -i source.avi -i new_audio.wav \
-vcodec copy -acodec copy \
-acodec copy \
destination.avi \
-newaudio
# Offset the audio start time by HH:MM:SS.frames:
ffmpeg -i source.avi -ss 00:03:04.15 -i new_audio.wav \
-vcodec copy -acodec copy \
-acodec copy -t 00:00:36\
destination.avi \
-newaudio
----------
Reference:
----------
http://ffmpeg.org/ffmpeg-doc.html