Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Display Modes
Old 8th June 2021, 12:16   #1  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
What options for removing frames in avisynth?

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.
__________________
Automatic Colorization

Last edited by color; 8th June 2021 at 12:49.
color is offline   Reply With Quote
Old 8th June 2021, 12:54   #2  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,837
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.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 8th June 2021, 12:59   #3  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,417
what did you try with SelectEvery ?
Did you try this
Code:
#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]
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 8th June 2021, 13:02   #4  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
Quote:
Originally Posted by Boulder View Post
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..
__________________
Automatic Colorization
color is offline   Reply With Quote
Old 8th June 2021, 13:09   #5  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
Quote:
Originally Posted by StainlessS View Post
what did you try with SelectEvery ?
Did you try this
Code:
#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?
__________________
Automatic Colorization
color is offline   Reply With Quote
Old 8th June 2021, 13:11   #6  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,837
For blends, you can use SRestore to get the original frames.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 8th June 2021, 13:24   #7  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
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/wikiped...tive_1910.webm
__________________
Automatic Colorization

Last edited by color; 8th June 2021 at 13:58.
color is offline   Reply With Quote
Old 8th June 2021, 13:30   #8  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
Quote:
Originally Posted by Boulder View Post
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."
__________________
Automatic Colorization

Last edited by color; 8th June 2021 at 13:34.
color is offline   Reply With Quote
Old 8th June 2021, 13:36   #9  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,417
"There is no function called 'nonyuy2clipin'"
Quote:
Originally Posted by Groucho2004 View Post
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-St...2.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]
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 8th June 2021 at 13:44.
StainlessS is offline   Reply With Quote
Old 8th June 2021, 13:48   #10  |  Link
color
Registered User
 
color's Avatar
 
Join Date: May 2016
Posts: 235
Quote:
Originally Posted by StainlessS View Post
"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-St...2.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.
__________________
Automatic Colorization

Last edited by color; 8th June 2021 at 13:51.
color is offline   Reply With Quote
Reply

Tags
remove frames

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:03.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.