Trying to remove duplicate frames in a pattern >>
My Forum

My Forum



SearchSearch   Users   Registration   Entrance
Today: 23.08.2025 - 22:26:33
Pages:  1  

Trying to remove duplicate frames in a pattern

Advertising


AuthorMessage

racecar

user




Statistics:
Messages: 646
Registration: 10.13.2001

I'm trying to convert film that was encoded at 25fps back to its original framerate as it's loaded with duplicate frames. It's progressive, not interlaced. I've looked at the footage and it has a consistent pattern: ABBABBB A = every 22nd frame is duplicated (making the 23rd frame a copy) B = every 24th frame is duplicated (making the 25th frame a copy) I want to remove every duplicate frame based on that pattern, but I have no idea how to go about this. Does anyone know what command I should use for this with ffmpeg or avisynth?

---------------------
Message # 1 12.04.20 - 22:32:35
RE: Trying to remove duplicate frames in a pattern

HRO923

user




Statistics:
Messages: 14
Registration: 04.03.2002

So are you saying that, Each A is 23 frames Each B is 25 frames so total cycle len = 2A + 5B = 2*23 + 5*25 = 171 and remove count = 7 ?

---------------------
Message # 2 12.04.20 - 22:43:07
RE: Trying to remove duplicate frames in a pattern

Ben Carufel

user




Statistics:
Messages: 12,268
Registration: 06.01.2002

Maybe something like this (Assuming I interpreted your description OK) MakeDelDupPattern.avs Code:

---------------------
Message # 3 12.04.20 - 22:47:18
RE: Trying to remove duplicate frames in a pattern

///Dom

user




Statistics:
Messages: 951
Registration: 05.01.2003

StainlessS: I feel stupid writing this, but I get the impression you solved my problem entirely, but I'm too clueless to know how to implement it (in my defense, I did post in the newbies section). How do I plugin the code you provided to point at the video file? I assumed I saved it as .avs, but was lost after that. I was able to load the ApplyEvery plugin successfully in a script for what it's worth. If there's a guide on this, by all means link me to it, I tried doing a search for that also, but was coming up dry for how to implement custom code like this.

---------------------
Message # 4 12.04.20 - 22:54:09
RE: Trying to remove duplicate frames in a pattern

Jim M3

user




Statistics:
Messages: 3,197
Registration: 02.28.2001

There is no guide, I wrote this for your problem. Use like so, [req Avs+, If you're not using AVS+, say so, just needs wrap the Entire MakeDelDupPattern Function in GSCript(""" ... """) ] chilledinsanity.avs Code:

---------------------
Message # 5 12.04.20 - 22:59:16
RE: Trying to remove duplicate frames in a pattern

Hellrot_VA

user




Statistics:
Messages: 156
Registration: 12.11.2001

StainlessS: Thanks, the "DeleteEvery" command made this vastly easier for me to understand (and worked, sort of). Unfortunately it looks like the pattern is even more complex. While that command reduced the VAST number of the repeats, it still left some in, I suspect because when trying to convert back to 23.976, any variance other than knowing exactly which frames to decimate means duplicates invariable occur. So while that pattern I posted accounts for the vast majority of frames, it won't account for duplicates than show up every couple hundred frames or so because of rounding down to 3 decimal points. In other words: every once in a great while it will be ABBABB or ABBBABBB as opposed to ABBABBB every single time. I haven't been able to determine what the (much longer) pattern is for that. I may have to accept defeat on this one.

---------------------
Message # 6 12.04.20 - 23:03:31
RE: Trying to remove duplicate frames in a pattern

AZ_Matt

user




Statistics:
Messages: 104
Registration: 06.11.2001

I understood what you wrote differently than the others - 2 duplicate frames in every 25-frame cycle. You should do what Sharc suggested and post a sample.

---------------------
Message # 7 12.04.20 - 23:07:54
RE: Trying to remove duplicate frames in a pattern

cal_guy19

user




Statistics:
Messages: 843
Registration: 09.26.2002

Not to worry, maybe the function will come in useful for something else one day. I'll leave it to Sharc and Manono when you post your sample, they should sort you out. EDIT: Mediafire.com file host is a popular choice.

---------------------
Message # 8 12.04.20 - 23:15:38
RE: Trying to remove duplicate frames in a pattern
Is XviD Dead? : Previous topicNext topic: Monitoring/Recording issue
Pages:  1  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants