[FFmpeg-devel] [PATCH] Add 'asetframesize' audiofilter

Andrey Utkin andrey.krieger.utkin at gmail.com
Wed Jul 4 08:11:15 CEST 2012

>> Updated against latest API, and making use of the nifty
>> libavutil/audio_buffer.

I've just came back to Net after long journey, if there's need in my
efforts on this filter or other issues which are related to me, don't
mind to tell me.

>> I'm not very satifisfied with the name of the filter, alternative
>> names which I also somehow dislike but which seem more proper are:
>> - asetnbsamples
>> - asetnsamples
>> - asetsamplesn
>> - asetsamplesnb
> Agreed, another alternative: asetwinsize (for audio window size).

Honestly saying, i think word "frame" is more comprehensible as we
push to filters and pull from it the _frames_ (AVFrames, or, more
strictly, AVFilterBuffer, which is constructed usually from AVFrame).
"Window" term is not used among object names.
However i don't mind to change the name if more people comment on this issue.

> Just curious: how do you plan to use this? By making some filters (such as
> af_show* filters) request a particular window size and auto insert the
> filter?

Initially i made this up for handiness in filtering&encoding. Thus you
avoid handling frame resizing (using AVFifoBuffers) at app level
before encoding, if original (decoded) audio frame size differs from
encoder's one.
Nice to see that there're other usage suggestions.

Andrey Utkin

More information about the ffmpeg-devel mailing list