On 12/06/10 19:21, Alex Lasnier wrote:
The attached patch adds Dtypes for ATSC AC-3. Users of the NA EIT patch
will also need to make this change.




Thanks Alex for this. Now my audio dpids don't vanish if I use update channels.

However, my hd-pvr channels audio does vanish with update channels. Not sure if it's likely to be in the same code.

I wrote to Lars Hanish about this but we weren't sure if it was a pvr-input plugin issue or a pat.c issue.

I have pasted some info about a recorded stream which Lars discovered. It looks to me like it's case 6, which has some code attached to it, but I'm not sure if it's missing the same as ATSC was missing.


Streamdev plays OK, but vnsi on xbmc thinks there's no audio available.

A sample from channels.conf (but each channel on a line is)

919-CNN HD-Satellite-hdpvr;CNNHD:9190:COMPONENT:V:0:4113+4097=27:04352=...@106:0:0:1:0:9191:0 920-NFL Network HD-Sports Satellite-hdpvr;NFLHD:9200:COMPONENT:V:0:4113+4097=27:04352=...@106:0:0:1:0:9201:0

pvr input changes the channel on the cable box and then streams from the hauppauge pvr-hd..

This is with vdr-1.7.15 with the atsc plugin about and audio update off.

This is the channels.conf I fed vdr before it modified it:

919-CNN HD-Satellite-hdpvr;CNNHD:9190:COMPONENT:V:0:4113+4097=27:0;4352=eng:0:0:1:0:9191:0 920-NFL Network HD-Sports Satellite-hdpvr;NFLHD:9200:COMPONENT:V:0:4113+4097=27:0;4352=eng:0:0:1:0:9201:0



[Code]
Opening file G:\XDVDImages\demuxed\Hancock (vdr)\Hancock.ts

OS: Windows 7
TSDoctor.exe V 1.0.45

Supported splitter filter found : Haali
Supported audio filter found    :
Supported video filter found    :
File size: 5768984544
Packets  : 30686088


Scanning for TRP fill pakets

Scanning for PIDs

Found 5 different PIDs

Identifying stream types

$0084: 0%   = PMT
$1011: 94%  = H264 Video (PES_StreamID $E0 = Video_Stream_0) [PTS,DTS]
$1100: 6%   = AC3 Audio (PES_StreamID $FD = Reserved_Data_Stream) [PTS]
$1001: 0%   = PCR [PCR]
$0000: 0%   = PAT


Scanning for PATs

----------- PAT 0 -----------
PacketCount              : 1
Table ID                 : 0
Section Syntax Indicator : 1
Reserved Bit 0           : 0
Reserved Bit 1           : 1
Reserved Bit 2           : 1
Pointer Field            : 0
Section Length           : 13
Transport Stream ID      : 32776
Reserved Bit 3           : 1
Reserved Bit 4           : 1
Version Number           : 0
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0

  Program Number : $0084
  Map PID        : $0084

CRC32                    : $E7018B94 = $E7018B94
-----------------------------

Found 1 different PATs
Found 1 different PMT PIDs
Scanning for PMTs

----------- PMT 0 -----------
Packet                   : $00000001
PacketCount              : 1
PID                      : $0084
Table ID                 : 2
Section Syntax Indicator : 1
PMT Size                 : 40
Pointer Field            : 0
Section Length           : 32
Program Number           : $0084
Version Number           : 0
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0
PCR PID                  : $1001

Program Info Length      : 0

  Stream Type    : 27
Description : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video
  Elementary PID : $1011
  ES Info Length : 0

  Stream Type    : 6
Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3)
  Elementary PID : $1100
  ES Info Length : 9
  ES Info        : $6A, $01, $00, $0A, $04, $65, $6E, $67, $01
  ES Info Text   : j____eng_

CRC32                    : $DA328573 = $DA328573
-----------------------------

Found 1 different PMTs

Selecting PMT with PID $0084 at position $00000001
CRC OK!

