|
|
|
Back to table of contents Bad frames can be the result of capturing your home movies, via a capture card, and dropping frames. When you have made your home movie, and share it with others, bad frames can also be added when that person downloads your movie. There are several methods that can be used to deal with bad frames, the regular Virtual dub can automatically scan and mask them (See other Guide) , however when you load an AVI and you get a VBR warning (Variable Bitrate), you should use Vdub MP3 instead. Tools Lip Sync Keyframes In the picture above, the top row represents an uncompressed AVI showing frames 1-5. As you can see each frame is a complete frame. However the next row shows the compressed Mpeg AVI with a keyframe at 1 and 5. As you can see the keyframes are showing a complete picture, but frames 2,3,4 (delta frames) are only showing what's different from the previous frame. A keyframe is added every so many frames/seconds to keep track of the position of the movie. It also provides a good picture on which the delta frames can be based. Mpeg 1 encoding methods call keyframes Intra-frames (I-Frames). The half-frames for mpeg 1 come in two kinds, B-frames or the backward frames and P-frames the predicted frames, and are designed to only store the difference between the frames in front and the frames behind the keyframe. Keyframes
An AVI compressed with the popular codecs, may have keyframe spacing variation, for example DivX 3.11 alpha's default keyframe spacing is every 10 while DivX 5 is every 300. When AVI's are made with keyframes spaced wide apart, and you try to fast forward, you may notice players struggling to lock to Keyframes. Bad Frames
When you download a home made movie, it can get corrupt, the original AVI may be perfect, but because of downloading errors, you could end up with a lot of bad frames. If one of the delta frames is corrupt you need to jump to the nearest keyframe before marking it for deletion. Removing Bad Frames with Vdub MP3 Vdub MP3 will create a log file of bad frames it has found, this log file can be viewed in Windows Notepad. Those bad frames listed can then be removed easily from the AVI, starting at the highest blocks first. If you started deleting at the lowest blocks first, the frame numbers would change.
When the scan has finished, it will either report that no bad frames have been found, or that they have been found and logged.
Log File A few tips might help you with this task
Bad Frame Report from VirtualDub-Mp3 Press enter to separate each block, makes it easier later... 3345667
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 before you mark
this you need to use the keyframe icon.
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 before you mark this you need
to use the keyframe icon. Marking the end at keyframes is much more important than marking the start at keyframes, however I think its best to mark both start and end. 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.
Do the same thing again with the next highest blocks (If you have more than one) in this example 12345 to 12350, and any more you may have.... When you have deleted all bad frames, you need to save out another copy using streaming Save Out A New Copy Video > Direct stream copy Saving a copy out using streaming, would be like
copying a file from drive C:\ to drive D:\ and in this case missing out
the bad frames.
|