[FFmpeg-user] header information in generated avi file?

Peter Wallis p.wallis at dcs.shef.ac.uk
Tue Mar 13 04:49:16 CET 2012


Hi All,
  I'm trying to generate a video (mjpeg) from a jpeg image with sound.

ffmpeg -loop_input -shortest -r 5 -i f01.jpg -i f01.wav -acodec pcm_s16le
-ar 44100 -ac 1 -vcodec mjpeg -y f01.avi

The resulting avi file works on most players (although there is in some
cases confusion about when the stop playing) but, when I play it with an
application I have written using JMF (I know ...) I get no sound and no
image - although the duration is correct.  The JMF application works on
other avi files.

I am assuming the above command is not producing some of the header
information?  Should I be using the -type option?  If so what type do I
want?  I see there is an option for reading the data, producing a header
and then adding it back in, but the manual does not say how to do it; just
that it is possible.

Any help much appreciated,

peter


More information about the ffmpeg-user mailing list