FS#14909 - [lame] ffmpeg seems to damage files while converting it from flv to avi
Attached to Project:
Arch Linux
Opened by Markus (xor_eax_eax) - Monday, 01 June 2009, 12:41 GMT
Last edited by Ionut Biru (wonder) - Saturday, 06 February 2010, 00:41 GMT
Opened by Markus (xor_eax_eax) - Monday, 01 June 2009, 12:41 GMT
Last edited by Ionut Biru (wonder) - Saturday, 06 February 2010, 00:41 GMT
|
Details
Description:
Since ffmpeg 0.5-1, it seems that converting a Flash (flv) to avi will damage the avi file with having no index, because I can't forward or rewind the avi anymore while playing it . In VLC I neighter have sound with this file nor can I forward or rewind it.. Volume control of the movie and so on seems to work in mplayer without problems. I tested it with 2 different files. Everywhere the same problems. Other files, converted with olders versions of ffmpeg-20090217-1 seem to work. I tried to reinstall it to be 100% sure that it's really a bug in ffmpeg and not in any library, but I got some missing libx264 version errors, so I didn't want to tinker with it until it's really necessary. Steps to reproduce: Get a flv file (I downloaded files from YouTube) Convert it with "ffmpeg -i "file.flv" -sameq -aspect 4:3 -acodec libmp3lame "file.avi" |
This task depends upon
Closed by Ionut Biru (wonder)
Saturday, 06 February 2010, 00:41 GMT
Reason for closing: Implemented
Additional comments about closing: -3
Saturday, 06 February 2010, 00:41 GMT
Reason for closing: Implemented
Additional comments about closing: -3
When I try to convert a video using ffmpeg / libmp3lame I obtain the error >> Audio encoding failed
Actually the audio works but, probably due to a missing video index, it is impossible to navigate forward or reverse.
This happens mostly in flash players as mplayer is able to rebuild the missing index.
I have temporary downgraded to lame-3.97 and this solves the problem so I guess that this is a bug in the 3.98 branch.
ffmpeg -i scelta_delle_ragioni.avi -qscale 3 -s qvga -ar 22050 -ab 64k scelta_delle_ragioni.flv
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libtheora --enable-postproc --enable-shared --enable-pthreads --enable-x11grab --enable-swscale
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Apr 20 2009 01:37:42, gcc: 4.3.3
Input #0, avi, from 'scelta_delle_ragioni.avi':
Duration: 00:08:09.64, start: 0.000000, bitrate: 29162 kb/s
Stream #0.0: Video: dvvideo, yuv420p, 720x576, 25 tbr, 25 tbn, 25 tbc
Stream #0.1: Audio: pcm_s16le, 22050 Hz, mono, s16, 352 kb/s
Output #0, flv, to 'scelta_delle_ragioni.flv':
Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1: Audio: libmp3lame, 22050 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
[libmp3lame @ 0x8f52690]lame: output buffer too small (buffer index: 9404, free bytes: 388)
Audio encoding failed
Additional info:
* package version(s)
lame-3.98.2-1-i686.pkg.tar.gz
lame-3.98.2-2-i686.pkg.tar.gz
Steps to reproduce:
Just try to convert some video and use libmp3lame as audio codec.
You are right, it must have to do with lame. In my case it already works with lame-3.98-1-i686.pkg.tar.gz so I downgraded it to this version for now.