[FFmpeg-devel] [PATCH v11] avformat: add demuxer for Pro Pinball Series' Soundbanks

Zane van Iperen zane at zanevaniperen.com
Fri May 1 03:55:18 EEST 2020


On Fri, 01 May 2020 00:36:57 +0000
"Zane van Iperen" <zane at zanevaniperen.com> wrote:

> On Fri, 1 May 2020 01:09:17 +0200
> "Michael Niedermayer" <michael at niedermayer.cc> wrote:
> 
> > > +    size = FFMIN(trk->data_size - ctx->bytes_read,
> > > PP_BNK_MAX_READ_SIZE); +
> > > +    if ((ret = av_get_packet(s->pb, pkt, size)) < 0)
> > > +        return ret;
> > > +
> > > +    ctx->bytes_read    += ret;
> > > +    pkt->flags         &= ~AV_PKT_FLAG_CORRUPT;
> > > +    pkt->stream_index   = ctx->current_track;
> > > +    pkt->duration       = ret * 2;  
> >
> > With this each stream would be returned completely before the next
> > such non interleaved output is a bit odd.
> >  
> 
> Yep, it's an odd format.  Some files are meant to be stereo, but I
> can't present them as such. I have to present them as separate mono
> streams and merge them with a filter.
> 
> > also where can i find such a file ?
> >  
> 
> Here's a file I trimmed for FATE:
> 
> https://0x0.st/ie7O.11c
> 
Probably should have mentioned that first file is meant to be stereo
music.

Here's one that's meant to be just a bunch of mono tracks:
https://0x0.st/ie74.5C



More information about the ffmpeg-devel mailing list