I have a rip of an old movie and it's almost unwatchable because every third frame is duplicated (1-2-3-3, 4-5-6-6, 7-8-9-9 etc.). To make things more complicated, it's inconsistent and only affects SOME parts of the video.
Here's a sample: https://pixeldrain.com/u/5xz1qMrk
+ Reply to Thread
Results 1 to 6 of 6
-
-
You could:
a. use SelectEvery in Avisynth or Vapoursynth if the pattern is fixed.
b. you could use TDecimate or sRestore if the pattern isn't fixed
The downside to these approaches is that, for your 24000/1001 source, you end up with a 18000/1001 output fps.
c. interpolate the duplicate frames (i.e. using FillDrops)
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini -
-
I'm not an expert but here is what you can do with avisynth :
#1 opening the video file with FFMpegSource2 (this should delete the doubles)
#2 regarding the number of frames per second I would try a frame interpolation filter like interframe to match 24 fps if the source is film, or 25 fps if the source is Pal, 23.976 or 29.90 fps if the source is NTSC.
I fear this may cause audio sync issues but not sure.
Best regards -
The first of the duplicates is a substitute for missing frame -- a duplicate of the next frame was used instead of the missing frame. Simply removing one of the duplicates will give jerky motion as there's still a missing frame. Using a motion interpolation frame rate doubling you can restore the missing frames. Something like this:
Code:LWLibavVideoSource("DoubleFrames.mp4") Trim(1,0) # just to make the starting point a little easier InterFrame(FrameDouble=true, cores=2) # double the frame rate by adding a motion interpolated frame between each frame SelectEvery(8, 0,2,4,5) # pick out the ones we want # output is 23.976 fps with the dupes removed and the missing frames "restored"
Attached is the above clip using RIFE instead of InterFrame.
Similar Threads
-
Is there anyway to fix this video? There is some ghosting / double frames
By stivan21 in forum RestorationReplies: 0Last Post: 18th Sep 2023, 23:33 -
HD Video likely improperly encoded. Lots of combing effects...
By Lathe in forum Video ConversionReplies: 2Last Post: 6th May 2023, 16:35 -
Avisynth+ and grabbing x frames every y frames? I'd like to sample a clip
By Msuix in forum EditingReplies: 2Last Post: 11th May 2021, 15:41 -
Wrong framerate/double frames on Premiere after .ts --->.mp4 remux.
By Glass in forum Newbie / General discussionsReplies: 6Last Post: 23rd Feb 2021, 15:25 -
lip syncing issues with lots of different video help
By gsxturbo11 in forum Newbie / General discussionsReplies: 7Last Post: 29th Mar 2020, 14:06