Trying to convert MOV to FLV on Centos 5.2. It creates the FLV file but when played the video is fine, but the audio is all jumbled in the first seconds of the video then stops. Here is the output. Getting a repeating error about an array index being out of range. I've found a few posts pertaining to a similar problem when trying to decode AAC, but found no solutions. Any ideas? Here is the command and output: ffmpeg -i files/24531589849279bb6c47dc.mov -sameq -acodec mp3 -ar 22050 -ab 32 -f flv -s 480x360 movies/0a49b400b29fc4c6/video.flv FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip libavutil version: 49.4.0 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Jun 4 2007 11:02:12, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1972f4]negative ctts, ignoring Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'files/24531589849279bb6c47dc.mov': Duration: 00:02:10.8, start: 0.000000, bitrate: 632 kb/s Stream #0.0(eng): Audio: aac, 32000 Hz, stereo Stream #0.1(eng): Video: h264, yuv420p, 320x240, 14.98 fps(r) PIX_FMT_YUV420P will be used as an intermediate format for rescaling Output #0, rawvideo, to 'movies/0a49b400b29fc4c6/thumb.png': Stream #0.0: Video: png, rgb24, 104x78, q=2-31, 200 kb/s, 14.98 fps(c) Stream mapping: Stream #0.1 -> #0.0 Press [q] to stop encoding frame= 1 fps= 0 q=0.0 Lsize= 3kB time=0.1 bitrate= 413.5kbits/s video:3kB audio:0kB global headers:0kB muxing overhead 0.000000% FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip libavutil version: 49.4.0 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Jun 4 2007 11:02:12, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52) [mov,mp4,m4a,3gp,3g2,mj2 @ 0xca62f4]negative ctts, ignoring Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'files/24531589849279bb6c47dc.mov': Duration: 00:02:10.8, start: 0.000000, bitrate: 632 kb/s Stream #0.0(eng): Audio: aac, 32000 Hz, stereo Stream #0.1(eng): Video: h264, yuv420p, 320x240, 14.98 fps(r) PIX_FMT_YUV420P will be used as an intermediate format for rescaling Output #0, rawvideo, to 'movies/0a49b400b29fc4c6/preview.png': Stream #0.0: Video: png, rgb24, 480x360, q=2-31, 200 kb/s, 14.98 fps(c) Stream mapping: Stream #0.1 -> #0.0 Press [q] to stop encoding frame= 1 fps= 0 q=0.0 Lsize= 60kB time=0.1 bitrate=7362.1kbits/s video:60kB audio:0kB global headers:0kB muxing overhead 0.000000% FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip libavutil version: 49.4.0 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Jun 4 2007 11:02:12, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52) [mov,mp4,m4a,3gp,3g2,mj2 @ 0xca62f4]negative ctts, ignoring Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'files/24531589849279bb6c47dc.mov': Duration: 00:02:10.8, start: 0.000000, bitrate: 632 kb/s Stream #0.0(eng): Audio: aac, 32000 Hz, stereo Stream #0.1(eng): Video: h264, yuv420p, 320x240, 14.98 fps(r) Output #0, flv, to 'movies/0a49b400b29fc4c6/video.flv': Stream #0.0: Video: flv, yuv420p, 480x360, q=2-31, 200 kb/s, 14.98 fps(c) Stream #0.1: Audio: mp3, 22050 Hz, stereo, 0 kb/s Stream mapping: Stream #0.1 -> #0.0 Stream #0.0 -> #0.1 Press [q] to stop encoding [aac @ 0x557d24]faac: frame decoding failed: Array index out of range Error while decoding stream #0.0 [aac @ 0x557d24]faac: frame decoding failed: Array index out of range Error while decoding stream #0.0 [aac @ 0x557d24]faac: frame decoding failed: Array index out of range Error while decoding stream #0.0 ... (error message is repeated) -- Joey Marino
On date Saturday 2008-11-22 01:45:00 -0500, Joey Marino encoded:
Trying to convert MOV to FLV on Centos 5.2. It creates the FLV file but when played the video is fine, but the audio is all jumbled in the first seconds of the video then stops. Here is the output. Getting a repeating error about an array index being out of range. I've found a few posts pertaining to a similar problem when trying to decode AAC, but found no solutions. Any ideas?
Here is the command and output:
ffmpeg -i files/24531589849279bb6c47dc.mov -sameq -acodec mp3 -ar 22050 -ab 32 -f flv -s 480x360 movies/0a49b400b29fc4c6/video.flv FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al. [...]
Sorry but this version is outdated, retry with latest SVN which also contains a native AAC decoder. Regards. -- ffmpeg-user random tip #1 The -b (bitrate) and -ab (audio bitrate) ffmpeg options take as argument a bitrate expressed in bits per second, and not in Kbits per second as in previous versions. Change your command lines accordingly.
ffmpeg -i files/24531589849279bb6c47dc.mov -sameq -acodec mp3 -ar 22050 -ab 32 -f flv -s 480x360 movies/0a49b400b29fc4c6/video.flv Alternatively extract the audio only and use faad to convert the AAC to WAV and rejoin to the FLV.? Although that does make the one step a three step process.? It's the only way I could get AAC to convert for Samsung HMX20C .MP4 files.? Otherwise very similar issues to yours.
$ ffmpeg -i file.mov -vn -acodec copy file.aac $ faad -o file.wav file.aac $ ffmpeg -i file.mov -an -sameq -f yuv4mpegpipe - | ffmpeg -f yuv4mpegpipe -i - -sameq? -i file.wav -acodec mp3 -ar 22050 -ab 32 -f flv -s 480x360 file.flv Using the yuv4mpegpipe to overcome adding in external audio when using -an on the initial source file.? And I can 2> /dev/null on the first half of the pipe to quiet all of those warnings for the Samsung SC-HMX20C HD camcorder.? I don't know if that means that ffmpegs AAC decoder is flawed or not.? But it didn't seem to work for me either.? SVN version 15874 (11/18/2008). - James
participants (3)
-
joey.da3rd@gmail.com -
stefano.sabatini-lala@poste.it -
wwwshadow7@yahoo.com