[FFmpeg-devel] audio gop_size

Jason Garrett-Glaser darkshikari
Sun Aug 22 23:35:35 CEST 2010


On Sun, Aug 22, 2010 at 4:40 PM, Justin Ruggles
<justin.ruggles at gmail.com> wrote:
> Hi,
>
> There are several audio codecs (such as MLP, ALS, and Speex) which
> utilize the concept of groups of frames. ?For decoding, it is simple
> enough to either decode the whole group at once or decode
> frame-by-frame, but for encoding there are other issues. ?This is how
> Thilo and I have implemented it in the ALS encoder we've been working
> on, and I wanted to run it by the list to make sure we're on the right
> track.
>
> 1) Make gop_size an audio option as well.
>
> alternative: The downside is that it defaults to 12, which may not be an
> appropriate default for some audio codecs. ?Would changing the gop_size
> default have API implications? ?Should we instead add another field for
> audio group of frames size that would default to 0 or -1?

The fix for this would be codec-specific defaults, e.g. make the
avcodeccontext default setting function take a codec ID.

Dark Shikari



More information about the ffmpeg-devel mailing list