I have similar problems. TSDoctor and TS packet Editor has Problems with the cutting result.
TS Doctor:
Code: Select all
Opening file V:\dvd\test2_smc.ts
OS: Windows 7 Service Pack 1
TSDoctor.exe V 1.1.31 beta (Build 028009)
Supported TS source filter found : TS Doctor FileSource (on)
Supported splitter filter found : Haali
Supported audio filter found : CyberLink Audio Decoder (PDVD10), Microsoft DTV-DVD Audio Decoder
Supported Mpeg video filter found : CyberLink Video/SP Decoder (PDVD10), Microsoft DTV-DVD Video Decoder
Supported H264 video filter found : CoreAVC Video Decoder, CyberLink Video Decoder (PDVD10), Microsoft DTV-DVD Video Decoder
File size: 42054284
Packets : 223693
Scanning for TRP fill packets
Scanning for PIDs
Found 4 different PIDs
Identifying stream types
$0200: 0% = PMT
$0202: 96% = H264 Video (PES_StreamID E0 = Video_Stream_0) [PTS,DTS][PESLength]
$0203: 4% = AC3 Audio (PES_StreamID BD = Private_Stream_1) [PCR,PTS][PESLength]
$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 : 1
Reserved Bit 3 : 1
Reserved Bit 4 : 1
Version Number : 2
Current Next Indicator : 1
Section Number : 0
Last Section Number : 0
Program Number : $0201
Map PID : $0200
CRC32 : $1F949484 = $1F949484
-----------------------------
Found 1 different PATs
Found 1 different PMT PIDs
Scanning for PMTs
----------- PMT 0 -----------
Packet : $00000001
PacketCount : 1
PID : $0200
Table ID : 2
Section Syntax Indicator : 1
PMT Size : 46
Pointer Field : 0
Section Length : 38
Program Number : $0201
Version Number : 2
Current Next Indicator : 1
Section Number : 0
Last Section Number : 0
PCR PID : $0203
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 : $0202
ES Info Length : 3
ES Info : $52, $01, $01
ES Info Text : R__
Stream Type : 6
Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3)
Elementary PID : $0203
ES Info Length : 12
ES Info : $52, $01, $02, $0A, $04, $64, $65, $75, $00, $6A, $01, $00
ES Info Text : R____deu_j__
CRC32 : $0F82A93E = $0F82A93E
-----------------------------
Found 1 different PMTs
Selecting PMT with PID 0200 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 : 0202
ES_info_length : 3
1.
stream_type : 6 = ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3)
elementary_pid : 0203
ES_info_length : 12
PCR PID is 0203
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 : 1
Reserved Bit 3 : 1
Reserved Bit 4 : 1
Version Number : 2
Current Next Indicator : 1
Section Number : 0
Last Section Number : 0
Program Number : $0201
Map PID : $0200
CRC32 : $1F949484 = $1F949484
-----------------------------
Created PMT:
----------- PMT 0 -----------
Packet : $00000001
PacketCount : 1
PID : $0200
Table ID : 2
Section Syntax Indicator : 1
PMT Size : 46
Pointer Field : 0
Section Length : 38
Program Number : $0201
Version Number : 2
Current Next Indicator : 1
Section Number : 0
Last Section Number : 0
PCR PID : $0203
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 : $0202
ES Info Length : 3
ES Info : $52, $01, $01
ES Info Text : R__
Stream Type : 6
Description : ITU-T Rec. H.222.0 | ISO/IEC 13818-1 PES packets containing private data (AC3)
Elementary PID : $0203
ES Info Length : 12
ES Info : $52, $01, $02, $0A, $04, $64, $65, $75, $00, $6A, $01, $00
ES Info Text : R____deu_j__
CRC32 : $0F82A93E = $0F82A93E
-----------------------------
First video PTS is 80585310 00:14:55.392
Last video PTS is 84579505 00:15:39.772
First PCR is 24165974100 00:14:55.036
Last PCR is 25324812900 00:15:37.956
Duration of video stream is 3862796 00:00:42.920
Video PCR to PTS difference 0 ms
$0203: Delay to video stream = -28ms
The following PIDs will be imported into new stream: $0202, 0203
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 : 1
pic_order_cnt_type : 0
log2_max_pic_order_cnt_lsb_minus4 : 2
num_ref_frames : 4
gaps_in_frame_num_value_allowed_flag : 0
pic_width_in_mbs_minus1 : 79
pic_height_in_map_units_minus1 : 33
frame_mbs_only_flag : 0
mb_adaptive_frame_field_flag : 1
direct_8x8_inference_flag : 1
frame_cropping_flag : 1
frame_crop_left_offset : 0
frame_crop_right_offset : 0
frame_crop_top_offset : 0
frame_crop_bottom_offset : 2
vui_parameters_present_flag : 1
aspect_ratio_info_present_flag : 1
aspect_ratio_idv : 255
sar_width : 3
sar_height : 2
overscan_info_present_flag : 0
video_signal_type_present_flag : 1
video_format : 0
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 : 1
time_scale : 50
fixed_frame_rate_flag : 1
nal_hrd_parameters_present_flag : 0
vcl_hrd_parameters_present_flag : 0
-----------------------------
Video format: H264 1280x1088i/25 fps/Main@4.0
Colorimetry : ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
Warning: PES length on video stream
Patching PES length on video stream!
Scanning for audio details
Audio stream 1: AC3 2.0 48000Hz (DEU)
Cut in at PCR: 00:00:00.000 (00:14:55.036)
Cut out at PCR: 00:00:42.920 (00:15:37.956)
Starting at paket 00000002(00000000) PCR: 00:00:00.000 (00:14:55.036)
No cutting at the end needed
ES WARNING: H264 video resolution info changed at -00:14:55.396
from 1280x1088, Interlaced / 25 fps / Main@4.0 / ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
to 1280x1088, Interlaced / 25 fps / High@4.0 / ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
PES ERROR : For PID 0203 -00:00:00.032 PES paket 00000001 is invalid (SizeMismatch), starting with TS paket 00000A84 Size: 1466 should be 1544
ES WARNING: H264 video resolution info changed at -00:14:55.396
from 1280x1088, Interlaced / 25 fps / High@4.0 / ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
to 1280x1088, Interlaced / 25 fps / Main@4.0 / ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
TS WARNING: For PID 0203 0000D9A2: Packet discontinuity 0,0
TS WARNING: For PID 0202 0000D9C3: Packet discontinuity 12,0
PES ERROR : For PID 0203 00:00:10.952 PES paket 00000047 is invalid (SizeMismatch), starting with TS paket 0000D9A2 Size: 6066 should be 6152
ES WARNING: H264 video resolution info changed at -00:14:55.396
from 1280x1088, Interlaced / 25 fps / Main@4.0 / ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
to 1280x1088, Interlaced / 25 fps / High@4.0 / ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
TS WARNING: For PID 0203 00024D2A: Packet discontinuity 5,0
TS WARNING: For PID 0202 00024D43: Packet discontinuity 4,0
ES WARNING: H264 video resolution info changed at -00:14:55.396
from 1280x1088, Interlaced / 25 fps / High@4.0 / ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
to 1280x1088, Interlaced / 25 fps / Main@4.0 / ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
PES ERROR : For PID 0203 00:00:25.544 PES paket 000000A3 is invalid (SizeMismatch), starting with TS paket 00024D2A Size: 4594 should be 4616
ES WARNING: H264 video resolution info changed at -00:14:55.396
from 1280x1088, Interlaced / 25 fps / Main@4.0 / ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
to 1280x1088, Interlaced / 25 fps / High@4.0 / ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
PES WARNING: For PID 0203 DVB/ATSC unconform PES formating detected: SizeMismatch
--------- NAL Unit Type Statistic ---------
Slices : 2129
I-Slices : 34
P-Slices : 532
B-Slices : 1563
SP-Slices : 0
SI-Slices : 0
Data Partition A : 0
Data Partition B : 0
Data Partition A : 0
IDR Picture : 8
SEI : 2142
Sequence Parameter Set : 42
Picture Parameter Set : 42
AUD : 2137
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): 42
PID stream sizes
$0202: 38,0 MB
$0203: 2,1 MB
ERRORS : 3
WARNINGS : 10
Speed: 31,4 MBytes/sec
Duration: 00:00:01
TSPE:
Code: Select all
TSPE Version 0.813 Scan of: V:\dvd\test2_smc.ts
Scan performed on: Sat, 24 Sep 2011 22:34:48 GMT
PID 0x0200 Continuity Error found at offset 0x134120
PID 0x0203 Continuity Error found at offset 0x9FD2F8
(Related continuity break in PID 0x0202 at offset 0x9FEB34)
(Related continuity break in PID 0x0000 at offset 0xDE3EF8)
(Related continuity break in PID 0x0200 at offset 0xDE3FB4)
(...also PCR gap of 3,1 seconds in PID 0x0203 at offset 0xED68E0)
PID 0x0203 Continuity Error found at offset 0x1B0AAD8
(Related continuity break in PID 0x0202 at offset 0x1B0BD34)
(Related continuity break in PID 0x0000 at offset 0x1CF1918)
(Related continuity break in PID 0x0200 at offset 0x1CF19D4)
(...also PCR gap of 2,2 seconds in PID 0x0203 at offset 0x1D8C79C)
PID Tree:
PAT PID: 0x0000 Ver: 2 TS ID: 0x0001
0x0200: PMT Ver: 2 Program : 513
0x0202: H.264/AVC Video (as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video)
0x0203: AC-3 Audio (DVB) Stream
PID List:
PID: 0000: PAT PID: 0x0000 Ver: 2 TS ID: 0x0001
PID: 0200: 0x0200: PMT Ver: 2 Program : 513
PID: 0202: H.264/AVC Video (as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video)
H.264 1280x1088 (1920x1080) @ 25,000 fps
PID: 0203: AC-3 Audio (DVB) Stream
AC3: 2/0: L,R 48KHz 384Kbit/s
Filter Info:
Video Resolution from Codec: 1280 x 1080 @ 25.00 fps
Approximate System Bitrate: 722632985440203,00 Mbits/s
Approximate Duration: 00:00:44.40
Video Duration by PTS: 00:00:44.439
Filesize: 00,04GB Average bitrate 07,22 Mbps
PID: 0x0202: H.264 1280x1088 (1920x1080) @ 25,000 fps
PID: 0x0203: AC3: 2/0: L,R 48KHz 384Kbit/s
2138 Total Video Frames found
281 Total Audio Frames found
Continuity Errors: 9, Transport Error Indicator Errors: 0
Timestamp gaps: 0, PCR gaps: 2
Total number of separate discontinuous regions: 3
End Of Log.
The line "PID 0x0200 Continuity Error found at offset 0x134120" is the only error which ist detected in the original stream.
If it helps i can upload the test file (40MB) and project file.