ScriptClip (once again...) >> Construction Tools >> Forum
Forum

Forum



SearchSearch   Users   Registration   Entrance
Today: 16.07.2025 - 03:57:05
Pages:  1  

ScriptClip (once again...)

Advertising

/
MessageAuthor

Because current_frame is defined inside scriptclip ( third line of ScriptClip::GetFrame() ) and hence is defined before the creation of the Subtitle filter.

------------------------
-Dan

Fissionx

user




Statistics:
Messages: 100
Registration: 01.18.2002
01.08.22 - 12:46:07
Message # 1
RE: ScriptClip (once again...)

stop, once again: - current_frametype is created in MY AviSource-hack - the behaviour gets different by using a simple " " +

------------------------

J.R. (Phx)

user




Statistics:
Messages: 15
Registration: 04.27.2002
01.08.22 - 12:53:28
Message # 2
RE: ScriptClip (once again...)

Ooops, my bad, I misunderstood your question.

------------------------

threeserious

user




Statistics:
Messages: 9
Registration: 04.17.2002
01.08.22 - 13:02:40
Message # 3
RE: ScriptClip (once again...)

I made the same test you did, with one of my filter which I modified to make it create a variable current_frametype. I can't reproduce the behavior you're encountering. For me, there is always the one frame lag. Is there a chance you would have mistyped current_frametype by current_frame ?

------------------------

sped here

user




Statistics:
Messages: 444
Registration: 03.09.2003
01.08.22 - 13:06:49
Message # 4
RE: ScriptClip (once again...)

(I realize the context of this post is somewhat hard to get). The conclusion is: It is possible to add an "after_frame=true/false". It will however result in two GetFrame calls, and the result of the first will be discarded. The reason ConditionalReader and XstatImport (Xvid stat importer) works is because they are to be placed _after_ the scriptclip filter.

------------------------

nathan

user




Statistics:
Messages: 883
Registration: 01.28.2003
01.08.22 - 13:13:43
Message # 5
RE: ScriptClip (once again...)

:confused: you soon make me give up... 1) I made an AviSource which sets in its GetFrame a variable "current_frametype" (which is filled with e.g. "D 34" meaning DroppedFrame, frame 34. 2) When I then use ScriptClip(""" subtitle(current_frametype) """) there is NO lag. On frame 34 there is the string "D 34" printed - there is no lag, Subtitle gets called AFTER AviSource has set the variable. 3) BUT when I use a function as here the string addition ScriptClip(""" subtitle(" " + current_frametype) """) or ANY OTHER scriptfunction inside the Subtitle command, there is the lag you described and explained. Of course I can upload my DLL/source somewhere to test, but it's a mere env->SetVar(...) in the AviSource::GetFrame

------------------------
#17 M42 CLUB

joeytomato

user




Statistics:
Messages: 173
Registration: 08.23.2001
01.08.22 - 13:23:00
Message # 6
RE: ScriptClip (once again...)

I understood you : What I said last was that I made a modification in one of my filter to do a env->SetVar(...) inside its GetFrame function. I used the following scripts : Code:

------------------------

RanGer498

user




Statistics:
Messages: 528
Registration: 03.22.2003
01.08.22 - 13:30:53
Message # 7
RE: ScriptClip (once again...)
Presence in a mix? : Previous topicNext topic: FFMpeg DVD .iso to new format
Pages:  1  

The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants