Hello, BC:=Baptiste Coudurier BC> Hi BC> BC> Andrea Barbieri wrote: BC> > Hello, BC> > BC> > NJ:=Nicolas Jauffret BC> > BC> > NJ> Hello, BC> > NJ> BC> > NJ> I would like to simply convert from an ".avi" file to a ".mov" file. BC> > NJ> The input file is "from_jpg.avi" (it has been generated from a jpeg sequence BC> > NJ> and a wav file BC> > NJ> with this command : ffmpeg -i foo.%d.jpg -i bar.wav -vcodec mpeg4 -acodec BC> > NJ> mp3 from_jpg.avi) BC> > NJ> BC> > NJ> $ ffmpeg -i from_jpg.avi BC> > NJ> FFmpeg version SVN-r8540, Copyright (c) 2000-2007 Fabrice Bellard, et al. BC> > NJ> configuration: --enable-gpl --enable-static --enable-swscaler BC> > NJ> --enable-pthreads --enable-libmp3lame --enable-libogg --enable-xvid BC> > NJ> --disable-ffserver --extra-ldflags=-static --enable-memalign-hack BC> > NJ> libavutil version: 49.4.0 BC> > NJ> libavcodec version: 51.40.2 BC> > NJ> libavformat version: 51.11.0 BC> > NJ> built on Mar 29 2007 11:04:31, gcc: 3.3.1 BC> > NJ> Input #0, avi, from 'from_jpg.avi': BC> > NJ> Duration: 00:00:08.5, start: 0.000000, bitrate: 2881 kb/s BC> > NJ> Stream #0.0: Video: mpeg4, yuv420p, 640x352, 25.00 fps(r) BC> > NJ> Stream #0.1: Audio: mp3, 48000 Hz, stereo, 64 kb/s BC> > NJ> Must supply at least one output file BC> > NJ> BC> > NJ> $ ffmpeg -i from_jpg.avi -vcodec copy -acodec copy from_avi.mov ; echo $? BC> > NJ> FFmpeg version SVN-r8540, Copyright (c) 2000-2007 Fabrice Bellard, et al. BC> > NJ> configuration: --enable-gpl --enable-static --enable-swscaler BC> > NJ> --enable-pthreads --enable-libmp3lame --enable-libogg --enable-xvid BC> > NJ> --disable-ffserver --extra-ldflags=-static --enable-memalign-hack BC> > NJ> libavutil version: 49.4.0 BC> > NJ> libavcodec version: 51.40.2 BC> > NJ> libavformat version: 51.11.0 BC> > NJ> built on Mar 29 2007 11:04:31, gcc: 3.3.1 BC> > NJ> Input #0, avi, from 'from_jpg.avi': BC> > NJ> Duration: 00:00:08.5, start: 0.000000, bitrate: 2881 kb/s BC> > NJ> Stream #0.0: Video: mpeg4, yuv420p, 640x352, 25.00 fps(r) BC> > NJ> Stream #0.1: Audio: mp3, 48000 Hz, stereo, 64 kb/s BC> > NJ> Output #0, mov, to 'from_avi.mov': BC> > NJ> Stream #0.0: Video: mpeg4, yuv420p, 640x352, q=2-31, 25.00 fps(c) BC> > NJ> Stream #0.1: Audio: mp3, 48000 Hz, stereo, 64 kb/s BC> > NJ> Stream mapping: BC> > NJ> Stream #0.0 -> #0.0 BC> > NJ> Stream #0.1 -> #0.1 BC> > NJ> [mov @ 0x84f4340]track 1: codec frame size is not set BC> > NJ> Could not write header for output file #0 (incorrect codec parameters ?) BC> > NJ> 0 BC> > NJ> BC> > NJ> Would you know what is wrong ? As nothing seems special in my ffmpeg BC> > NJ> command line... BC> > BC> > I believe that this is a long standing issue when using the 'copy' codec BC> > and the 'mov' output format (and 'mp4' as well)... BC> > BC> > In my experience any valid input file (and media essence) when asked to be BC> > simply rewrapped in quicktime file format it leads to this error. BC> > BC> > The same command line with one simple change to 'avi' format completes BC> > without any problems... BC> > BC> > If my memory serves well I've been noticing this issue since I started BC> > using ffmpeg around r6000 BC> BC> Yes, mov muxer needs frame_size, since all timestamps in mov/mp4/3gp BC> are based on frame duration. BC> BC> Problem here is that avi and/or parsers do not set frame_size, BC> therefore muxer is complaining. any way to get around the issue in the current release? if not, would this capability be added to ffmpeg? BC> BC> > NJ> And, how come it does not return an error code to the shell ? BC> > BC> > another bug? BC> > BC> BC> That may be a bug. BC> BC> 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