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
Register FAQ Calendar Today's Posts Search

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: 1,056
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.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
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: 10,980
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: 5,377
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: 2,496
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 offline   Reply With Quote
Old 15th February 2019, 03:37   #5  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Thanks for the suggestion, though I find the lack of documentation disturbing.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 15th February 2019, 04:20   #6  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,377
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
Old 18th February 2019, 14:59   #7  |  Link
ajp_anton
Registered User
 
ajp_anton's Avatar
 
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 805
Will SelectRangeEvery() not do what you want?
ajp_anton is offline   Reply With Quote
Old 18th February 2019, 21:49   #8  |  Link
Richard1485
Guest
 
Posts: n/a
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.
Try:

Code:
WhateverSource()
ApplyEvery(1001,"DuplicateFrame(293)")
As you know, AviSynth calls the first frame 0. Change 293 to 294 if that's what you want. As PDR mentioned, documentation is provided in the zip.
  Reply With Quote
Reply


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:59.


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