|
Back to table of contents Virtual Dub 1.5X has the ability to mask bad frames automatically, so you would only need to save out another copy of the AVI using Video/Audio > Direct stream copy. Vdub 1.5X when told to "Scan Video Stream for errors" would automatically mask the bad frames and the saved copy would now have the bad frames replaced not deleted. This gives a problem if the audio used has VBR (Variable Bitrate) a warning would be given as soon as you loaded the AVI, and so Vdub MP3 would be used instead.
Tools When you delete bad frames, both the audio and video of that section is deleted. During playback you may hear a jump in the speech, and may even notice a flicker from one frame to the next where the bad frames were removed. When you "Mask" bad frames, they are replaced with the last good complete previous images, but the audio track that goes with those bad frames remains the same. Now if that audio is also damaged, then it may be better just to delete the bad frames, as shown here. If you received a VBR warning, you can convert the sound to PCM (Uncompressed) then you can reload the AVI to use the automatic masking feature once more. Vdub 1.5X Your newly saved AVI now has uncompressed audio, which could later be converted back to MP3, but for now, lets just replace any bad frames. If you got no VBR warning, or you have now uncompressed the audio as above, you can now use Vdub 1.5X to scan for bad frames. Vdub 1.5X This would now save the AVI, but would automatically mask the bad frames (Not delete them) so your new AVI's audio may play without problems. During playback, if there was a section where there were a lot of bad frames, the audio would continue!, but the video may seam to freeze, as at that section the masked frames were replaced with previous frames. If you intend keeping the AVI, and its size is now large because the audio is now uncompressed, you can convert the audio back to MP3 Vdub 1.5X Your New saved AVI now has the bad frames masked with previous good frames, and now has MP3 audio, which will bring the size back down to somewhere near the original size. You could also do this using Vdub MP3 to get the list of bad frames, then you could switch back to the normal Vdub 1.5X and mark those frames to be "Masked" Using this method you would not need to uncompress the audio, as the save would be done using streaming while the audio has not been deleted, so the problem of VBR should not have any effect. Both of these methods, may also help, if you intend adding sub titles, where removing bad frames would throw them out. (Note this is not the same method used in the other bad frame guide)
When the scan has finished, it will either report that no bad frames have been found, or that they have been found and logged. For those AVI's with bad frames, you can continue by quitting Vdub MP3 and loading the normal Vdub for masking. 1, Quit Vdub MP3, and load the normal Vdub 1.5X When this is done, the slide bar will jump to that frame number, at the same time you may see a report that the frame is bad.
Now you can mark this as the end by clicking the black arrow at the bottom right
Go to the log file again and highlight the lowest number of that block "3345667" and copy this number, now switch to Vdub and select from the menu Edit > Go to and paste that number into the box. When this is done, the slide bar will jump to that frame number, at the same time you may see a report that the frame is bad. Now you can
mark this as the start by clicking the black arrow at the bottom
left. KeyFrames You have now marked the start and end of the highest number blocks 3345667
to 3345670 you may see a small blue line at the progress bar. If there are
only a few frames it may be hidden. Now that this section is marked select Edit > Mask Selected Frames Those frames will disappear
from sight, now do the same thing again with the next group of numbers (If
you have any) When you have masked all the bad frames, save out another copy using streaming. Video > Direct stream copy Because this method is not deleting the audio, or deleting the video, the VBR problem should give no problems. If it does use the other method described |
|