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

Peter Wallis p.wallis at dcs.shef.ac.uk
Wed Mar 14 02:04:34 CET 2012


Should I expect an avi file to have "global headers:0kB" ?

Lets assume it works on WMP, just not on my flakey code ... just can't
figure out why.

P

On 13 March 2012 03:49, Peter Wallis <p.wallis at dcs.shef.ac.uk> wrote:

> 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