DavidB
February 21st, 2010, 02:20 PM
I use VideoReDo to edit video I've captured with Win7 Media Center. I use the Ad-Detective feature and then hand-tune the edits (they are always a frame or 2 or worst off) and then save the files as MPEG2 .ts files. I then run the files through the old program MPEG2Repair (http://www.videohelp.com/tools/MPEG2Repair) to fix the files. About 90% of the time there are corrupted packets. Here's a pretty extreme, recent example:
MPEG2Repair: E:\Recorded TV\Edited\Season 9\11 - Final 24 - Day 1.ts
Sequence Frame 47560(8-P) / Time 0:13:33 :
AudioWarning: Timestamp gap of 0.064000 sec. ending at file offset 1538653872
Sequence Frame 73594(6-B) / Time 0:20:47 :
AudioWarning: Timestamp gap of 0.032000 sec. ending at file offset 2360524824
Sequence Frame 104612(11-P) / Time 0:29:24 :
AudioWarning: Timestamp gap of 0.032000 sec. ending at file offset 3339279896
Sequence Frame 141179(11-P) / Time 0:39:34 :
AudioWarning: Timestamp gap of 0.064000 sec. ending at file offset 4492632260
Sequence Frame 238831(9-B) / Time 1:06:44 :
AudioWarning: Timestamp gap of 0.032000 sec. ending at file offset 7568872312
Sequence Frame 239756(7-B) / Time 1:06:59 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7597397176
Sequence Frame 240260(0-B) / Time 1:07:07 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7613196884
Sequence Frame 241715(7-P) / Time 1:07:32 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7658606780
Sequence Frame 241788(13-B) / Time 1:07:33 :
VideoWarning: TemporalRef gap of 1. Timestamp gap of 0.016689 sec. ending at file offset 7660554549
VideoWarning: TemporalRef gap of 1003. Timestamp gap of 0.016678 sec. ending at file offset 7660700793
Sequence Frame 241839(2-I) / Time 1:07:34 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7662579784
Sequence Frame 244577(2-I) / Time 1:08:19 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7749377504
Sequence Frame 245787(22-P) / Time 1:08:40 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7787646972
Sequence Frame 246148(4-B) / Time 1:08:46 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7799035636
Sequence Frame 246538(10-B) / Time 1:08:52 :
VideoWarning: TemporalRef gap of 1. Timestamp gap of 0.016689 sec. ending at file offset 7810549630
VideoWarning: Timestamp gap of 0.016667 sec. ending at file offset 7810730997
Sequence Frame 247122(1-I) / Time 1:09:02 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7829559692
Sequence Frame 247853(5-P) / Time 1:09:14 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7852755132
Sequence Frame 248112(2-I) / Time 1:09:18 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7860889704
Sequence Frame 248645(8-P) / Time 1:09:27 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7877964616
Sequence Frame 249349(1-B) / Time 1:09:39 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7900196180
Sequence Frame 273465(28-B) / Time 1:16:21 :
Info: End of MPEG2 sequence
Sequence Summary:
File Size Processed: 8.06 GB, Play Time: 01h:16m:21s
1280 x 720, 59.94 fps, 20.00 Mbps (14.21 Mbps Average).
Average Video Quality: 29.05 KB/Frame, 0.26 Bits/Pixel.
AC3 Audio: 3/2 Channels (L, C, R, SL, SR) + LFE, 48.0 kHz, 448 kbps.
Dialog Normalization: -24.0 dB, Center Mix Level: -3.0 dB, Surround Mix Level: -3.0 dB
0 of 273465 video frames found with errors.
12 of 143162 audio frames found with errors.
0 corrupted video bytes in file.
0.066722 seconds of video timestamp gaps.
0.224000 seconds of audio timestamp gaps.
Sequence Frame 16(14-B) / Time 1:16:22 :
Info: End of MPEG2 sequence
Sequence Summary:
File Size Processed: 8.06 GB, Play Time: 01h:16m:21s
1280 x 720, 59.94 fps (0.00 fps Telecine), 20.00 Mbps (14.21 Mbps Average).
Average Video Quality: 496622.04 KB/Frame, 4414.42 Bits/Pixel.
AC3 Audio: 3/2 Channels (L, C, R, SL, SR) + LFE, 48.0 kHz, 448 kbps.
Dialog Normalization: -24.0 dB, Center Mix Level: -3.0 dB, Surround Mix Level: -3.0 dB
0 of 16 video frames found with errors.
12 of 143182 audio frames found with errors.
0 corrupted video bytes in file.
0.066722 seconds of video timestamp gaps.
0.224000 seconds of audio timestamp gaps.
End of Log
Why do I need to do this? Why can't VideoReDo fix up the PCR's correctly and fix the corrupted MPEG2 packets? If an external program can detect the errors, you certainly should be able to prior to writing them. An extra switch to enable packet fix-up would be fine.
I've been using your tool for years now and with the addition of H.264 now, it is almost all I need. (Please add the ability to edit .WMV files).
David
MPEG2Repair: E:\Recorded TV\Edited\Season 9\11 - Final 24 - Day 1.ts
Sequence Frame 47560(8-P) / Time 0:13:33 :
AudioWarning: Timestamp gap of 0.064000 sec. ending at file offset 1538653872
Sequence Frame 73594(6-B) / Time 0:20:47 :
AudioWarning: Timestamp gap of 0.032000 sec. ending at file offset 2360524824
Sequence Frame 104612(11-P) / Time 0:29:24 :
AudioWarning: Timestamp gap of 0.032000 sec. ending at file offset 3339279896
Sequence Frame 141179(11-P) / Time 0:39:34 :
AudioWarning: Timestamp gap of 0.064000 sec. ending at file offset 4492632260
Sequence Frame 238831(9-B) / Time 1:06:44 :
AudioWarning: Timestamp gap of 0.032000 sec. ending at file offset 7568872312
Sequence Frame 239756(7-B) / Time 1:06:59 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7597397176
Sequence Frame 240260(0-B) / Time 1:07:07 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7613196884
Sequence Frame 241715(7-P) / Time 1:07:32 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7658606780
Sequence Frame 241788(13-B) / Time 1:07:33 :
VideoWarning: TemporalRef gap of 1. Timestamp gap of 0.016689 sec. ending at file offset 7660554549
VideoWarning: TemporalRef gap of 1003. Timestamp gap of 0.016678 sec. ending at file offset 7660700793
Sequence Frame 241839(2-I) / Time 1:07:34 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7662579784
Sequence Frame 244577(2-I) / Time 1:08:19 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7749377504
Sequence Frame 245787(22-P) / Time 1:08:40 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7787646972
Sequence Frame 246148(4-B) / Time 1:08:46 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7799035636
Sequence Frame 246538(10-B) / Time 1:08:52 :
VideoWarning: TemporalRef gap of 1. Timestamp gap of 0.016689 sec. ending at file offset 7810549630
VideoWarning: Timestamp gap of 0.016667 sec. ending at file offset 7810730997
Sequence Frame 247122(1-I) / Time 1:09:02 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7829559692
Sequence Frame 247853(5-P) / Time 1:09:14 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7852755132
Sequence Frame 248112(2-I) / Time 1:09:18 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7860889704
Sequence Frame 248645(8-P) / Time 1:09:27 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7877964616
Sequence Frame 249349(1-B) / Time 1:09:39 :
AudioError: Corrupted AC3 frame of 1790 payload bytes at file offset 7900196180
Sequence Frame 273465(28-B) / Time 1:16:21 :
Info: End of MPEG2 sequence
Sequence Summary:
File Size Processed: 8.06 GB, Play Time: 01h:16m:21s
1280 x 720, 59.94 fps, 20.00 Mbps (14.21 Mbps Average).
Average Video Quality: 29.05 KB/Frame, 0.26 Bits/Pixel.
AC3 Audio: 3/2 Channels (L, C, R, SL, SR) + LFE, 48.0 kHz, 448 kbps.
Dialog Normalization: -24.0 dB, Center Mix Level: -3.0 dB, Surround Mix Level: -3.0 dB
0 of 273465 video frames found with errors.
12 of 143162 audio frames found with errors.
0 corrupted video bytes in file.
0.066722 seconds of video timestamp gaps.
0.224000 seconds of audio timestamp gaps.
Sequence Frame 16(14-B) / Time 1:16:22 :
Info: End of MPEG2 sequence
Sequence Summary:
File Size Processed: 8.06 GB, Play Time: 01h:16m:21s
1280 x 720, 59.94 fps (0.00 fps Telecine), 20.00 Mbps (14.21 Mbps Average).
Average Video Quality: 496622.04 KB/Frame, 4414.42 Bits/Pixel.
AC3 Audio: 3/2 Channels (L, C, R, SL, SR) + LFE, 48.0 kHz, 448 kbps.
Dialog Normalization: -24.0 dB, Center Mix Level: -3.0 dB, Surround Mix Level: -3.0 dB
0 of 16 video frames found with errors.
12 of 143182 audio frames found with errors.
0 corrupted video bytes in file.
0.066722 seconds of video timestamp gaps.
0.224000 seconds of audio timestamp gaps.
End of Log
Why do I need to do this? Why can't VideoReDo fix up the PCR's correctly and fix the corrupted MPEG2 packets? If an external program can detect the errors, you certainly should be able to prior to writing them. An extra switch to enable packet fix-up would be fine.
I've been using your tool for years now and with the addition of H.264 now, it is almost all I need. (Please add the ability to edit .WMV files).
David