I used youtube-dl to download and convert youtube video into mp3.
youtube-dl http://www.youtube.com/watch?v=4f51DhJR0zo
-o "Alesso - Think It's Time.flv" -x -f 43 --audio-format mp3
Now it looks like all the mp3 files have an unusual long duration, using amarok, or something similar it will produce very long time interval with no sound. I looked at the flv file, and it seems that the time/duration is right there, but avconv converts and changes the time. So original song.flv duration is 04:42 and output.mp3 duration is 17:20. If i write
$ avconv -i Rihanna\ -\ Diamonds.mp3
output:
Input #0, mp3, from 'Rihanna - Diamonds.mp3':
Metadata:
encoder : Lavf53.21.1
Duration: 00:04:42.98, start: 0.000000, bitrate: 117 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 32 kb/s
At least one output file must be specified
so duration output is right, but it will not show in amarok. Vlc on the other hand calculates the duration itself, but the time is continuously changing until the song reaches the end.
Is there someway to change global id3_v2 time/duration tags, so I might run a script on all my files after downloading from youtube-dl. Or maybe there is a fix in this bug?