[MPlayer-dev-eng] [PATCH] Add DVB teletext support
Francesco Lavra
francescolavra at interfree.it
Sat Aug 22 19:17:05 CEST 2009
On Sat, 2009-08-22 at 18:03 +0200, Reimar Döffinger wrote:
> > If teletext data were treated as subtitles, update_subtitles() should
> > decode it via the teletext decoder interface, but displaying teletext on
> > the screen would still be taken care of by update_teletext(). Is that
> > what you want?
>
> Well, I mostly want the teletext stuff out of stream/libmpdemux where it
> just does not belong.
> Which if done well should have the side effect that the decoding for
> the vbi and DVB can use basically the same code, and if e.g. mkv adds
> teletext support it you would only have to change demux_mkv or demuxe_lavf
> to support it.
If my patches are applied, the teletext stuff will be only in
libmpcodecs/dec_teletext.{c,h}. libmpdemux/demux_ts.c will have only the
code to detect teletext streams and pass them to the teletext decoder
(if you want, the functions init_dvb_teletext() and
deinit_dvb_teletext() can be moved to dec_teletext.c as well). Decoding
teletext data from either a TV input or a DVB stream does use basically
the same code, because it uses the teletext_control() interface function
provided by the teletext decoder.
> Btw do you have a good, small, known working example file for DVB teletext?
> Either I am doing something wrong or the one I caputered is not really working...
Teletext decoding works only from either a TV demuxer (demuxer->type ==
DEMUXER_TYPE_TV) or a DVB stream (demuxer->stream->type ==
STREAMTYPE_DVB), so it's not possible to decode it from a file.
More information about the MPlayer-dev-eng
mailing list