VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Member
    Join Date
    Feb 2008
    Location
    Finland
    Search Comp PM
    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?
    Quote Quote  
  2. 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.
    Quote Quote  
  3. Or audio clicks and pops if you cut out the corresponing audio chunks.
    Quote Quote  
  4. Member
    Join Date
    Feb 2008
    Location
    Finland
    Search Comp PM
    I downloaded the Multidecimate filter and AviSynth but I can't figure out the script that I will need to get this to work. Can someone put here example script or something?
    Quote Quote  
  5. 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.
    Quote Quote  
  6. Member
    Join Date
    Feb 2008
    Location
    Finland
    Search Comp PM
    Thanks guys I got it all sorted out.
    By the way the audio isn't problem becouse I don't even need it.
    Quote Quote  



Similar Threads

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