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

Francesco Lavra francescolavra at interfree.it
Tue Sep 8 20:41:01 CEST 2009


On Tue, 2009-09-08 at 11:31 +0200, Nico Sabbi wrote:
> Il martedì 8 settembre 2009 11:17:38 Reimar Döffinger ha scritto:
> > On Tue, Sep 08, 2009 at 08:11:34AM +0000, Carl Eugen Hoyos wrote:
> > > Uploaded to incoming/issue1366/nocodec.ts
> > > Possibly a problem with the fact that the program that can be
> > > played has program ID 0?
> >
> > As far as the lavf demuxer is concerned, this file contains more
> > than 10 programs, but none of them has any streams associated with
> > it. Unfortunately the program support in the lavf demuxer is quite
> > a broken mess and this uncovered a few bugs.
> > It should work now, hopefully program support still works, too (I
> > haven't really tested it)...

It works now, but unfortunately it's not possible to demux streams
directly from a DVB card, using dvb://. You have to dump a stream in a
file and then play it!
Also, when I add a teletext PES to the stream, the lavformat demuxer
doesn't play the audio, only the video. A sample can be downloaded from
http://interdrive.interfree.it/cgi-bin/fm_main.cgi?share_dir=share
+francescolavra+1252436755-7576 ; in that sample 670, 672 and 659 are
the PIDs respectively for video, audio and teletext.

> program 0 is invalid and non-existent.

The MPEG standard says:
"Program_number is a 16-bit field. It specifies the program to which the
program_map_PID is applicable. When set to 0x0000, then the following
PID reference shall be the network PID."

> The dump doesn't contain any PMT. Francesco, make sure to provide the 
> right working sample, at most with the whole TS and specifying the 
> program to use.

The sample _is_ working. It doesn't contain the PMT as a result of the
ioctls DMX_SET_PES_FILTER called by the DVB stream layer. It contains
only the PAT and the PESes for which a DMX_SET_PES_FILTER ioctl has been
called. This is the standard behavior when you use a channels.conf file
created e.g. by the scan utility. There is no need for a PMT, because
the different streams can be recognized by their stream_id.




More information about the MPlayer-dev-eng mailing list