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 Yesterday, 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 Yesterday, 14:13   #3882  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,277
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; Yesterday at 14:15.
StainlessS is offline   Reply With Quote
Old Yesterday, 19:40   #3883  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 5,003
@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 Yesterday, 20:05   #3884  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,277
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.
__________________
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 Yesterday, 22:37   #3885  |  Link
davidhorman
I'm the Doctor
 
Join Date: Jan 2004
Posts: 1,355
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 Yesterday, 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
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 01:08.


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