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 19th January 2018, 12:48   #3881  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,283
Lots of filters added to clip B eliminate the phantom frames:
Code:
A=Colorbars.KillAudio.Trim(0,-10).ShowFrameNumber   # 10 frames
#[[
#B=A.Trim(0, -1) ## broken
#B=A.Trim(0, -1).Info ## fixed
#B=A.Trim(0, -1).Invert.Invert ## fixed
#B=A.Trim(0, -1).TurnLeft.TurnRight ## fixed
#B=A.Trim(0, -1).AssumeFrameBased ## broken
#B=A.Trim(0, -1).AssumeFPS(A) ## broken
B=A.Trim(0, -1).ChangeFPS(A) ## fixed
#]]
StackHorizontal(A,B)
raffriff42 is offline   Reply With Quote
Old 19th January 2018, 14:13   #3882  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,280
Quote:
Originally Posted by davidhorman View Post
That sounds like a fantastic idea. I also propose that davidhorman_trim(100,200) would return frames 100-199 (100 frames)
Sounds great, could give it a monika of DavidHorman_VirtualDub_Compatible_Trim().
__________________
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; 19th January 2018 at 14:15.
StainlessS is offline   Reply With Quote
Old 19th January 2018, 19:40   #3883  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,009
@raffriff42:

So, which of them is the most performant "NOP filter" preserving the specified behaviour? ... J/K
__________________

German doom9 / Gleitz board
MediaFire shares: x265 | VPx | AOM | Xvid

Rémoulade is spoiled
LigH is offline   Reply With Quote
Old 19th January 2018, 20:05   #3884  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,280
I would think that the raw elegance of current AVS+ trim is the most performant NOP, really need more tests from those willing to partisipate.

EDIT: Above, guess I misinterpreted Ligh's post, 8 or 9 pints of bitter seem to have that effect on me.
__________________
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; Yesterday at 16:01.
StainlessS is offline   Reply With Quote
Old 19th January 2018, 22:37   #3885  |  Link
davidhorman
I'm the Doctor
 
Join Date: Jan 2004
Posts: 1,353
It must be ChangeFPS, since it has no need to do anything to the actual video except pass the frame through, just as trim() does. There's just the trivial overhead of determining which frame to pass.
__________________
My AviSynth filters / I'm the Doctor
davidhorman is offline   Reply With Quote
Old 19th January 2018, 22:51   #3886  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,283
I've heard tell ChangeFPS does some caching; maybe that's the reason it works here -
Quote:
Originally Posted by Didée
https://forum.doom9.org/showthread.p...20#post1473320
Code:
ffvideosource("source.mkv")
changefps(last,last,true) # cache a few frames of input - dont ask, just do. ;-)
raffriff42 is offline   Reply With Quote
Old Yesterday, 14:49   #3887  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 794
Quote:
Originally Posted by raffriff42 View Post
I've heard tell ChangeFPS does some caching; maybe that's the reason it works here -
Always present in my scripts. Don't ask why, I don't know
__________________
@turment on Telegram
tormento is online now   Reply With Quote
Old Yesterday, 16:07   #3888  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,009
To cache explicitly, you may use RequestLinear (TIVTC.dll); AviSynth MT also provided Preroll (or even any AviSynth v2.6+?). Does AviSynth+ offer anything similar in its kernel?
__________________

German doom9 / Gleitz board
MediaFire shares: x265 | VPx | AOM | Xvid

Rémoulade is spoiled
LigH 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 12:43.


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