[vdr] Small VDR-streamdev patch for Popcorn Hour NMT

jori.hamalainen at teliasonera.com jori.hamalainen at teliasonera.com
Fri Nov 14 18:56:30 CET 2008



> Maybe PAT/PMT still isn't correct. Output of TS-Doctor plus hexdump of
> original and fixed stream would be better. Sorry - I cannot test myself here.

If you have some FTP-site I can provide you the files. Or I can send to gmail.

ts-doctor log
Opening file G:\Nomads\sd_test\C-0-13-3805.ts

Scanning for TRP fill packets
Scanning for PIDs
Found 7 different PIDs
$18CF: 0%
$0202: 93%
$0288: 2%
$0012: 3%
$0289: 2%
$0260: 0%
$025D: 0%


Scanning for PATs

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

  Program Number : $0EDD
  Map PID        : $18CF

CRC32                    : $CCA359A7 = $CCA359A7
-----------------------------

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

----------- PMT 0 -----------
Packet                   : 1
PID                      : $18CF
Table ID                 : 2
Section Syntax Indicator : 1
Section Length           : 79
Program Number           : 3805
Version Number           : 6
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0
PCR PID                  : $0202

Program Info Length      : 6
Program Info             : $09, $04, $0B, $00, $FC, $89

  Stream Type    : 27
  Description    : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video
  Elementary PID : $0202
  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 : $0289
  ES Info Length : 9
  ES Info        : $6A, $01, $00, $0A, $04, $65, $6E, $67, $00
  ES Info Text   : j____eng_

  Stream Type    : 3
  Description    : ISO/IEC 11172 Audio
  Elementary PID : $0288
  ES Info Length : 6
  ES Info        : $0A, $04, $66, $72, $65, $00
  ES Info Text   : __fre_

  Stream Type    : 6
  Description    : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data
  Elementary PID : $025D
  ES Info Length : 10
  ES Info        : $59, $08, $73, $77, $65, $12, $00, $02, $00, $02
  ES Info Text   : Y_swe_____

  Stream Type    : 6
  Description    : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data
  Elementary PID : $0260
  ES Info Length : 10
  ES Info        : $59, $08, $66, $69, $6E, $12, $00, $02, $00, $02
  ES Info Text   : Y_fin_____

CRC32                    : $4C3E165C = $4C3E165C
-----------------------------

Found 1 different PMTs

Selecting PMT with PID $18CF at position 1
CRC OK!
Deleting PMT entry: PID $025D type 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data
Deleting PMT entry: PID $0260 type 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data
2 entries deleted from stream list (not found in stream)!

0.
  stream_type              : 27 = AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video
  elementary_pid           : $0202
  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           : $0289
  ES_info_length           : 9

2.
  stream_type              : 3 = ISO/IEC 11172 Audio
  elementary_pid           : $0288
  ES_info_length           : 6

PCR PID is $0202

Created PAT:

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

  Program Number : $0001
  Map PID        : $18CF

CRC32                    : $02D8FB18 = $02D8FB18
-----------------------------



Created PMT:

----------- PMT 0 -----------
Packet                   : 1
PID                      : $18CF
Table ID                 : 2
Section Syntax Indicator : 1
Section Length           : 49
Program Number           : 1
Version Number           : 6
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0
PCR PID                  : $0202

Program Info Length      : 6
Program Info             : $09, $04, $0B, $00, $FC, $89

  Stream Type    : 27
  Description    : AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video
  Elementary PID : $0202
  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 : $0289
  ES Info Length : 9
  ES Info        : $6A, $01, $00, $0A, $04, $65, $6E, $67, $00
  ES Info Text   : j____eng_

  Stream Type    : 3
  Description    : ISO/IEC 11172 Audio
  Elementary PID : $0288
  ES Info Length : 6
  ES Info        : $0A, $04, $66, $72, $65, $00
  ES Info Text   : __fre_

CRC32                    : $29870363 = $29870363
-----------------------------


First PTS is 2188548940 06:45:17.210
Last PTS is 2188833340 06:45:20.370
First DTS is 0 00:00:00.000
First PCR  is 656554845000 06:45:16.846
First PCR´ is 2188516150 06:45:16.846
Duration of video stream is 284400 00:00:03.160

