VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Hi. I know that some videos I've edited in the past have had a repeated frame but, since I don't notice it in playback, I've ignored it in my edit. Out of curiosity, I'm trying it now and thought I'd use the SelectEvery command. To begin, I wanted to be sure that the repeat in my video was every fifth frame so I went through a few seconds of it manually:
    Code:
    trim(77800,77803)++trim(77805,77808)++trim(77810,77813)++trim(77815,77818)++trim(77820,77823)++trim(77825,77827)++trim(77829,77832)++
    trim(77834,77837)++trim(77839,77842)++trim(77844,77847)++trim(77849,77852)++trim(77854,77857)++trim(77859,77862)++trim(77864,77867)++trim(77869,77872)++trim(77874,77877)++trim(77879,77882)++trim(77884,77887)++trim(77889,77892)++trim(77894,77897)++trim(77899,77902)++trim(77904,77907)++
    trim(77909,77912)++trim(77914,77917)++trim(77919,77922)++trim(77924,77927)++trim(77929,77932)++trim(77934,77937)++trim(77939,77942)++trim(77944,77947)++trim(77949,77952)++trim(77954,77957)++trim(77959,77962)++trim(77964,77967)++trim(77969,77972)++trim(77974,77977)
    At first glance, every fifth frame is a repeat but note 'trim(77825,77827' - the repeat comes in a frame early. Can this be explained or is it likely just a quirk of this video? Obviously, because of this weird break in the sequence (and any others there might be) using SelectEvery wouldn't work properly. Thank you.
    Quote Quote  
  2. Pattern breaks are often glitches from editing.
    The duplicates are probably from a film (24fps) to NTSC (30fps) conversion.

    For removing the duplicates try
    Code:
    TDecimate()
    or
    Code:
    TDecimate(cycle=5,cycleR=1)
    Quote Quote  
  3. Thanks, Sharc. I ran the simple 'TDecimate()' on my wee edit above and the result was amazing. It included frames 77827 and 77828 (which are duplicates at the sequence break) but every frame it dropped was a duplicate. Excellent stuff. Can you (or anyone) explain how TDecimate KNOWS which frames to drop?
    Quote Quote  
  4. See here, Basic Parameters.
    http://avisynth.nl/index.php/TIVTC/TDecimate

    Basically it drops the "M most similar frames" out of a group of "N".
    Quote Quote  
  5. Thanks again. Minor, supplementary question now: I see that I have to add '.TDecimate()' to every command i.e.
    Code:
    trim(73861,78317).TDecimate()++trim(76232,78317).TDecimate()
    Is there a better command? I thought this would work but it doesn't:
    Code:
    TDecimate()
    trim(73861,78317)++trim(76232,78317)
    Cheers.

    IGNORE ME: This works:
    Code:
    trim(73861,78317)++trim(76232,78317)
    TDecimate()
    Last edited by pooksahib; 12th Mar 2023 at 09:18.
    Quote Quote  



Similar Threads

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