PDA

View Full Version : Save to .ts always requires running through MPEG2Repair, why?



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

DanR
February 21st, 2010, 05:10 PM
We don't use MPEG2Repair here. We check our TS file with a professional analyzer. So, if you want to upload a small clip that gives errors in MPEG2Repair we can check it out here.

Pleas send an email to support after you upload.

Floobydust
February 22nd, 2010, 03:59 PM
...with a professional analyzer.

I just have to laugh.:D I looked up MPEG2Repair and it is 3 years old last week--a little out of date. I do not think that it would qualify as a good tool today.

DavidB are you seeing any playback issues that would warrant to this MPEG2Repair? Because I have not seen any. I am still chuckling.:D

Mike

DavidB
February 22nd, 2010, 04:27 PM
Why does the age of a utility matter? MPEG2 is even older and is a standard. Streams should conform to the standard. MPEG2Repair still runs fine and corrects a lots of errors. I have seen these errors cause transcoders to fail horribly. I'm archiving these files and want them as "clean" as possible. Just because you can't "see" a problem doesn't mean one doesn't exist. I'm recording them off a cable feed and I know they overcompress them so there are lots of artifacts which need to be cleaned up. I wish I could record them OTA.

DanR
February 22nd, 2010, 06:10 PM
I know they overcompress them so there are lots of artifacts which need to be cleaned upMPEG2Repair can't clean up artifacts from over compression.

Are you going to upload something for us to look at?

DavidB
February 22nd, 2010, 07:53 PM
I agree, but it can clean up sloppy muxing.

Anyway, I did upload the file to DavidB/Problems.ts and sent support an E-mail several hours ago

phd
March 24th, 2010, 08:38 AM
We did not receive an email regarding this issue.

Would you like to send another?

DavidB
March 24th, 2010, 10:58 AM
The file is still there in DavidB/Problems.ts in your FTP upload directory. I've found that what I have to do is open the .dvr-ms file, edit out the commercials, save to a .ts file, reload the .ts file and then do a QuickStream Fix. That will clean up everything but corrupt AC3 packets.

phd
March 24th, 2010, 11:49 AM
Please send an email to support regarding this issue.
Support @ VideoReDo.com

We use the email system to log customer issues.

Tardis
March 24th, 2010, 06:21 PM
...........