The following PIDs will be imported into new stream: $0202, $0289, $0288

Scanning for video details
Video format: H264 1920x1088, Interlaced / 25 fps / High at 4.0

-------- H264 Video ---------
profile_idc                            : 100
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
chroma_format_idc                      : 1
bit_depth_luma_minus8                  : 0
bit_depth_chroma_minus8                : 0
qpprime_y_zero_transform_bypass_flag   : 0
seq_scaling_matrix_present_flag        : 0
log2_max_frame_num_minus4              : 8
pic_order_cnt_type                     : 0
log2_max_pic_order_cnt_lsb_minus4      : 5
num_ref_frames                         : 2
gaps_in_frame_num_value_allowed_flag   : 0
pic_width_in_mbs_minus1                : 119
pic_height_in_map_units_minus1         : 33
frame_mbs_only_flag                    : 0
mb_adaptive_frame_field_flag           : 0
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                  : 1
colour_description_present_flag        : 1
colour_primaries                       : 1
transfer_characteristics               : 1
matrix_coefficients                    : 1
chroma_loc_info_present_flag           : 1
chroma_sample_loc_type_top_field       : 0
chroma_sample_loc_type_bottom_field    : 0
timing_info_present_flag               : 1
num_units_in_tick                      : 1
time_scale                             : 50
fixed_frame_rate_flag                  : 1
-----------------------------

WARNING: video_full_range_flag is set!
Ignore video_full_range_flag !

Scanning for audio details
Audio stream 1: AC3 5.1 48000Hz (ENG)
Audio stream 2: 

Starting at packet 2 00:00:00.000
WARNING: video_full_range_flag on
Changed Sequence Parameter Set (0) video_full_range_flag in packet 1056 byte 66
ERROR: For PID 18CF 2862: Packet discontinuity 0,13
WARNING: video_full_range_flag on
Changed Sequence Parameter Set (1) video_full_range_flag in packet 6520 byte 66
WARNING: video_full_range_flag on
Changed Sequence Parameter Set (2) video_full_range_flag in packet 11915 byte 66
WARNING: video_full_range_flag on
Changed Sequence Parameter Set (3) video_full_range_flag in packet 18213 byte 66
WARNING: video_full_range_flag on
Changed Sequence Parameter Set (4) video_full_range_flag in packet 23635 byte 66
WARNING: video_full_range_flag on
Changed Sequence Parameter Set (5) video_full_range_flag in packet 29192 byte 66
WARNING: video_full_range_flag on
Changed Sequence Parameter Set (6) video_full_range_flag in packet 34590 byte 66

---------  NAL Unit Type Statistic  ---------
Slices                 : 462
Data Partition A       : 0
Data Partition B       : 0
Data Partition A       : 0
IDR Picture            : 0
SEI                    : 91
Sequence Parameter Set : 7
Picture Parameter Set  : 7
AUD                    : 77
End of Sequence        : 0
End of Stream          : 0
Filler                 : 0
Slices                 : 0
Seq. Param. Set Ext.   : 0


Cutted packets at the beginning: 0
Cutted packets at the end: 0
Discarded packets (not needed): 1097
Changed Sequence Parameter Sets: 7 of 7

ERRORS : 0
WARNINGS : 7

Speed: 3.8 MBytes/sec
Duration: 00:00:01

hexdump orig
00000000  47 40 00 10 00 00 b0 0d  00 06 d7 00 00 00 01 f8  |G at ..............|
00000010  cf 02 d8 fb 18 ff ff ff  ff ff ff ff ff ff ff ff  |................|
00000020  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
000000b0  ff ff ff ff ff ff ff ff  ff ff ff ff 47 58 cf 10  |............GX..|
000000c0  00 02 b0 31 00 01 cd 00  00 e2 02 f0 06 09 04 0b  |...1............|
000000d0  00 fc 89 1b e2 02 f0 00  06 e2 89 f0 09 6a 01 00  |.............j..|
000000e0  0a 04 65 6e 67 00 03 e2  88 f0 06 0a 04 66 72 65  |..eng........fre|
000000f0  00 29 87 03 63 ff ff ff  ff ff ff ff ff ff ff ff  |.)..c...........|
00000100  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000170  ff ff ff ff ff ff ff ff  47 02 02 10 41 30 04 5c  |........G...A0.\|
00000180  13 f9 b3 79 af bb 5b 39  33 e1 a0 bf 67 24 70 e5  |...y..[93...g$p.|
00000190  b9 a8 21 33 c7 85 c1 25  6d f3 13 3e c2 d5 f0 76  |..!3...%m..>...v|
000001a0  7f 0f ba 4a 12 df 27 4c  d0 04 b0 0f 29 47 a1 8a  |...J..'L....)G..|
000001b0  ae 7a cf 6d f9 2d b5 c4  d0 09 e6 0f f6 07 0c 98  |.z.m.-..........|
000001c0  66 6d f6 d2 dc 62 de d6  4f 5a 9d 96 80 2f 0b 0a  |fm...b..OZ.../..|
000001d0  82 b2 31 0c fd 28 2d e4  d2 92 e6 6e 9c 98 f1 75  |..1..(-....n...u|
000001e0  36 80 67 07 da 10 38 57  0b 9a ef 5c 5f 82 f0 a5  |6.g...8W...\_...|
000001f0  e4 2c 1d 96 7a 6e c8 73  42 d7 eb b3 6a ef 23 ca  |.,..zn.sB...j.#.|
00000200  a9 7a 18 ea 28 e0 f9 d9  f9 d3 68 05 0e 10 a0 9d  |.z..(.....h.....|
00000210  5c b1 0b 02 5c fb 90 94  ab 0a 37 ac 37 b4 b7 42  |\...\.....7.7..B|
00000220  35 ac 86 86 25 61 6e 19  30 26 6c e9 bb 62 08 91  |5...%an.0&l..b..|
00000230  f0 aa 92 73 47 02 02 11  63 b9 01 f6 9d 34 bf ce  |...sG...c....4..|
00000240  1a f8 03 27 16 e3 d1 82  cc a5 e3 04 01 af 3f 40  |...'..........?@|
00000250  90 5f ea 65 aa 7c c6 0a  b1 62 14 40 3d 1d b8 52  |._.e.|...b.@=..R|
00000260  e4 d5 61 c9 fd 98 7f e5  7b 6f fb 25 b8 f3 9f 81  |..a.....{o.%....|
00000270  17 92 de 7a 84 78 d1 9e  06 cd 26 b6 63 64 33 38  |...z.x....&.cd38|
00000280  83 d2 c5 37 12 89 40 b8  a6 26 93 0c e0 c1 40 38  |...7.. at ..&.... at 8|
00000290  45 2f 98 99 f6 0b 12 9b  2f ab be 2c 9f 37 33 df  |E/....../..,.73.|
000002a0  86 ea 3f 4b f2 a1 64 14  45 d0 20 ed 7a 5d 2e c9  |..?K..d.E. .z]..|
000002b0  4e 04 04 8c 26 f9 cf 69  f5 b7 d9 68 23 ed 18 ae  |N...&..i...h#...|
000002c0  a0 b4 da 3b 9c 76 04 a0  75 b3 f8 31 27 6b c1 86  |...;.v..u..1'k..|
000002d0  76 0b 9d 68 2e a8 d3 8b  cc 90 c1 86 45 01 40 6b  |v..h........E. at k|
000002e0  b0 94 d8 7e 0f b7 62 87  e5 65 52 e9 62 87 de 6b  |...~..b..eR.b..k|
000002f0  47 02 02 12 4b c4 df 3f  6d 0e c2 88 f8 59 9f bc  |G...K..?m....Y..|



hexdump fixed
00000000  47 40 00 10 00 00 b0 0d  00 06 d7 00 00 00 01 f8  |G at ..............|
00000010  cf 02 d8 fb 18 ff ff ff  ff ff ff ff ff ff ff ff  |................|
00000020  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
000000b0  ff ff ff ff ff ff ff ff  ff ff ff ff 47 58 cf 10  |............GX..|
000000c0  00 02 b0 31 00 01 cd 00  00 e2 02 f0 06 09 04 0b  |...1............|
000000d0  00 fc 89 1b e2 02 f0 00  06 e2 89 f0 09 6a 01 00  |.............j..|
000000e0  0a 04 65 6e 67 00 03 e2  88 f0 06 0a 04 66 72 65  |..eng........fre|
000000f0  00 29 87 03 63 ff ff ff  ff ff ff ff ff ff ff ff  |.)..c...........|
00000100  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
*
00000170  ff ff ff ff ff ff ff ff  47 02 02 10 41 30 04 5c  |........G...A0.\|
00000180  13 f9 b3 79 af bb 5b 39  33 e1 a0 bf 67 24 70 e5  |...y..[93...g$p.|
00000190  b9 a8 21 33 c7 85 c1 25  6d f3 13 3e c2 d5 f0 76  |..!3...%m..>...v|
000001a0  7f 0f ba 4a 12 df 27 4c  d0 04 b0 0f 29 47 a1 8a  |...J..'L....)G..|
000001b0  ae 7a cf 6d f9 2d b5 c4  d0 09 e6 0f f6 07 0c 98  |.z.m.-..........|
000001c0  66 6d f6 d2 dc 62 de d6  4f 5a 9d 96 80 2f 0b 0a  |fm...b..OZ.../..|
000001d0  82 b2 31 0c fd 28 2d e4  d2 92 e6 6e 9c 98 f1 75  |..1..(-....n...u|
000001e0  36 80 67 07 da 10 38 57  0b 9a ef 5c 5f 82 f0 a5  |6.g...8W...\_...|
000001f0  e4 2c 1d 96 7a 6e c8 73  42 d7 eb b3 6a ef 23 ca  |.,..zn.sB...j.#.|
00000200  a9 7a 18 ea 28 e0 f9 d9  f9 d3 68 05 0e 10 a0 9d  |.z..(.....h.....|
00000210  5c b1 0b 02 5c fb 90 94  ab 0a 37 ac 37 b4 b7 42  |\...\.....7.7..B|
00000220  35 ac 86 86 25 61 6e 19  30 26 6c e9 bb 62 08 91  |5...%an.0&l..b..|
00000230  f0 aa 92 73 47 02 02 11  63 b9 01 f6 9d 34 bf ce  |...sG...c....4..|
00000240  1a f8 03 27 16 e3 d1 82  cc a5 e3 04 01 af 3f 40  |...'..........?@|
00000250  90 5f ea 65 aa 7c c6 0a  b1 62 14 40 3d 1d b8 52  |._.e.|...b.@=..R|
00000260  e4 d5 61 c9 fd 98 7f e5  7b 6f fb 25 b8 f3 9f 81  |..a.....{o.%....|
00000270  17 92 de 7a 84 78 d1 9e  06 cd 26 b6 63 64 33 38  |...z.x....&.cd38|
00000280  83 d2 c5 37 12 89 40 b8  a6 26 93 0c e0 c1 40 38  |...7.. at ..&.... at 8|
00000290  45 2f 98 99 f6 0b 12 9b  2f ab be 2c 9f 37 33 df  |E/....../..,.73.|
000002a0  86 ea 3f 4b f2 a1 64 14  45 d0 20 ed 7a 5d 2e c9  |..?K..d.E. .z]..|
000002b0  4e 04 04 8c 26 f9 cf 69  f5 b7 d9 68 23 ed 18 ae  |N...&..i...h#...|
000002c0  a0 b4 da 3b 9c 76 04 a0  75 b3 f8 31 27 6b c1 86  |...;.v..u..1'k..|
000002d0  76 0b 9d 68 2e a8 d3 8b  cc 90 c1 86 45 01 40 6b  |v..h........E. at k|
000002e0  b0 94 d8 7e 0f b7 62 87  e5 65 52 e9 62 87 de 6b  |...~..b..eR.b..k|
000002f0  47 02 02 12 4b c4 df 3f  6d 0e c2 88 f8 59 9f bc  |G...K..?m....Y..|



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 8709 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20081114/f6d591a2/attachment-0001.bin 


More information about the vdr mailing list