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?
+ Reply to Thread
Results 1 to 8 of 8
-
-
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 -
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 -
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. -
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." -
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()
Code:Avisource("clip.avi") SelectEven() ConvertFPS(25)
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)
Similar Threads
-
Fixing / Repairing a MJPG AVI video
By DBennett in forum RestorationReplies: 6Last Post: 19th Dec 2010, 07:24 -
Reparing or fixing AVI files
By 1234567 in forum EditingReplies: 26Last Post: 16th Feb 2009, 17:53 -
Fixing AVI Audio - modular distortion?
By 00Billy in forum AudioReplies: 1Last Post: 3rd Nov 2008, 09:27 -
Playing/Fixing a Damaged AVI Video?
By Gildor57 in forum Software PlayingReplies: 5Last Post: 23rd Oct 2007, 20:58 -
Fixing muffled sound on .avi file
By kman0199 in forum AudioReplies: 1Last Post: 7th Jun 2007, 00:40