[dvblast-devel] tsdecrypt

Georgi Chorbadzhiyski gf at unixsol.org
Wed Jan 25 16:44:09 CET 2012


Around 01/25/2012 04:59 PM, Georgi Chorbadzhiyski scribbled:
> Around 01/24/2012 04:19 PM, JULIAN GARDNER scribbled:
>> Ive just checked the stream in TSreader and i can see the CAT and PMT are ok, as in the CA Desciptor is present.
>>
>> Whats missing are the pids from the PMT
>>
>> debug: setting filter on PID 939
>> debug: setting filter on PID 938
>> debug: new PMT program=930 version=1 pcrpid=939
>> debug:   * ES pid=939 streamtype=0x02 streamtype_txt="13818-2 video (MPEG-2)"
>> debug:     - desc 09 ca sysid=0x500 pid=80
>> debug:     - desc 09 ca sysid=0x500 pid=92
>> debug:     - desc 09 ca sysid=0x500 pid=130
>> debug:   * ES pid=938 streamtype=0x03 streamtype_txt="11172-3 audio (MPEG-1)"
>> debug:     - desc 0a audio_language language=swe audiotype=0 audiotype_txt="undefined"
>> debug:     - desc 09 ca sysid=0x500 pid=80
>> debug:     - desc 09 ca sysid=0x500 pid=92
>> debug:     - desc 09 ca sysid=0x500 pid=130
>> debug: end PMT
>> debug: setting filter on PID 55
>> debug: setting filter on PID 49
>> debug: new CAT version=2
>> debug:     - desc 09 ca sysid=0x500 pid=55
>> debug:     - desc 09 ca sysid=0x500 pid=49
>> debug: end CAT
>>
>> Now the pids 80, 92 and 130 are needed, but as seen in the log they are not in the output stream
>>
>> If i add these to the dvb.conf it works
> 
> Ok, I think I see what is going on. Since CA descriptor is per ES we seem to miss it.
> When the CA descriptor is in main PMT loop like this:
> 
> debug: new PMT program=1815 version=7 pcrpid=514
> debug:     - desc 09 ca sysid=0xb00 pid=51
> debug:   * ES pid=218 streamtype=0x03 streamtype_txt="11172-3 audio (MPEG-1)"
> debug:     - desc 52 stream_identifier component_tag=1
> debug:     - desc 0a audio_language language=eng audiotype=1 audiotype_txt="clean effects"
> debug:   * ES pid=514 streamtype=0x02 streamtype_txt="13818-2 video (MPEG-2)"
> debug:     - desc 52 stream_identifier component_tag=0
> debug:     - desc 02 video_stream multiple_frame_rate=0 frame_rate_code=3 frame_rate_txt="25.00" mpeg1_only=0 constraint_parameter=1 still_picture=0 profile=4 profile_txt="Main" level=8 level_txt="Main" chroma_format=1 chroma_format_txt="4:2:0" frame_rate_extension=0
> debug: end PMT
> 
> it is working.
> 
> I'm working on a fix right now.

Ok, the fix is pushed to master. I have tested it with MTV package on Astra
and all ECM pids are forwarded as expected. I fixed similar bug tsdecrypt
CA parsing code couple of months ago but it never occurred to me to look in
dvblast for the similar problem.

-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/


More information about the dvblast-devel mailing list