I have one strange problem which I can't figure out and it really drives me crazy. I was searching from a long time for this, but didn't find any adequate answers. It is about the time duration of converted mp3s with ffmpeg or avconv. I'm using Download helper in Firefox to download and even convert any video file to mp3.. Everything is going fine except the duration time of the mp3s in any music player (i tried audacious, qmmp)... When I convert a video which is 3mins long in the player it shows around 18mins long. Another thing i noticed is the wrong bitrate. It shows something around 32kbps, but i'm using 192kbps when i convert the file...
I tried VLC which i use for video files and it shows the time correctly, but the bitrate in the codec section is also showing 32kbps. I noticed at first when i open the file with VLC is little kinda buffering the time but at last it shows it correctly.
Another thing I tried is the command ffmpeg -i file.mp3 which also shows the correct time duration and bitrate.
The strange fact is when i export the same converted file with audacity without change anything it correctly appears in audacious with the correct time duration. May be audacity uses some other libs which corrects that bug.
For information i have installed ffmpeg, libavcodec-extra-53.
ffmpeg -version
ffmpeg 0.8.10-6:0.8.10-0ubuntu0.13.10.1
libavutil 51. 22. 2 / 51. 22. 2
libavcodec 53. 35. 0 / 53. 35. 0
libavformat 53. 21. 1 / 53. 21. 1
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 15. 0 / 2. 15. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 52. 0. 0 / 52. 0. 0
Using Kubuntu 13.10 i386.
Thanks in advance :)
edit:
Ok... The solution was really simple.. As LordNeckbeard said, I just downloaded the version from the official FFmpeg site and everything is correct now.
I purge the repository version first and then just copy the version from the official site into /usr/bin/...
ffmpeg
from FFmpeg, Ubuntu uses a fork that suppliesavconv
and a fake "ffmpeg
" which are often buggy. What happens if you download a recent build offfmpeg
from FFmpeg (just download, extract, and execute) and then manually use it to convert to MP3? Does the resulting file display the correct information in the players? – llogan Mar 30 '14 at 17:43/use/bin/
for your binary. You can put it in/usr/local/bin/
instead (or elsewhere in your PATH) and then you can keep the fake "ffmpeg" package for other dependent packages. – llogan Mar 31 '14 at 17:42