Problems with incorrect time length of recording

Begonnen von boulder, November 09, 2010, 10:44:54

« vorheriges - nächstes »

boulder

I have an HD recording (H264) with both an AC3 and MPEG1 audio stream, which does play back alright when viewed normally.
I first tried to cut it with H264TSCutter 111, but this crashed, and while selecting cut points, the video suddenly was reported to be more than 7 hours in length.
I can open it in Videoredo TV Suite H264 latest beta, and save it, but then I simply lose one of both audio streams (the program cannot handle a combination of AC3 and MPEG1 audio streams).
If I open it in TSDoctor and save it to a _fixed file, the problem is not gone, and cutting within the original file gives strange results.
If I put my first cut point at 47 seconds from the start, this is changed into 47 minutes the moment I want to save the file.
I also tried starting from the _fixed file, and then cutting within it, and that seems to work (the length of the file is correct after that), but then the MPEG1 audio stream seems to be gone.

This is probably all caused by a small glitch in the recording.
Is there any way to fix this, as the recording is correct, apart from this annoying behaviour.

Cypheros

Hi,

could you post the log of the _fixed file (first fix)?

Are there timer errors in the log?

boulder

Zitat von: Cypheros am November 09, 2010, 12:34:39
Hi,

could you post the log of the _fixed file (first fix)?

Are there timer errors in the log?
Zitat
First PCR  is 911272607400 09:22:30.837
Last PCR  is 1097537164467 11:17:29.525
Duration of video stream is 620881857 01:54:58.687
Video PCR to PTS difference -1247 ms
Patch time base for PID $0259 = -21600187 ms
$0259: Delay to video stream = 21600187ms
$02BD: Delay to video stream = -915ms


The following PIDs will be imported into new stream: $012D, $0259, $02BD

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                : 89
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                    : 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                              : 4
sar_height                             : 3
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
nal_hrd_parameters_present_flag        : 0
vcl_hrd_parameters_present_flag        : 0
-----------------------------

Video format: H264 1440x1088i/25 fps/Main@4.0
Colorimetry : ColourPrimaries=BT.709, TransferCharacteristics=BT.709, MatrixCoefficients=BT.709
ES  WARNING: video_full_range_flag is set!
Reset video_full_range_flag !

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

Cut in  at PCR: 00:00:00.000 (09:22:30.837)
Cut out at PCR: 01:54:58.687 (11:17:29.525)

Starting at paket $00000000(00000000) PCR: 00:00:00.000 (09:22:30.837)
No cutting at the end needed
TS  WARNING: For PID 012D $0000006B: Packet discontinuity 3,11
TS  WARNING: For PID 0259 $00000076: Packet discontinuity 1,4
TS  WARNING: For PID 02BD $0000007A: Packet discontinuity 14,14
PES ERROR: For PID 02BD -06:00:01.102 PES paket $00000001 is invalid (SizeMismatch), starting with TS paket $00000067 Size: 3208 should be 3080
ES  WARNING: For PID 02BD AC3 properties changed at 00:02:32.104 (5.1 48kHz >>> 2.0 48kHz)

---------  NAL Unit Type Statistic  ---------
Slices                 : 344936
    I-Slices           : 5553
    P-Slices           : 87256
    B-Slices           : 252127
    SP-Slices          : 0
    SI-Slices          : 0
Data Partition A       : 0
Data Partition B       : 0
Data Partition A       : 0
IDR Picture            : 0
SEI                    : 695425
Sequence Parameter Set : 5553
Picture Parameter Set  : 5553
AUD                    : 344936
End of Sequence        : 0
End of Stream          : 0
Filler                 : 348608
Slices                 : 0
Seq. Param. Set Ext.   : 0

H264 filler data: 1,5% [Netto]

Cutted pakets at the beginning: 0
Cutted pakets at the end: 0
Discarded pakets (not needed): 157685
Changed Sequence Parameter Sets: 5553 of 5553

ERRORS : 1
WARNINGS : 4

