VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    The video file that I'm trying to convert has had the even and odd frames switched. See my example below for a better understanding of it:

    Normal Video:
    0 1 2 3 4 5 6 7 8 9 10 11

    Corrupted Video Example #1:
    1 0 3 2 5 4 7 6 9 8 11 10

    Corrupted Video Example #2:
    0 2 1 4 3 6 5 8 7 10 9 12 11

    I'm not sure which way the video is. I would preferably like to change this with an avisynth script, but I'll use any method that anyone can provide. Thanks in Advance.
    Quote Quote  
  2. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Was it interlaced to begin with ? If so, why not load it in, and then reverse the fields as you write it out ? Most editors will allow you to specify the field order when writing the video to disk.
    Quote Quote  
  3. Member
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    No, the video was not interlaced and I have tried to swap the fields but it never renders a good video. I've also tried the field bo and a motion blur. The motion blur renders a better video than the original, but still not good. The problem is in the frame order. I've went through it frame by frame and discovered this.
    Quote Quote  
  4. Member erratic's Avatar
    Join Date
    Oct 2003
    Location
    Belgium
    Search Comp PM
    Experiment with the SelectEvery() command. As long as there's a recurring pattern, SelectEvery can rearrange the frames in the correct order.

    For example: SelectEvery(2,1,0) swaps each pair of frames and should fix example #1.

    Trim(1,0).SelectEvery(2,1,0) would remove the first frame and swap each remaining pair of frames, which should fix example #2 but you would lose the first frame. You can avoid losing the first frame if it's important, but first you should familiarize yourself with the SelectEvery command.

    A random example: SelectEvery(4,2,1,0,3) rearranges every four frames (0,1,2,3) like this: 2,1,0,3.
    Quote Quote  
  5. Member
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Awesome! Thanks man, that worked like a dream. I can finally watch this video the way it's supposed to be seen. Once again, Thank you so very much for that. You have no idea how grateful i am for your help.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!