[MPlayer-dev-eng] Ac3 streams detected as LPCM or SPU in TS
Nico Sabbi
nsabbi at tiscali.it
Tue Jun 15 10:37:31 CEST 2004
MichaelM wrote:
> I've noticed that with a verbose dump of dvbscan, pmt information is
> available, with a pmt for each service offered. How is it that some
> cards offer pmt through mplayer, yet others (such as mine ...) cannot,
> despite the fact that its available?
every card "offers" it: it's always available, just grab it.
To grab it you need to tell the driver to include the relative pid in
the final TS, but also pid 0
(containing the PAT) in order to have the demuxer know where the PMT is.
>
> Since dvbscan can find the pmt's pid, is there harm in using a similar
> approach in mplayer (or even xine)? A quick read through the code
> shows that there's no place for the pmt pid in the dvb input, only the
> ts demuxer makes any reference to the pmt. Also, I'd imagine scanning
> for the pmt would be somewhat slow.
>
you don't need anything else in the dvb code
> Most of the networks i've found follow a similar pattern for the
> pmt_pid (ranging from 0x0100 -> 0x0101 etc), with one network not
> following the trend.
> Just for the hell of it, could I hardcode the pmt_pid in mplayer, just
> to see if it works? My qualm would be where to hardcode, and will it
> be futile if by the time the stream reaches the demuxer, there is no
> pmt (streams caught with dvbstream don't seem to have pmt).
no hacks, please. As I wrote above you also need to know where the pmt
is (pmt_pid) and for that you need the PAT content
Please, have patience: I already modified the demuxer to recognize those
fancy AC3 streams without the PMT, as J. C. Dutton suggested.
The code is almost working, but I stumbled on a bug that I haven't fixed
yet.
When the code is 100% working I will commit it, then I will modify the
dvb code as I explained earlier.
>
> Nico Sabbi wrote:
>
>>
>> software only: in channels.conf you don't have a way to indicate what
>> pid contains the PMT;
>> I can easily solve it adding always pid 0 (that gives the PMT) in the
>> filters and you can add +<pmt_pid>
>> in one of video/audio fields (as scan indicates extra streams)
>>
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
More information about the MPlayer-dev-eng
mailing list