I have a video which has a random duplicate frames here and there, sometimes there are 3-5 duplicates in a row.
Now is there any program which analyze the video, detects the duplicate frames and deletes them?
+ Reply to Thread
Results 1 to 6 of 6
-
-
Hi-
AviSynth's MultiDecimate filter can do part of what you want. It can analyze a file to find the duplicate frames. It won't automatically remove them, though. You'll have to tell it how they are to be removed and then reencode:
http://neuron2.net/multidecimate/multidecimate.html
TIVTC can do something similar. Be careful, though. Just removing them can lead to audio synch problems. -
You've never used AviSynth before? Then I'd say, "forget it". Walk before you run, and this isn't simple AviSynth stuff. But, if you insist:
LoadPlugin("C:\Path\To\DGDecode.dll")
LoadPlugin("C:\Path\To\MultiDecimate.dll")
MPEG2Source("C:\Path\To\Video.d2v")
ConvertToYUY2()
MultiDecimate(Pass=1)
You didn't say what kind of a video you had. This script is for some sort of an MPEG, with a D2V file made using DGIndex. If it's an AVI, then use AviSource instead (and I'd recommend disabling any audio). Open the script in VDub(Mod). Turn off the video display for fastest creation of the M File. Push the play button. With a basic script like that and no filters, I was getting about 275fps. With the video display on I got only about 25-30fps. Once the mfile.txt is created, you can open it to examine the metrics which clearly show the duplicate frames. If you get that far, then you have to set up the second pass for the duplicate frame removal, which will involve reencoding to some codec (XviD, some lossless AVI like Lagarith, MPEG-2 using an MPEG-2 encoder, etc.) If you have problems getting the second pass to run, come back to this thread for more advice.
Once you get the mfile.txt, if I were you I'd examine it very carefully to look for some kind of a repeating pattern you can use. That will help maintain audio synch when you add back the audio later on. -
Thanks guys I got it all sorted out.
By the way the audio isn't problem becouse I don't even need it.
Similar Threads
-
Decimate odd patterned duplicate frames in video
By raphaelt in forum Video ConversionReplies: 2Last Post: 2nd Feb 2011, 22:57 -
Remove Duplicate Frames
By robindean in forum Video ConversionReplies: 26Last Post: 11th Mar 2010, 15:30 -
Frame blended and duplicate frames
By loekverhees in forum Newbie / General discussionsReplies: 7Last Post: 2nd Jan 2010, 09:35 -
Can I decimate duplicate frames to get 23.976
By MagicSparky in forum Video ConversionReplies: 5Last Post: 21st Feb 2008, 15:26