On Thu, 29 Mar 2007 18:34:50 +0200, Baptiste Coudurier <baptiste.coudurier at smartjog.com> wrote:
Nicolas Jauffret wrote:
On Thu, 29 Mar 2007 15:06:27 +0200, Andrea Barbieri <andrea.barbieri at movingimageresearch.com> wrote:
try the conversion without video essence: ffmpeg -i foo.avi -acodec mp3 out.mov
=> Readable with mplayer (no sound without "-demuxer lavf" parameter) => Readable with MacOS QtPlayer 7.1.5
So the problem seems well to come from the "copy" codec.
No, problem might come from mplayer demuxer, if Quicktime plays it, file has great chances to be correct.
The fact is, Quicktime does not play its sound, if "-vcodec copy" is used to generate the mov file. With MacOs Quicktime 7.1.5 : - from a jpg sequence => all is Ok. - from an avi file => the "-vcodec copy" causes a sound reading problem.
the simpler the problem the better it is to pinpoint a possible bug
could it be that the avi parser (unlike the wav parser) is not filling up properly all the required parameters for the mov writer?
you can use mpeg4ip or Dumpster (Apple quicktime downloadable tool) to inspect the problematic movie clip
$ ffmpeg -i foo.%d.jpg -i bar.wav -vcodec mpeg4 -acodec mp3 from_jpg.mov
/dev/null 2>&1 $ mp4info from_jpg.mov mp4info version 1.5.0.1 Track Type Info 1 video MPEG-4 Simple @ L1, 8.000 secs, 0 kbps, 640x352 @ 25.000000 fps 2 audio .mp3, 8.568 secs, 64 kbps, 48000 Hz
$ ffmpeg -i foo.%d.jpg -i bar.wav -vcodec mpeg4 -acodec mp3 foo.avi > /dev/null 2>&1 $ ffmpeg -i foo.avi -vcodec copy -acodec mp3 from_avi.mov > /dev/null 2>&1 $ mp4info from_avi.mov mp4info version 1.5.0.1 Track Type Info 1 video FMP4, 8.000 secs, 378 kbps, 0x0 @ 25.000000 fps 2 audio .mp3, 8.616 secs, 64 kbps, 48000 Hz
That is strange that the 2 sound streams have not the same duration.
Well possible, I need to check.
Thank you.
That is also strange that the video tags are different.
No, default ffmpeg mpeg4 codec tag in avi in FMP4, muxer by default uses tag if it is set, patch welcome though.
Ok, thanks for the information. Nicolas