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.

 

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

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th February 2019, 01:25   #1  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 579
We need better versions of deleteframe and duplicateframe

Let's assume that you need to duplicate the 294th frame out of every 1001 frames, in a video that is long enough that simply chaining a whole bunch of individual duplicateframe() commands together is impractical.

Or, let's say that you need to delete the 8th, 576th, and 902nd frames out of every 1001 frames, in a video that is long enough that simply chaining a whole bunch of individual deleteframe() commands together is impractical.

Selectevery() is not suitable for either task.
__________________
If I ask "How do I do X?" or "what happens if I do X?", and X is a very bad thing that no one would ever normally do, assume that I already know this, and that I have Katie reasons for asking anyway.
Katie Boundary is offline   Reply With Quote
Old 11th February 2019, 02:44   #2  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 6,286
Maybe have a look at StickBoy stuff:- http://www.avisynth.nl/users/stickboy/
I think he has a DeleteEvery() type thing, maybe of some use, dont know.

EDIT: He has a selection of plugs to investigate.
__________________
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; 11th February 2019 at 12:05.
StainlessS is offline   Reply With Quote
Old 11th February 2019, 02:45   #3  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,649
Quote:
Originally Posted by Katie Boundary View Post
Let's assume that you need to duplicate the 294th frame out of every 1001 frames, in a video that is long enough that simply chaining a whole bunch of individual duplicateframe() commands together is impractical.

Or, let's say that you need to delete the 8th, 576th, and 902nd frames out of every 1001 frames, in a video that is long enough that simply chaining a whole bunch of individual deleteframe() commands together is impractical.

Selectevery() is not suitable for either task.
You can use stickboy's ApplyEvery

For the first one, SelectEvery with InterleaveEvery . For the 2nd one DeleteEvery
poisondeathray is offline   Reply With Quote
Old 11th February 2019, 10:54   #4  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 1,607
Quote:
We need
I think you meant to say "I would like". A "please" wouldn't have gone amiss either.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is online now   Reply With Quote
Old Yesterday, 03:37   #5  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 579
Thanks for the suggestion, though I find the lack of documentation disturbing.
__________________
If I ask "How do I do X?" or "what happens if I do X?", and X is a very bad thing that no one would ever normally do, assume that I already know this, and that I have Katie reasons for asking anyway.
Katie Boundary is offline   Reply With Quote
Old Yesterday, 04:20   #6  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,649
Quote:
Originally Posted by Katie Boundary View Post
Thanks for the suggestion, though I find the lack of documentation disturbing.
Did you look at the html file in the zip ?

The documentation has description, syntax, usage examples.
poisondeathray is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 17:38.


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