On Thu, 29 Mar 2007 15:06:27 +0200, Andrea Barbieri <andrea.barbieri at movingimageresearch.com> wrote:
Hello,
my suggestion below
NJ:=Nicolas Jauffret
NJ> On Thu, 29 Mar 2007 14:28:29 +0200, Andrea Barbieri NJ> <andrea.barbieri at movingimageresearch.com> wrote: NJ> NJ> >Hello, NJ> > NJ> >NJ:=Nicolas Jauffret NJ> > NJ> > NJ> ...snip... NJ> > NJ> NJ> > NJ> > > NJ> And, how come it does not return an error code to the NJ> > NJ> > > NJ> shell ? NJ> > NJ> > > NJ> > NJ> > >another bug? NJ> > NJ> > NJ> > NJ> >That may be a bug. NJ> > NJ> NJ> > NJ> How to report it to developpers ? NJ> > NJ> >as mentioned in http://ffmpeg.mplayerhq.hu/mailinglists.html NJ> >in theory it should be sufficient to post it to the ffmpeg-user list (as NJ> >you obviously have done in the first place)... NJ> > NJ> >as suggested by Baptiste it seems that one also needs to subscribe to NJ> >the ffmpeg-devel list and report it there (it seems a bit weird to me NJ> >though, because that list is dedicated to those participating in the NJ> >active development of ffmpeg) NJ> NJ> Thank you for your quick answers. NJ> That's too bad ffmpeg does not manage well the quicktime mov format NJ> conversion. NJ> From a jpeg sequence, there is no problem. NJ> But when I try to convert an avi file, there is a problem with the sound NJ> stream. NJ> Would you know any way to circumvent this problem ? NJ> NJ> ffmpeg -i foo.%d.jpg -i bar.wav -vcodec mpeg4 -acodec mp3 out.mov NJ> => Readable with mplayer (no sound without "-demuxer lavf" parameter) NJ> => readable with MacOS QtPlayer 7.1.5 NJ> NJ> ffmpeg -i foo.avi -vcodec copy -acodec mp3 out.mov NJ> => Readable with mplayer (no sound without "-demuxer lavf" parameter) NJ> => Unreadable with MacOS QtPlayer 7.1.5 NJ>
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.
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. That is also strange that the video tags are different. I installed dumpster but could not extract any information from it. Best regards, Nicolas PS: Offtopic, mp4info seems to have problems getting information from "avi" files. $ mp4info foo.avi ; echo $? mp4info version 1.5.0.1 mp4info: can't open foo.avi 0 # Of course, the rights are ok for foo.avi # and "of course", no error code is set by mp4info...