[FFmpeg-devel] feature proposal: custom size for OGG pages
Ronald S. Bultje
rsbultje
Thu Jan 20 18:58:28 CET 2011
Hi,
2011/1/20 Andres Gonzalez <acandido at hi-iberia.es>:
> Hi all,
>
> I've been using FFmpeg for some months, but I am new to developers' list.
>
> I would like to add an option to FFmpeg, in order to allow the user to
> choose a preferred page.
>
> For example, if I'm thinking of writing:
>
> ffmpeg -i input.mpeg -oggpagesize 4000 -o output.ogg
>
> That would mean "when you have 4000 or more bytes of data, make a page".
> Another option would be "make pages of size 4000 bytes or less", but at
> first glance, this second looks a little trickier to implement, for me.
>
> The question is: Is it okay to add an arbitrary feature-specific parameter?
> Or, do you have any other suggestion to achieve this?
Yes, but not in the generic API. Please look into muxer-specific
AVOptions, some muxers already use it.
Ronald
More information about the ffmpeg-devel
mailing list