I am trying to convert a 15.3 second .avi clip to .flv with the following: ffmpeg -y -i /path/to/avi/12.avi -acodec mp3 -f flv /path/to/flv/14.flv The resulting flv seems to think it is 15.8 seconds long but takes over 20 seconds to actually play - audio and video are in synch but it simply plays in slow motion. The same happens when I try to convert a 3GP clip. I am using the latest subversion checkout and I get the following when I run the command: FFmpeg version SVN-r5827, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-amr_nb --enable-amr_wb --enable-gpl --enable-mp3lame libavutil version: 49.0.0 libavcodec version: 51.10.0 libavformat version: 50.5.0 built on Jul 25 2006 20:41:25, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2) Input #0, avi, from '/path/to/avi/12.avi': Duration: 00:00:15.4, start: 0.000000, bitrate: 1279 kb/s Stream #0.0: Video: mjpeg, yuvj420p, 320x240, 15.07 fps(r) Stream #0.1: Audio: pcm_u8, 8000 Hz, mono, 64 kb/s Output #0, flv, to '/path/to/flv/14.flv': Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 15.07 fps(c) Stream #0.1: Audio: mp3, 8000 Hz, mono, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding [mp3 @ 0x83b90d8]lame: output buffer too small (buffer index: 321, free bytes: 1983) frame= 232 q=15.8 Lsize= 625kB time=15.3 bitrate= 334.0kbits/s video:498kB audio:120kB global headers:0kB muxing overhead 1.148812% I am relatively new to ffmpeg but have trawled to find an existing answer to this but have run up against a brick wall. If anyone has any pointers it would be much appreciated. Could the problem be with this lame output buffer issue? Best Tom
Tom Percival wrote:
I am trying to convert a 15.3 second .avi clip to .flv with the following:
ffmpeg -y -i /path/to/avi/12.avi -acodec mp3 -f flv /path/to/flv/14.flv
The resulting flv seems to think it is 15.8 seconds long but takes over 20 seconds to actually play - audio and video are in synch but it simply plays in slow motion. The same happens when I try to convert a 3GP clip.
I am using the latest subversion checkout and I get the following when I run the command:
FFmpeg version SVN-r5827, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-amr_nb --enable-amr_wb --enable-gpl --enable-mp3lame libavutil version: 49.0.0 libavcodec version: 51.10.0 libavformat version: 50.5.0 built on Jul 25 2006 20:41:25, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2) Input #0, avi, from '/path/to/avi/12.avi': Duration: 00:00:15.4, start: 0.000000, bitrate: 1279 kb/s Stream #0.0: Video: mjpeg, yuvj420p, 320x240, 15.07 fps(r) Stream #0.1: Audio: pcm_u8, 8000 Hz, mono, 64 kb/s Output #0, flv, to '/path/to/flv/14.flv': Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 15.07 fps(c) Stream #0.1: Audio: mp3, 8000 Hz, mono, 64 kb/s
I'm not to sure about the 8000Hz sampling rate and the 15 fps. Try altering those and see if that fixes the problem.
Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding [mp3 @ 0x83b90d8]lame: output buffer too small (buffer index: 321, free bytes: 1983) frame= 232 q=15.8 Lsize= 625kB time=15.3 bitrate= 334.0kbits/s video:498kB audio:120kB global headers:0kB muxing overhead 1.148812%
I am relatively new to ffmpeg but have trawled to find an existing answer to this but have run up against a brick wall. If anyone has any pointers it would be much appreciated. Could the problem be with this lame output buffer issue?
Best
Tom
MvH Benjamin Larsson -- new tiny signature
Benjamin - you're a legend. For the record, i changed my command line call to: ffmpeg -y -i /path/to/avi/12.avi -acodec mp3 -ar 22050 -f flv /path/to/flv/14.flv The -ar flag sets the output audio sampling rate to 22050Hz and this fixed the problem. Many thanks, Tom On 7/26/06, Benjamin Larsson <banan at student.ltu.se> wrote:
Tom Percival wrote:
I am trying to convert a 15.3 second .avi clip to .flv with the following:
ffmpeg -y -i /path/to/avi/12.avi -acodec mp3 -f flv /path/to/flv/14.flv
The resulting flv seems to think it is 15.8 seconds long but takes over 20 seconds to actually play - audio and video are in synch but it simply plays in slow motion. The same happens when I try to convert a 3GP clip.
I am using the latest subversion checkout and I get the following when I run the command:
FFmpeg version SVN-r5827, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-amr_nb --enable-amr_wb --enable-gpl --enable-mp3lame libavutil version: 49.0.0 libavcodec version: 51.10.0 libavformat version: 50.5.0 built on Jul 25 2006 20:41:25, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2) Input #0, avi, from '/path/to/avi/12.avi': Duration: 00:00:15.4, start: 0.000000, bitrate: 1279 kb/s Stream #0.0: Video: mjpeg, yuvj420p, 320x240, 15.07 fps(r) Stream #0.1: Audio: pcm_u8, 8000 Hz, mono, 64 kb/s Output #0, flv, to '/path/to/flv/14.flv': Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 15.07 fps(c) Stream #0.1: Audio: mp3, 8000 Hz, mono, 64 kb/s
I'm not to sure about the 8000Hz sampling rate and the 15 fps. Try altering those and see if that fixes the problem.
Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding [mp3 @ 0x83b90d8]lame: output buffer too small (buffer index: 321, free bytes: 1983) frame= 232 q=15.8 Lsize= 625kB time=15.3 bitrate= 334.0kbits/s video:498kB audio:120kB global headers:0kB muxing overhead 1.148812%
I am relatively new to ffmpeg but have trawled to find an existing answer to this but have run up against a brick wall. If anyone has any pointers it would be much appreciated. Could the problem be with this lame output buffer issue?
Best
Tom
MvH Benjamin Larsson
-- new tiny signature
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
participants (2)
-
banan@student.ltu.se -
ffmpeg@tompercival.com