[FFmpeg-devel] [RFC] lavfi: audio data packing

Mina Nagy Zaki mnzaki at gmail.com
Wed Jul 6 07:46:21 CEST 2011

On Wed, Jul 06, 2011 at 02:09:20AM +0200, Michael Niedermayer wrote:
> On Tue, Jul 05, 2011 at 05:07:37PM +0300, Mina Nagy Zaki wrote:
> > Hello lists,
> > I need opinions on whether the lavfi framework should negotiate audio data
> > packing between filters or should it just assume all filters will support
> > handling both packed and planar data.
> > 
> > In other words, should we allow filters to just declare that they only support
> > handling planar data (or packed data) and have the framework automatically
> > convert incoming data to that filter? 
> > 
> > AISI this can cause a lot of inefficiency as it may lead to loads of unnecessary
> > conversions. It will probably lead to filter writers just supporting the easier
> > option and letting the framework convert for them, when in most cases it is
> > probably not too difficult to support both.
> > 
> > Also, what does ffmpeg/libav do about this internally? In what format is audio
> > data passed around?
> > 
> > Comments appreciated! Thanks!
> if you consider decoders & encoders & audio out apis to be part of
> the filter graph then there certainly are ones that support planar
> and not packed and some that support packed and not planar and that
> wont chnage

Well I'm not sure if encoders/decoders are considered part of the filter graph
specially because we have src/sink filters. And those are end points on the
graph too, so I supposed they could be handled separately.

Mina Nagy

More information about the ffmpeg-devel mailing list