Hello Baptiste BC:=Baptiste Coudurier BC> Nicolas Jauffret wrote: BC> > On Thu, 29 Mar 2007 15:06:27 +0200, Andrea Barbieri BC> > <andrea.barbieri at movingimageresearch.com> wrote: BC> >> BC> >> try the conversion without video essence: BC> >> ffmpeg -i foo.avi -acodec mp3 out.mov BC> > BC> > => Readable with mplayer (no sound without "-demuxer lavf" parameter) BC> > => Readable with MacOS QtPlayer 7.1.5 BC> > BC> > So the problem seems well to come from the "copy" codec. BC> BC> No, problem might come from mplayer demuxer, if Quicktime plays it, BC> file has great chances to be correct. the point is that in this case the output is playable by both applications, when adding the video 'copy' codec this is not true anymore... BC> BC> >> the simpler the problem the better it is to pinpoint a possible bug BC> >> BC> >> could it be that the avi parser (unlike the wav parser) is not BC> >> filling up properly all the required parameters for the mov writer? BC> >> BC> >> you can use mpeg4ip or Dumpster (Apple quicktime downloadable tool) BC> >> to inspect the problematic movie clip BC> > BC> > $ ffmpeg -i foo.%d.jpg -i bar.wav -vcodec mpeg4 -acodec mp3 from_jpg.mov BC> >> /dev/null 2>&1 BC> > $ mp4info from_jpg.mov BC> > mp4info version 1.5.0.1 BC> > Track Type Info BC> > 1 video MPEG-4 Simple @ L1, 8.000 secs, 0 kbps, 640x352 @ BC> > 25.000000 fps BC> > 2 audio .mp3, 8.568 secs, 64 kbps, 48000 Hz BC> > BC> > $ ffmpeg -i foo.%d.jpg -i bar.wav -vcodec mpeg4 -acodec mp3 foo.avi > BC> > /dev/null 2>&1 BC> > $ ffmpeg -i foo.avi -vcodec copy -acodec mp3 from_avi.mov > /dev/null 2>&1 BC> > $ mp4info from_avi.mov BC> > mp4info version 1.5.0.1 BC> > Track Type Info BC> > 1 video FMP4, 8.000 secs, 378 kbps, 0x0 @ 25.000000 fps BC> > 2 audio .mp3, 8.616 secs, 64 kbps, 48000 Hz BC> > BC> > That is strange that the 2 sound streams have not the same duration. BC> BC> Well possible, I need to check. BC> BC> > That is also strange that the video tags are different. BC> BC> No, default ffmpeg mpeg4 codec tag in avi in FMP4, muxer by default BC> uses tag if it is set, patch welcome though. I think that the mov writer module is not behaving properly when creating the video track since the profile and level information is missing as well... the initial movie file (generated by the jpeg -> mov conversion) also appears to be incorrect/incomplete in terms of video track information (sample description atoms) the 0 kbps deducted info is the giveaway. best regards, andrea -- Andrea Barbieri Moving Image Research http://www.movingimageresearch.com/ The Workshop, Hampton Lane, Bristol, BS6 6LE, UK Tel: +44 117 9732200 FAX: +44 117 9732210 PGP ID=0x034DFD5A KeyFingerprint=C168EA9A7189538D214F1281A7529F32034DFD5A