Re: [FFmpeg-devel] How to satisfy two codecs with one decoder?

2020-04-28 Thread Roger Pack
On Fri, Apr 17, 2020 at 4:53 PM James Almer wrote: > > On 4/17/2020 7:40 PM, Roger Pack wrote: > > I want to add to the closed caption libavcodec/ccaption_dec.c decoder > > to be able to handle both 608 "over CEA 708" (which it already does) > > and also "raw EIA 608 byte pairs" which it doesn't.

Re: [FFmpeg-devel] How to satisfy two codecs with one decoder?

2020-04-18 Thread Carl Eugen Hoyos
Am Sa., 18. Apr. 2020 um 00:46 Uhr schrieb Roger Pack : > > I want to add to the closed caption libavcodec/ccaption_dec.c decoder > to be able to handle both 608 "over CEA 708" (which it already does) > and also "raw EIA 608 byte pairs" which it doesn't. > > My idea was to introduce a new codec id

Re: [FFmpeg-devel] How to satisfy two codecs with one decoder?

2020-04-18 Thread Timo Rothenpieler
On 18.04.2020 00:53, James Almer wrote: See mpeg12dec.c and how both the mpeg1 and mpeg2 AVCodec entries are essentially the same for an example. Or the nvenc encoders. The old cuviddec is probably an even better example. The same decoder handles half a dozen codecs.

Re: [FFmpeg-devel] How to satisfy two codecs with one decoder?

2020-04-17 Thread James Almer
On 4/17/2020 7:40 PM, Roger Pack wrote: > I want to add to the closed caption libavcodec/ccaption_dec.c decoder > to be able to handle both 608 "over CEA 708" (which it already does) > and also "raw EIA 608 byte pairs" which it doesn't. > > My idea was to introduce a new codec id for the raw 608

[FFmpeg-devel] How to satisfy two codecs with one decoder?

2020-04-17 Thread Roger Pack
I want to add to the closed caption libavcodec/ccaption_dec.c decoder to be able to handle both 608 "over CEA 708" (which it already does) and also "raw EIA 608 byte pairs" which it doesn't. My idea was to introduce a new codec id for the raw 608 pairs. AV_CODEC_ID_EIA_RAW_608 or the like. The