Speed: 11,3 MBytes/sec
Duration: 00:11:29


krebs11

I have the same problem, log:

Opening file L:\Prenos\The Cleaner S01E02.ts

OS: Windows XP Service Pack 2
TSDoctor.exe V 1.1.41 beta (Build 02432C)

Supported TS source filter found  : TS Doctor FileSource (on)
Supported splitter filter found   : Haali
Supported audio filter found      : ffdshow Audio Decoder, CyberLink Audio Decoder (PDVD8), CyberLink Audio Decoder (PDVD10)
Supported Mpeg video filter found : CyberLink Video/SP Decoder (PDVD10), CyberLink Video/SP Decoder (PDVD8), ffdshow Video Decoder
Supported H264 video filter found : CyberLink Video Decoder (PDVD10), CyberLink H.264/AVC Decoder, CyberLink H.264/AVC Decoder (PDVD8), ffdshow Video Decoder
File size: 695947048
Packets  : 3701846


Scanning for TRP fill packets

Scanning for PIDs

Found 4 different PIDs

Identifying stream types

$006B: 0%   = PMT
$00F0: 89%  = H264 Video (PES_StreamID E0 = Video_Stream_0) [PCR,PTS,DTS]
$00F1: 11%  = MPEG1 Audio (PES_StreamID C0 = Audio_Stream_0) [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      : 2
Reserved Bit 3           : 1
Reserved Bit 4           : 1
Version Number           : 16
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0

  Program Number : $0007
  Map PID        : $006B

CRC32                    : $9D1BEE34 = $9D1BEE34
-----------------------------

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

----------- PMT 0 -----------
Packet                   : $00000001
PacketCount              : 1
PID                      : $006B
Table ID                 : 2
Section Syntax Indicator : 1
PMT Size                 : 43
Pointer Field            : 0
Section Length           : 35
Program Number           : $0007
Version Number           : 26
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0
PCR PID                  : $00F0

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 : $00F0
  ES Info Length : 6
  ES Info        : $28, $04, $4D, $40, $1E, $3F
  ES Info Text   : (_M@_?

  Stream Type    : 3
  Description    : ISO/IEC 11172 Audio
  Elementary PID : $00F1
  ES Info Length : 6
  ES Info        : $0A, $04, $73, $6C, $76, $00
  ES Info Text   : __slv_

CRC32                    : $2FB4F424 = $2FB4F424
-----------------------------

Found 1 different PMTs

Selecting PMT with PID 006B 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           : 00F0
  ES_info_length           : 6

1.
  stream_type              : 3 = ISO/IEC 11172 Audio
  elementary_pid           : 00F1
  ES_info_length           : 6

PCR PID is 00F0

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      : 2
Reserved Bit 3           : 1
Reserved Bit 4           : 1
Version Number           : 16
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0

  Program Number : $0007
  Map PID        : $006B

CRC32                    : $9D1BEE34 = $9D1BEE34
-----------------------------



Created PMT:

----------- PMT 0 -----------
Packet                   : $00000001
PacketCount              : 1
PID                      : $006B
Table ID                 : 2
Section Syntax Indicator : 1
PMT Size                 : 43
Pointer Field            : 0
Section Length           : 35
Program Number           : $0007
Version Number           : 26
Current Next Indicator   : 1
Section Number           : 0
Last Section Number      : 0
PCR PID                  : $00F0

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 : $00F0
  ES Info Length : 6
  ES Info        : $28, $04, $4D, $40, $1E, $3F
  ES Info Text   : (_M@_?

  Stream Type    : 3
  Description    : ISO/IEC 11172 Audio
  Elementary PID : $00F1
  ES Info Length : 6
  ES Info        : $0A, $04, $73, $6C, $76, $00
  ES Info Text   : __slv_

CRC32                    : $2FB4F424 = $2FB4F424
-----------------------------


First video PTS is 222136970 00:41:08.189
Last video PTS  is 488184170 01:30:24.269

First PCR  is 66614023200 00:41:07.186
Last PCR  is 146442387202 01:30:23.792
Duration of video stream is 266094547 00:49:16.606
Video PCR to PTS difference -438 ms
$00F1: Delay to video stream = 121ms


The following PIDs will be imported into new stream: $00F0, 00F1

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                              : 30
seq_parameter_set_id                   : 0
log2_max_frame_num_minus4              : 0
pic_order_cnt_type                     : 0
log2_max_pic_order_cnt_lsb_minus4      : 1
num_ref_frames                         : 3
gaps_in_frame_num_value_allowed_flag   : 0
pic_width_in_mbs_minus1                : 44
pic_height_in_map_units_minus1         : 17
frame_mbs_only_flag                    : 0
mb_adaptive_frame_field_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                       : 4
overscan_info_present_flag             : 0
video_signal_type_present_flag         : 1
video_format                           : 5
video_full_range_flag                  : 0
colour_description_present_flag        : 1
colour_primaries                       : 6
transfer_characteristics               : 6
matrix_coefficients                    : 6
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                      : 1200
time_scale                             : 60000
fixed_frame_rate_flag                  : 1
nal_hrd_parameters_present_flag        : 0
vcl_hrd_parameters_present_flag        : 0
-----------------------------

Video format: H264 720x576i/25 fps/Main@3.0
Colorimetry : ColourPrimaries=170M, TransferCharacteristics=170M, MatrixCoefficients=170M

Scanning for audio details
Audio stream 1: MPEG1 Audio

Cutting areas (I/P-Frame aligned)
Cut 1 In : 00:41:13.149 (AUD|SPS|PPS|PPS|PPS|SEI|SEI|I-SLICE|)
Cut 1 Out: 01:29:08.629 (AUD|SEI|SEI|P-SLICE|)
Cut 1 PCR/PTS/DTS offset: 00:00:00.000



Cut in  at PCR: 00:00:05.525 (00:41:12.711)
Cut out at PCR: 00:48:01.085 (01:29:08.271)
First packet  : 00000FAD
Last packet   : 00370794

Starting at paket 00000FAD PCR: 00:00:04.999 (00:41:12.185)
Cutting the end at paket 00370795 PCR: 00:47:56.466 (01:29:08.651)

---------  NAL Unit Type Statistic  ---------
Slices                 : 72427
    I-Slices           : 3230
    P-Slices           : 20908
    B-Slices           : 48289
    SP-Slices          : 0
    SI-Slices          : 0
Data Partition A       : 0
Data Partition B       : 0
Data Partition A       : 0
IDR Picture            : 751
SEI                    : 145102
Sequence Parameter Set : 3980
Picture Parameter Set  : 11940
AUD                    : 73178
End of Sequence        : 0
End of Stream          : 0
Filler                 : 0
Slices                 : 0
Seq. Param. Set Ext.   : 0


Cutted pakets at the beginning: 4011
Cutted pakets at the end: 95425
Discarded pakets (to synch audio/video): 1497
Discarded pakets (not needed): 722

PID stream sizes
$00F0: 575,7 MB
$00F1: 69,8 MB

ERRORS : 0
WARNINGS : 0

Speed: 13,0 MBytes/sec
Duration: 00:00:49

Cypheros

Where is the exact problem?

You have a recording of 49 minutes and cuts off 5 seconds at the start and 76 seconds at the end. I can't see any problems in the log, no errors or glitches.

krebs11

The file is 2 sec moved to - previous movie, as i cutting to 3 sec at start and not 5 sec at start.

Cypheros

OK, your problem is that the cutting position is not accurate. The TS-Doctor aligns the cutting to the next I-frame because cutting at another position would give you picture distorsions. The TS-Doctor can't cut frame accurate because that would need a reencoding of the whole recording or parts of it.

krebs11

Program TS-Doctor could have the key for I-frame (+,-) like now +1,-1 frame,the Virtual dub have a key for next key frame. If i this new file again cut-start off 2sec, now its the file ok

Cypheros

I working on that function but it's a complex work.


www.cypheros.de