VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Member
    Join Date
    Aug 2006
    Location
    United States
    Search Comp PM
    I have an AVI where the frames appear to be suffled. In other words where the frames should go like this

    1, 2, 3, 4, 5, 6, 7

    they go like this
    1, 3, 2, 5, 4, 7, 6

    or possibly

    2, 1, 4, 3, 6, 5, 8, 7

    In other words each pair of frames is switched with the other in its position in the stream.

    The effect is a kind of jiggling of the picture when there is any motion.

    Does anyone know if there some Avisynth script that would correct this? Or some other solution?
    Quote Quote  
  2. nothing that would automatically correct that, unless there is a certain repeating order to it

    if you are using avisynth , you have to re-encode anyway, so you could manually re-arrange the frames (e.g. decompress to .bmp or .png, then use ImageSource() to reassemble)

    rule out a decoder/playback issue , sometimes b-frames can cause seek errors and decoder lag with some decoders and software. e.g. try other players like vlc, mpchc, kmplayer
    Quote Quote  
  3. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Post a short clip showing the problem, and a mediainfo tree view of the file.

    It almost sounds like an interlaced video being played back (or having been encoded) with the incorrect field order.
    Read my blog here.
    Quote Quote  
  4. Member
    Join Date
    Aug 2006
    Location
    United States
    Search Comp PM
    I have tried several players and all the same.

    Here is the media info tree

    General
    Complete name : G:\completed torrents\le vieux fusil dual\Le Vieux Fusil 1975 DVDRip Dual XViD-CG.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 1.07 GiB
    Duration : 1h 37mn
    Overall bit rate : 1 571 Kbps
    Writing application : VirtualDubMod 1.5.10.2 (build 2540/release)
    Writing library : VirtualDubMod build 2540/release

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format settings, BVOP : Yes
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Codec ID : DX50
    Codec ID/Hint : DivX 5
    Duration : 1h 37mn
    Bit rate : 1 300 Kbps
    Width : 720 pixels
    Height : 400 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 fps
    Resolution : 24 bits
    Colorimetry : 4:2:0
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.181
    Stream size : 905 MiB (83%)
    Writing library : DivX 6.8.5 (UTC 2009-08-20)

    Audio #1
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Format_Settings_Mode : Joint stereo / MS Stereo
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 1h 37mn
    Bit rate mode : Constant
    Bit rate : 128 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Resolution : 16 bits
    Stream size : 89.1 MiB (8%)
    Alignment : Aligned on interleaves
    Interleave, duration : 40 ms (1.00 video frame)
    Interleave, preload duration : 504 ms
    Writing library : LAME3.97
    Encoding settings : -m j -V 4 -q 2 -lowpass 17 -b 128

    Audio #2
    ID : 2
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Format_Settings_Mode : Joint stereo / MS Stereo
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 1h 37mn
    Bit rate mode : Constant
    Bit rate : 128 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Resolution : 16 bits
    Stream size : 89.1 MiB (8%)
    Alignment : Aligned on interleaves
    Interleave, duration : 40 ms (1.00 video frame)
    Interleave, preload duration : 504 ms
    Writing library : LAME3.97
    Encoding settings : -m j -V 4 -q 2 -lowpass 17 -b 128

    clip.avi
    Quote Quote  
  5. Member
    Join Date
    Aug 2006
    Location
    United States
    Search Comp PM
    sorry double post
    Quote Quote  
  6. Member
    Join Date
    Jan 2007
    Location
    Republic of Texas
    Search Comp PM
    At first, I thought it was a field mismatch, but it is not consistent in every scene. Whatever the case, this looks like a commercial movie (is that John Hurt I see?)...so buy the movie instead of downloading from pirate sites.

    Hmmm..."suffled"....interesting term.
    Quote Quote  
  7. Member
    Join Date
    Aug 2006
    Location
    United States
    Search Comp PM
    I actually did want to go that way but the film, "Le vieux fusil" is out of print. To my knowledge, John Hurt is not in the film. The only copy I can find on the used market is region 2 and it is being offered by a collector for $125.00.

    If it can't be figured out (and you are right, it isn't consistent) then I don't have to see it - after all, it is only a movie. I am kind of interested, however, as a technical problem. And, yes, as you correctly pointed out in a round about way, I did forget the h in "shuffled."
    Quote Quote  
  8. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Can't repair this with a simple script, the panning shots are smooth and in the correct order, but when it stops you get the misordered frames.

    You could spend a week dividing it up into sections and reordering frames...

    Or you can get a watchable video, at 12.5 fps, by discarding every second frame:
    Code:
    Avisource("clip.avi")
    SelectEven()
    Get back to 25 fps by faking the missing ones if you want:
    Code:
    Avisource("clip.avi")
    SelectEven()
    ConvertFPS(25)
    ConvertFPS just blurs to make the fake frames. You can do get better results using motion interpolation (you need MVTools), I got this to work, though I don't really understand all the parameters, so don't ask me to explain it:
    Code:
    Avisource("clip.avi")
    EnsureVBRMP3sync()
    SelectEven()
    
    #Double frame rate (12.5 back to 25) 
    global idx1 = 10
    global source=last
    source=changefps(source,source,true)
    
    idx1 = idx1 + 1
    backward_vec = source.MVAnalyse(blksize=16, isb = true, chroma=false, pel=1, searchparam=1, idx=idx1)
    forward_vec = source.MVAnalyse(blksize=16, isb = false, chroma=false, pel=1, searchparam=1, idx=idx1)
    source.MVFlowFps(backward_vec, forward_vec, num=2*FramerateNumerator(source), den=FramerateDenominator(source), mask=0, idx=idx1)
    Quote Quote  



Similar Threads

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