[MPlayer-users] Strange timecode behavior with FLAC files

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Nov 25 21:39:28 CET 2010


On Thu, Nov 25, 2010 at 09:07:23PM +0200, Uoti Urpala wrote:
> On Thu, 2010-11-25 at 19:43 +0100, Ilja Sekler wrote:
> > On 25.11.2010 00:21, Uoti Urpala wrote:
> > > The biggest cause of problems is that the FFmpeg FLAC decoder
> > > behaves badly. It internally buffers packets in a way that makes it
> > > impossible to know what part of its output corresponds to which input
> > > packet (and thus to which timecode). I think this should get fixed
> > > after the FLAC parser patches are applied in FFmpeg. The parser
> > > itself isn't needed, but the patches remove the current badly done
> > > buffering implementation.
> > 
> > Thank you, assuming that you speak about the thread on ffmpeg-devel
> > starting with
> > <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2010-July/093465.html>, I
> > applied parts of the patch from
> > <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2010-July/093848.html>
> > which suffered minor bitrot to libavcodec/flac{.h,dec.c} - the resulting
> > mplayer binary displays correct timecode in FLAC files starting with
> > zero for max. 2.5 seconds and then crashes with following flac-related
> > messages:
> 
> There's a recent version available. Note that if you play raw FLAC files
> then you probably need to specify -demuxer lavf.

Or add support for the parser in libmpdemux/demuxer.c, allocate_parser
(around line 470).
But the fact that it is not applied often is an indication that it's
not going to work that well yet anyway.


More information about the MPlayer-users mailing list