[MPlayer-dev-eng] [PATCH] Add DVB teletext support

Francesco Lavra francescolavra at interfree.it
Sat Aug 29 17:05:09 CEST 2009


On Sat, 2009-08-22 at 22:23 +0200, Reimar Döffinger wrote:
> On Sat, Aug 22, 2009 at 07:17:05PM +0200, Francesco Lavra wrote:
> > 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).
> 
> It should not use a single line of code more than what is in demux_ts.c currently.
> Well, that's not quite true.
> I think it will be easier to test with the libavformat demuxer (-demuxer lavf),
> attached is a patch this is a stub of what I had in mind.
> Though I admit that treating it as subtitle might be a bit questionable and
> have unexpected issues, and there might be less ugly ways to do it.
> But it will need a lot of convincing for me to agree with a solution that
> does not work with -demuxer lavf (and I don't think ffmpeg devels will allow
> you to add much code beyond what my stub does to FFmpeg).

I tried playing a DVB stream using the libavformat demuxer, and it
doesn't work. Using the command
mplayer -demuxer lavf dvb://<channel_name>
it hangs in av_open_input_stream(), while if I dump a DVB stream in a
file and try to play it with -demuxer lavf MPlayer exits with "LAVF: no
audio or video headers found - broken file?". Of course, in both cases
playing with the native TS demuxer works fine.
Having said that, is still a pre-requisite that DVB teletext decoding
must work with libavformat to be included in MPlayer?




More information about the MPlayer-dev-eng mailing list