[FFmpeg-devel] [PATCH] WIP: subtitles in AVFrame
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sun Nov 20 15:24:00 EET 2016
2016-11-20 13:52 GMT+01:00 Clément Bœsch <u at pkh.me>:
>> > +static const AVOption sbuffer_options[] = {
>> > + { "time_base", NULL, OFFSET(time_base), AV_OPT_TYPE_RATIONAL, { .dbl = 0 }, 0, INT_MAX, S },
>> > + { "format", NULL, OFFSET(sub_format), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, S, "format" },
>> > + { "unspecified", NULL, 0, AV_OPT_TYPE_CONST, {.i64=-1}, INT_MIN, INT_MAX, S, "format" },
>> > + { "bitmap", NULL, 0, AV_OPT_TYPE_CONST, {.i64=0}, INT_MIN, INT_MAX, S, "format" },
>> > + { "text", NULL, 0, AV_OPT_TYPE_CONST, {.i64=1}, INT_MIN, INT_MAX, S, "format" },
>>
>> Implies no mixed subs. I'm fine with that, but might be restrictive.
>>
>
> Yeah, so far we don't have such things AFAIK. But we could replace this
> with a mask later on. It was simpler for the initial format negotiation
> that way.
Will this work with our current external teletext decoder?
(Will it work with a hypothetical future teletext decoder that provides both
bitmap and text when decoding?)
Thank you, Carl Eugen
More information about the ffmpeg-devel
mailing list