jweathers7
31st December 2005, 09:33
I have been using Womble MPEG Wizard to re-edit Attack of the Clones to insert the deleted material back into the film. I have been fairly successful with the exception of one final detail.
Some of Womble's transitions have problems and I decided to instead do them by hand via VirtualDub, The GIMP Script-Fu, and AviSynth. Most of the Womble transitions are 60 frames in length (according to Womble). To produce such a transition by hand, I use Womble to grab the last 60 frames of the left clip and the first 60 frames of the right clip. Then, I export these clips as VOB files, and the problems begin.
When I use ReMPEG2 to analyse the clips, it tells me that I have a certain number of pictures and a different number of frames. This confused me as I thought that each frame was a picture. When I then decode the VOB file into an uncompressed AVI which I then convert into a sequence of images, the resulting number of images is invariably fewer than the source VOB's frame count as given by Womble. Then, when I create the transitions and encode the resulting AVI file, the new MPEG-2 file has the same number as or one less than the number of images I used to create it and thus when I replace the Womble transition with my own, the video no longer has the same number of frames and becomes out of sync with the audio that I have already produced with the version that uses Womble transitions.
I tried to get around this by exporting AVI files of the clips directly from Womble, and sure enough Womble produces AVIs that are composed of the appropriate number of images. However, oddly enough these AVIs appear to have suffered some sort of problem during decoding as the colors appear slightly darker than the originals which then causes a problem when I use them to create manual transitions as the end transitions stick out like a sore thumb in the final video because of the color shifts.
I have my suspicions that this is caused by cutting on frames other than I-frames, but I'm not certain how to insure that I cut on an I-frame and with the descrepancy between ReMPEG2's picture count and frame count, I'm not certain anymore that I truly grok the frame concept.
Some of Womble's transitions have problems and I decided to instead do them by hand via VirtualDub, The GIMP Script-Fu, and AviSynth. Most of the Womble transitions are 60 frames in length (according to Womble). To produce such a transition by hand, I use Womble to grab the last 60 frames of the left clip and the first 60 frames of the right clip. Then, I export these clips as VOB files, and the problems begin.
When I use ReMPEG2 to analyse the clips, it tells me that I have a certain number of pictures and a different number of frames. This confused me as I thought that each frame was a picture. When I then decode the VOB file into an uncompressed AVI which I then convert into a sequence of images, the resulting number of images is invariably fewer than the source VOB's frame count as given by Womble. Then, when I create the transitions and encode the resulting AVI file, the new MPEG-2 file has the same number as or one less than the number of images I used to create it and thus when I replace the Womble transition with my own, the video no longer has the same number of frames and becomes out of sync with the audio that I have already produced with the version that uses Womble transitions.
I tried to get around this by exporting AVI files of the clips directly from Womble, and sure enough Womble produces AVIs that are composed of the appropriate number of images. However, oddly enough these AVIs appear to have suffered some sort of problem during decoding as the colors appear slightly darker than the originals which then causes a problem when I use them to create manual transitions as the end transitions stick out like a sore thumb in the final video because of the color shifts.
I have my suspicions that this is caused by cutting on frames other than I-frames, but I'm not certain how to insure that I cut on an I-frame and with the descrepancy between ReMPEG2's picture count and frame count, I'm not certain anymore that I truly grok the frame concept.