[libav-bugs] [Bug 531] New: The displayed duration is some programs is wrong.

bugzilla at libav.org bugzilla at libav.org
Tue Jun 18 22:15:42 CEST 2013


https://bugzilla.libav.org/show_bug.cgi?id=531

           Summary: The displayed duration is some programs is wrong.
           Product: Libav
           Version: 0.8
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: general
        AssignedTo: bugzilla at libav.org
        ReportedBy: tobias.bora at gmail.com


Created attachment 420
  --> https://bugzilla.libav.org/attachment.cgi?id=420
Display of dolphin

Hello,

First thanks for this great program, it is really usefull. However I've a bug
with the conversion of files in mp3. Indeed when I convert any format (mp4,
ogg, mp3...) to mp3 the duration of the sound displayed by programs like
Dolphin or Amarok are wrong (I'm on Kubuntu and it works with others files) :
They write that the program is about 19:27 mn instead of 3:14.

I can reproduce this bug with this file for example :
http://www.jamendo.com/fr/track/772600/homunculus .

This is the command line I use : avconv -i file.mp3 out.mp3

and this is the output :

$ avconv -v 9 -loglevel 99 -i The_Nuri_-_Homunculus.mp3 out.mp3
WARNING: gnome-keyring:: couldn't connect to:
/run/user/perso/keyring-rfwSP7/pkcs11: No such file or directory
avconv version 0.8.6-6:0.8.6-0ubuntu0.12.10.1, Copyright (c) 2000-2013 the
Libav developers
  built on Apr  2 2013 17:02:16 with gcc 4.7.2
  configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect
--extra-version='6:0.8.6-0ubuntu0.12.10.1' --libdir=/usr/lib/x86_64-linux-gnu
--prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype
--enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc
--enable-swscale --enable-libcdio --enable-x11grab
--shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  avutil      configuration: --arch=amd64 --enable-pthreads
--enable-runtime-cpudetect --extra-version='6:0.8.6ubuntu0.12.10.1'
--libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib
--enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls
--enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv
--enable-libopenjpeg --enable-libpulse --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc
--enable-swscale --enable-libcdio --enable-x11grab --enable-libx264
--enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
  avcodec     configuration: --arch=amd64 --enable-pthreads
--enable-runtime-cpudetect --extra-version='6:0.8.6ubuntu0.12.10.1'
--libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib
--enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-gnutls
--enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv
--enable-libopenjpeg --enable-libpulse --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau
--enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc
--enable-swscale --enable-libcdio --enable-x11grab --enable-libx264
--enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared
--disable-static --enable-libopencore-amrnb --enable-version3
--enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc
--enable-version3 --enable-libvo-amrwbenc --enable-version3
  libavutil    51. 22. 1 / 51. 22. 1
  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
[mp3 @ 0x23d39c0] Probed with size=65536 and score=51
[mp3 @ 0x23d4e60] err{or,}_recognition separate: 1; 1
[mp3 @ 0x23d4e60] err{or,}_recognition combined: 1; 1
[mp3 @ 0x23d39c0] max_analyze_duration reached
Input #0, mp3, from 'The_Nuri_-_Homunculus.mp3':
  Metadata:
    title           : Homunculus
    artist          : The Nuri
    album           : Music Box
    date            : 2011
    genre           : (255)
    publisher       : Jamendo
    copyright       : 2011-05-05T10:41:29+01:00 The Nuri. Licensed to the
public under http://creativecommons.org/licenses/by-nc-nd/2.0/de/ verify at
http://www.jamendo.comalbum/90599/
    encoded_by      : Jamendo : http://www.jamendo.com | LAME
    TDTG            : 2012-01-17T13:59:53
  Duration: 00:03:14.42, start: 0.000000, bitrate: 200 kb/s
    Stream #0.0, 194, 1/14112000: Audio: mp3, 44100 Hz, stereo, s16, 199 kb/s
[libmp3lame @ 0x23d8140] err{or,}_recognition separate: 1; 1
[libmp3lame @ 0x23d8140] err{or,}_recognition combined: 1; 1
[mp3 @ 0x23d4e60] err{or,}_recognition separate: 1; 1
[mp3 @ 0x23d4e60] err{or,}_recognition combined: 1; 1
Output #0, mp3, to 'out.mp3':
  Metadata:
    TIT2            : Homunculus
    TPE1            : The Nuri
    TALB            : Music Box
    TDRL            : 2011
    TCON            : (255)
    TPUB            : Jamendo
    TCOP            : 2011-05-05T10:41:29+01:00 The Nuri. Licensed to the
public under http://creativecommons.org/licenses/by-nc-nd/2.0/de/ verify at
http://www.jamendo.comalbum/90599/
    TENC            : Jamendo : http://www.jamendo.com | LAME
    TDTG            : 2012-01-17T13:59:53
    TSSE            : Lavf53.21.1
    Stream #0.0, 0, 1/90000: Audio: libmp3lame, 44100 Hz, stereo, s16, 200 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 -> libmp3lame)
Press ctrl-c to stop encoding
size=    4558kB time=194.46 bitrate= 192.0kbits/s    
video:0kB audio:4558kB global headers:0kB muxing overhead 0.010885%

I've enclosed the displayed duration of the output song in dolphin, it's the
same result in Amarok (in VLC or audacious there is no problems). I wonder if
Qt based programs don't use an other way than bitrates to detect the duration
which is not present in avconc output.

Thanks,

Tobias Bora.

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list