[BUG] Pat table lost PMT-pid

Ondřej Caletka O.Caletka at sh.cvut.cz
Sun May 17 13:31:10 CEST 2009


I found out that the problem may not be in the getstream itself. Same 
error is occasionally reported from dvbscan:
Here is output of two consequential scans on tuned DVB adapter (tuned by 
running getstream):

dvb at dvb-t ~ $ dvbscan -c -a3
using '/dev/dvb/adapter3/frontend0' and '/dev/dvb/adapter3/demux0'
0x0000 0x0001: pmt_pid 0x0000 O2 -- CT1 (HD Test) (???)
0x0000 0x0002: pmt_pid 0x0000 O2 -- Nova (MPEG-4 HD) (running)
0x0000 0x0003: pmt_pid 0x0000 O2 -- O2 Info (MPEG-2) (running)
0x0000 0x0004: pmt_pid 0x0000 O2 -- Test 4 (MPEG-2) (running)
dumping lists (4 services)
CT1 (HD Test)            (0x0001) 01: PCR == V   V 0x044d A 0x044e (cze)
Nova (MPEG-4 HD)         (0x0002) 01: PCR == V   V 0x04b1 A 0x04b2 (cze) 
0x0810 (cze)
O2 Info (MPEG-2)         (0x0003) 01: PCR == V   V 0x0515 A 0x0516 (cze)
Test 4 (MPEG-2)          (0x0004) 01: PCR == V   V 0x0579 A 0x057a (eng)
Done.

dvb at dvb-t ~ $ dvbscan -c -a3
using '/dev/dvb/adapter3/frontend0' and '/dev/dvb/adapter3/demux0'
0x0000 0x0001: pmt_pid 0x044c O2 -- CT1 (HD Test) (???)
0x0000 0x0002: pmt_pid 0x04b0 O2 -- Nova (MPEG-4 HD) (running)
0x0000 0x0003: pmt_pid 0x0514 O2 -- O2 Info (MPEG-2) (running)
0x0000 0x0004: pmt_pid 0x0578 O2 -- Test 4 (MPEG-2) (running)
dumping lists (4 services)
CT1 (HD Test)            (0x0001) 01: PCR == V   V 0x044d A 0x044e (cze)
Nova (MPEG-4 HD)         (0x0002) 01: PCR == V   V 0x04b1 A 0x04b2 (cze) 
0x0810 (cze)
O2 Info (MPEG-2)         (0x0003) 01: PCR == V   V 0x0515 A 0x0516 (cze)
Test 4 (MPEG-2)          (0x0004) 01: PCR == V   V 0x0579 A 0x057a (eng)
Done.

So I think maybe the simplest solution would be to patch the getstream 
not to update PAT table with invalid PMT pids.

--
Ondrej Caletka


Ondřej Caletka napsal(a):
> I experience the same behaviour. From time to time, some programmes
> become unplayable in VLC (mplayer works). Restarting getstream helps.
>
> Analyzing broken stream in dvbsnoop shows:
> $ dvbsnoop -s ts -if ct2bad.ts -tssubdecode 0x0000
> ---output omitted---
>            Program_number: 258 (0x0102)
>            reserved: 0 (0x00)
>            Program_map_PID: 0 (0x0000)
>
> After restarting dvbstream:
>            Program_number: 258 (0x0102)
>            reserved: 0 (0x00)
>            Program_map_PID: 512 (0x0200)
>
> -- 
> Ondrej Caletka
>
>
> Sergei Gurjev napsal(a):
>> Hi,
>>
>> I have problem with getstream.
>> After long time of working, getstream sending stream with all needed 
>> pids, but pat-table sends without pmt pid.
>>
>> Here is example of UDP-stream dump with PNR=1 and PMT=4110
>> Broken stream: http://magnus.wnet.ua/dump_notworking.ts
>> After restarting of getstream: http://magnus.wnet.ua/dump_working.ts
>>
>> Here is VLC log of broken PAT:
>> [00000427] ts demux debug: PATCallBack called
>> [00000427] ts demux debug: new PAT ts_id=0 version=0 current_next=1
>> [00000427] ts demux debug:   * number=1 pid=0
>>
>> Here is VLC log of good PAT:
>> [00000427] ts demux debug: PATCallBack called
>> [00000427] ts demux debug: new PAT ts_id=0 version=0 current_next=1
>> [00000427] ts demux debug:   * number=1 pid=4110
>>
>>
>> _______________________________________________
>> Getstream mailing list
>> Getstream at gt.owl.de
>> http://gt.owl.de/mailman/listinfo/getstream
>
>
> _______________________________________________
> Getstream mailing list
> Getstream at gt.owl.de
> http://gt.owl.de/mailman/listinfo/getstream



More information about the Getstream mailing list