0.
stream_type : 27 = AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video
  elementary_pid           : $1011
  ES_info_length           : 0

1.
stream_type : 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3)
  elementary_pid           : $1100
  ES_info_length           : 9

PCR PID is $1001

Created PAT:

----------- PAT 0 -----------
PacketCount              : 0
Table ID                 : 0
Section Syntax Indicator : 1
Reserved Bit 0           : 0
Reserved Bit 1           : 1
Reserved Bit 2           : 1
Pointer Field            : 0
Section Length           : 13
Transport Stream ID      : 32776
Reserved Bit 3           : 1
Reserved Bit 4           : 1
Version Number           : 0
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0

  Program Number : $0084
  Map PID        : $0084

CRC32                    : $E7018B94 = $E7018B94
-----------------------------



Created PMT:

----------- PMT 0 -----------
Packet                   : $00000001
PacketCount              : 1
PID                      : $0084
Table ID                 : 2
Section Syntax Indicator : 1
PMT Size                 : 40
Pointer Field            : 0
Section Length           : 32
Program Number           : $0084
Version Number           : 0
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0
PCR PID                  : $1001

Program Info Length      : 0

  Stream Type    : 27
Description : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video
  Elementary PID : $1011
  ES Info Length : 0

  Stream Type    : 6
Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3)
  Elementary PID : $1100
  ES Info Length : 9
  ES Info        : $6A, $01, $00, $0A, $04, $65, $6E, $67, $01
  ES Info Text   : j____eng_

CRC32                    : $DA328573 = $DA328573
-----------------------------


First video PTS is 157776417 00:29:13.071
Last video PTS  is 158723864 00:29:23.598

First PCR  is 47322396000 00:29:12.681
Last PCR  is 16395964614 00:10:07.258
PCR wrap at 02:01:31.036 detected!
Duration of video stream is 8486846487 02:11:38.294
Video PCR to PTS difference 0 ms
$1100: Delay to video stream = 0ms


The following PIDs will be imported into new stream: $1011, $1100, $1001

Scanning for video details

-------- H264 Video ---------
profile_idc                            : 77
constrained_set0_flag                  : 0
constrained_set1_flag                  : 1
constrained_set2_flag                  : 0
constrained_set3_flag                  : 0
reserved_zero_4bits                    : 0
level_idc                              : 40
seq_parameter_set_id                   : 0
log2_max_frame_num_minus4              : 5
pic_order_cnt_type                     : 0
log2_max_pic_order_cnt_lsb_minus4      : 5
num_ref_frames                         : 4
gaps_in_frame_num_value_allowed_flag   : 0
pic_width_in_mbs_minus1                : 79
pic_height_in_map_units_minus1         : 44
frame_mbs_only_flag                    : 1
direct_8x8_inference_flag              : 1
frame_cropping_flag                    : 0
vui_parameters_present_flag            : 1
aspect_ratio_info_present_flag         : 1
aspect_ratio_idv                       : 1
overscan_info_present_flag             : 1
overscan_appropriate_flag              : 1
video_signal_type_present_flag         : 1
video_format                           : 5
video_full_range_flag                  : 0
colour_description_present_flag        : 1
colour_primaries                       : 1
transfer_characteristics               : 1
matrix_coefficients                    : 1
chroma_loc_info_present_flag           : 0
timing_info_present_flag               : 1
num_units_in_tick                      : 1001
time_scale                             : 120000
fixed_frame_rate_flag                  : 1
nal_hrd_parameters_present_flag        : 1
cpb_cnt_minus1                         : 0
bit_rate_scale                         : 4
cpb_size_scale                         : 6
bit_rate_value_minus1_0                : 19530
cpb_size_value_minus1_0                : 24413
cbr_flag_0                             : 0
initial_cpb_removal_delay_length_minus1: 23
cpb_removal_delay_length_minus1        : 15
dpb_output_delay_length_minus1         : 7
time_offset_length                     : 0
vcl_hrd_parameters_present_flag        : 0
-----------------------------

