[MPlayer-users] wrong length and bitrate with FLAC

Reimar Döffinger Reimar.Doeffinger at gmx.de
Fri Nov 23 08:02:08 CET 2012


On 22 Nov 2012, at 23:54, Ilja Sekler <ilja_sekler_ at gmx.de> wrote:

> Am 22.11.2012 22:56, schrieb Reimar Döffinger:
> 
>> On Wed, Nov 21, 2012 at 09:35:14PM +0100, Ilja Sekler wrote:
>> 
>>> Am 16.11.2012 20:35, schrieb wbrana:
>>> 
>>>> MPlayer 1.1 returns correct values
>>>> 
>>>> ID_AUDIO_BITRATE=1018008
>>>> ID_LENGTH=277.00
>>>> 
>>>> but revision 35421 returns wrong values
>>>> 
>>>> ID_AUDIO_BITRATE=8
>>>> ID_LENGTH=35330017.00
>>> 
>>> 
>>> Already r35368 got the bitrate and thus the length of FLAC files wrong.
>>> The bug is still there in MPlayer as of r35437, a fix would be highly
>>> appreciated.
>>> 
>>> The current ffmpeg (N-44472-gb93c933) is not affected.
>> 
>> Please provide sample file and example command-line and output.
>> I cannot reproduce the issue with e.g.
>> http://samples.mplayerhq.hu/A-codecs/lossless/luckynight.flac
> 
> This sample is just too short. Make it at least 4x as long (just open it
> in Audacity, copy the content, paste it at the end of the original
> sample three times and export the whole as FLAC) and you will be able to
> reproduce the bug. Otherwise I'll upload the file (26MB). I just didn't
> have anything shorter then 5 minutes to test with, so I hit the bug
> immediately.

That seems highly unlikely, the problem should be that another field sneaks into our num_samples, the length of the file should not make the slightest difference to whether that happens.

> As stated in
> <http://lists.mplayerhq.hu/pipermail/mplayer-users/2012-November/085621.html>,
> reverting the checkin from r35333 fixes the issue with long FLAC files.

That would be wrong, you just don't notice because now _your_ files are too short :-) (the issue would become visible for files around 100 hours long).


More information about the MPlayer-users mailing list