[FFmpeg-devel] [PATCH 0/5] Fix mp3 gapless support (second try)

wm4 nfxjfg at googlemail.com
Wed Apr 15 13:32:11 CEST 2015


On Wed, 15 Apr 2015 13:16:20 +0200
Michael Niedermayer <michaelni at gmx.at> wrote:

> On Wed, Apr 15, 2015 at 01:12:27PM +0200, wm4 wrote:
> > On Wed, 15 Apr 2015 12:43:36 +0200
> > Michael Niedermayer <michaelni at gmx.at> wrote:
> > 
> > > On Wed, Apr 15, 2015 at 11:08:02AM +0200, wm4 wrote:
> > > [...]
> > > > the start of the file. (Seeking to anywhere else likely won't work,
> > > > because libavformat tries to use the imperfect xing toc, instead of
> > > > scanning the frames.)
> > > 
> > > btw, you can disable the imperfect xing toc for seeking with
> > > "-usetoc 0"
> > 
> > But that breaks VBR even more, shouldn't it?
> 
> libavformat should build a index by linearly scanning the file
> up to the point where one seeks to, so it should work with vbr

And how could this be achieved?

I'm also not very fond of utils.c messing with what the demuxer does.
It really made developing and debugging this harder. It should be the
other way around, with the demuxer directly being called by the user,
and the demuxer invoking generic helpers if it needs to.


More information about the ffmpeg-devel mailing list