Video format: H264 1280x720p/59,940 fps/m...@4.0
Colorimetry : ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709

Scanning for audio details
$1100 2 different AC3 types detected!
$1100 selecting AC3 type with mode 5.1
Audio stream 1: AC3 5.1 48000Hz (ENG)

Cut in  at PCR: 00:00:00.000 (00:29:12.681)
Cut out at PCR: 02:11:38.294 (00:10:07.258) [with PCR wrap]

Starting at paket $00000002(00000000) PCR: 00:00:00.000 (00:29:12.681)
No cutting at the end needed
ES WARNING: For PID 1100 AC3 properties changed at 00:00:28.020 (2.0 48kHz >>> 5.1 48kHz) ES WARNING: For PID 1100 AC3 properties changed at 00:00:58.356 (5.1 48kHz >>> 2.0 48kHz) ES WARNING: For PID 1100 AC3 properties changed at 00:01:29.780 (2.0 48kHz >>> 5.1 48kHz)
TS  WARNING: For PID 0084 $000A404A: Paket discontinuity 11,0
TS  WARNING: For PID 1011 $000A404B: Paket discontinuity 15,10
TS  WARNING: For PID 1100 $000A4278: Paket discontinuity 14,9
TS Warning: PCR timing for PID 1001 last PCR:00:31:35.297 current PCR:00:00:01.616 at paket $000A4350 TimeBase:145414 PCRExtension:194
TS  WARNING: For PID 0084 $00C6AD1C: Paket discontinuity 11,0
TS  WARNING: For PID 1011 $00C6AD1D: Paket discontinuity 12,8
TS  WARNING: For PID 1100 $00C6AEA5: Paket discontinuity 3,9
TS Warning: PCR timing for PID 1001 last PCR:00:43:24.378 current PCR:00:00:01.616 at paket $00C6AF1E TimeBase:145414 PCRExtension:194 ES WARNING: For PID 1100 AC3 properties changed at 00:16:58.196 (5.1 48kHz >>> 2.0 48kHz) ES WARNING: For PID 1100 AC3 properties changed at 00:16:59.060 (2.0 48kHz >>> 5.1 48kHz) ES WARNING: For PID 1100 AC3 properties changed at 00:21:15.892 (5.1 48kHz >>> 2.0 48kHz) ES WARNING: For PID 1100 AC3 properties changed at 00:22:31.988 (2.0 48kHz >>> 5.1 48kHz)
TS  WARNING: For PID 1011 $01A89521: Paket discontinuity 6,2
TS  WARNING: For PID 1100 $01A8960F: Paket discontinuity 15,9
TS Warning: PCR timing for PID 1001 last PCR:00:52:07.469 current PCR:00:00:01.616 at paket $01A89662 TimeBase:145414 PCRExtension:194 ES WARNING: For PID 1100 AC3 properties changed at -00:29:11.116 (5.1 48kHz >>> 2.0 48kHz) ES WARNING: For PID 1100 AC3 properties changed at -00:28:11.820 (2.0 48kHz >>> 5.1 48kHz)

---------  NAL Unit Type Statistic  ---------
Slices                 : 385218
    I-Slices           : 0
    P-Slices           : 0
    B-Slices           : 0
    SP-Slices          : 0
    SI-Slices          : 0
Data Partition A       : 0
Data Partition B       : 0
Data Partition A       : 0
IDR Picture            : 3034
SEI                    : 388252
Sequence Parameter Set : 12135
Picture Parameter Set  : 388252
AUD                    : 388252
End of Sequence        : 0
End of Stream          : 0
Filler                 : 0
Slices                 : 0
Seq. Param. Set Ext.   : 0


Cutted pakets at the beginning: 0
Cutted pakets at the end: 0
Discarded pakets (not needed): 24270

[/Code]
--

Rob Davis

_______________________________________________
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

Reply via email to