[FFmpeg-user] header information in generated avi file?
p.wallis at dcs.shef.ac.uk
Wed Mar 14 02:12:56 CET 2012
the frame rate was too low. using -r 25 rather than -r 5 works
I am going to assume that, indeed, avi files do not have a header (!) and
my Java JMF code is not prefetching properly.
On 14 March 2012 01:04, Peter Wallis <p.wallis at dcs.shef.ac.uk> wrote:
> 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.
> 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,
More information about the ffmpeg-user