View Full Version : What options for removing frames in avisynth?
color
8th June 2021, 12:16
What are my options for removing frames? I realized I got a video that I want to remove all this frames.
"1, 3, 5, 7, 9, 11, 12, 14, 16, 18, 20, 22, 24, 26, 27, 29"
and it then repeat so its 31, 33, 35, 37...that I want to remove.
I did try SelectEvery() and TDecimate() But I cant manage to get it to work. And btw, 1, is not the first frame, the first frame is called 0, at leat in avspmod. I think I use SelectEver wrong. I never got it to work as it should.
Boulder
8th June 2021, 12:54
Firstly, the question is "Why do you need to remove the frames?" :)
Secondly, if the pattern is constant like that from frame 30, you could use multiple Trim statements to select ones to keep between 0-29 and then Trim(30,0).SelectEven() for the rest.
StainlessS
8th June 2021, 12:59
what did you try with SelectEvery ?
Did you try this
#Colorbars
ShowFrameNumber # so you can see frames selected
SelectEvery(30, 0,2,4,6,8,10,13,15,17,19,21,23,25,28)
You say the ones you wanna keep, not delete. [repeats every 30 frames]
color
8th June 2021, 13:02
Firstly, the question is "Why do you need to remove the frames?" :)
Secondly, if the pattern is constant like that from frame 30, you could use multiple Trim statements to select ones to keep between 0-29 and then Trim(30,0).SelectEven() for the rest.
There is blended frames so I do need to delete them. They look awefull..
color
8th June 2021, 13:09
what did you try with SelectEvery ?
Did you try this
#Colorbars
ShowFrameNumber # so you can see frames selected
SelectEvery(30, 0,2,4,6,8,10,13,15,17,19,21,23,25,28)
You say the ones you wanna keep, not delete. [repeats every 30 frames]
That looks better, seems like I have missed something in the counting off the frames. I have to count again. Thank you. The 30...is that for framerate?
Boulder
8th June 2021, 13:11
For blends, you can use SRestore to get the original frames.
color
8th June 2021, 13:24
It was a bit more, after 3000 its getting worse.
I found that 0-1100 this looks good:
SelectEvery(100, 0,2,4,6,8,10,13,15,17,19,21,23,25,28,30,32,34,36,38,40,43,45,47,49,51,53,55,58,60,62,64,66,68,71,73,75,77,79,81,83,86,87,89,91,95,97)
Here is the movie.
https://upload.wikimedia.org/wikipedia/commons/2/20/The_Fugitive_1910.webm
color
8th June 2021, 13:30
For blends, you can use SRestore to get the original frames.
I have never ever got SRestore to work at all, I always get "There is no function called 'nonyuy2clipin'". But I have installed everything that is required. I do also got AnimeIVTC where it supposed to be located.
Also getting "I don't know what 'AvsPlusVersionNumber' means."
StainlessS
8th June 2021, 13:36
"There is no function called 'nonyuy2clipin'"
It's a function in AnimeIVTC().
EDIT: Oops, you already said you got that. :(
AvsPlusVersionNumber, I'm guessin that is from Real.Finder an avsi file.
Zs_RF_Shared.avsi
here:- https://github.com/realfinder/AVS-Stuff/tree/master/avs%202.5%20and%20up
EDIT: You may also need Real.finder updates in same link as above, ie
AnimeIVTC.avsi
AnimeIVTC_helper.avsi
EDIT: Real.Finder stuff is in rapid development, and nearly everything requires Zs_RF_Shared.avsi. [which can also change frequently]
color
8th June 2021, 13:48
"There is no function called 'nonyuy2clipin'"
EDIT: Oops, you already said you got that. :(
AvsPlusVersionNumber, I'm guessin that is from Real.Finder an avsi file.
Zs_RF_Shared.avsi
here:- https://github.com/realfinder/AVS-Stuff/tree/master/avs%202.5%20and%20up
EDIT: You may also need Real.finder updates in same link as above, ie
AnimeIVTC.avsi
AnimeIVTC_helper.avsi
EDIT: Real.Finder stuff is in rapid development, and nearly everything requires Zs_RF_Shared.avsi. [which can also change frequently]
One step closer.
I did use "ConvertToYV12()"
But it gives me
"mt_makediff : unsupported colorspace. masktools only support planar YUV colorspaces (YV12, YV16, YV24)"
I will see if I can update masktools.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.