We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-04-11 21:07:18 +0200

Media player displays wrong duration for variable bitrate mp3 files

Here is free track for example. It's real duration is 4:22:

$ ffprobe /tmp/JLTM_-_The_blue_doll.mp3 |& grep Duration
  Duration: 00:04:21.77, start: 0.025056, bitrate: 200 kb/s

But media player shows it's duration in track list as 4:55:

media player screenshot

Note that in playback bar current position is displayed properly and when the track reaches the end seek bar displays 4:22.

The bug is specific to variable bitrate mp3 files, I could not reproduce with ogg vorbis file (one more reason to use free formats but who cares :( ).

Media player displays wrong duration for variable bitrate mp3 files

Here is free track for example. It's real duration is 4:22:

$ ffprobe /tmp/JLTM_-_The_blue_doll.mp3 |& grep Duration
  Duration: 00:04:21.77, start: 0.025056, bitrate: 200 kb/s

But media player shows it's duration in track list as 4:55:

media player screenshot

Note that in playback bar current position is displayed properly and when playback of the track reaches the end seek bar displays 4:22.

The bug is specific to variable bitrate mp3 files, I could not reproduce with ogg vorbis file (one more reason to use free formats but who cares :( ).

Media player displays wrong duration for variable bitrate mp3 files

Here is free track for example. It's real duration is 4:22:

$ ffprobe /tmp/JLTM_-_The_blue_doll.mp3 |& grep Duration
  Duration: 00:04:21.77, start: 0.025056, bitrate: 200 kb/s

But media player shows it's duration in track list as 4:55:

media player screenshot

Note that in playback bar current position is displayed properly and when playback of the track reaches the end seek bar displays 4:22.

The bug is specific to variable bitrate mp3 files, I could not reproduce with ogg vorbis file (one more reason to use free formats but who cares :( ).

Media player displays wrong duration for variable bitrate mp3 files

Here is free track for example. It's real duration is 4:22:

$ ffprobe /tmp/JLTM_-_The_blue_doll.mp3 |& grep Duration
  Duration: 00:04:21.77, start: 0.025056, bitrate: 200 kb/s

But media player shows it's duration in track list as 4:55:

media player screenshot

Note that in playback bar current position is displayed properly and when playback of the track reaches the end seek bar displays 4:22.

The bug is specific to variable bitrate mp3 files, I could not reproduce with ogg vorbis file (one more reason to use free formats but who cares :( ).