I have been having a ball editing HDV clips in Vegas Platinum but recently I tried to add a couple of clips to the timeline and found that Vegas would stall while "ingesting" the file, building peaks, requiring a shutdown of Vegas to recover. To be fair, the clips has discontinuities in them due to reviewing the footage in the camcorder and then rewinding the tape until it was 'close' to the end. And, sometimes close wasn't very good because I noticed that the time counter had restarted at zero again.
I used HDVsplit for capturing which, evidently, does not do any error correcting.
HDV files are MPEG-2 transport stream files and the first thing I tried was using the free editor Avidemux. Avidemux accepted the files and I was able to configure it to save as an MPEG-2 program stream file. That was fine but I thought there must be a better way to 'fix' the file and even find out what was wrong with it.
I found a utility (Ken, the utility king!) that does the job! It's called 'mpeg2repair'. Sounds appropriate, doesn't it? This utility not only fixes problem MPEG-2 files but writes a text log file with what it found and fixed. Recommended.
http://www.free-codecs.com/download/MPEG2Repair.htm
Here is my log for a sample:
MPEG2Repair: D:\Capture\Mt_Rainier.m2t
Sequence Frame 3257(1-B) / Time 0:01:48 :
VideoWarning: Discontinuity of (14+) packet(s). First packet ending at offset 367820308
Sequence Frame 3264(8-P) / Time 0:02:40 :
VideoWarning: Discontinuity of (10+) packet(s). First packet ending at offset 368689432
Sequence Frame 3273(13-B) / Time 0:02:40 :
VideoWarning: TemporalRef gap of 1021. Timestamp gap of 51.251201 sec. ending at file offset 368177168
Sequence Frame 5303(7-B) / Time 0:03:48 :
VideoWarning: Discontinuity of (9+) packet(s). First packet ending at offset 598800304
Sequence Frame 5311(6-B) / Time 0:04:33 :
VideoWarning: Discontinuity of (13+) packet(s). First packet ending at offset 599669428
Sequence Frame 5319(13-B) / Time 0:04:34 :
VideoWarning: TemporalRef gap of 1015. Timestamp gap of 45.345301 sec. ending at file offset 599051132
Sequence Frame 18741(10-B) / Time 0:12:01 :
Info: End of MPEG2 sequence
Sequence Summary:
File Size Processed: 1.97 GB, Play Time: 00h:12m:01s
1440 x 1080, 29.97 fps, 25.00 Mbps (21.66 Mbps Average).
Average Video Quality: 101.81 KB/Frame, 0.54 Bits/Pixel.
MPEG Audio.
0 of 18741 video frames found with errors.
0 of 0 audio frames found with errors.
0 corrupted video bytes in file.
96.596501 seconds of video timestamp gaps.
0.000000 seconds of audio timestamp gaps.
End of Log