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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link | ||
|
Registered User
Join Date: May 2003
Location: Seattle WA
Posts: 2
|
Can't use variable as function argument in AviSynth
Hi everybody,
This is my first post so please go easy on me. I am using the "BlankClip" and "Subtitle" functions to create opening titles for my movie. I am using AviSynth 2.5.2. My intention is to replace the numerical values of the "first_frame" and "last_frame" arguments of the "Subtitle" function with variables, so I may re-assign variables at the top of my scrips rather than change the hard-coded frame numbers throughout my script. Here is an example:Quote:
Quote:
__________________
LaVacheQuiRi |
||
|
|
|
|
|
#2 | Link |
|
Newbie Forum Mod
Join Date: Aug 2002
Location: way too deep in (cyber)space
Posts: 2,436
|
hi and welcome to the forum
![]() not all first questions are newbie questions ... moving your thread to the avisynth forum!steVe
__________________
Search the forum, read the forum rules once more and use the search function on doom9.org before posting! oh btw my amazon.de wishlist |
|
|
|
|
|
#3 | Link |
|
Registered User
Join Date: Feb 2002
Posts: 1,195
|
hi,
replace : FR=content.framerate by : FR=round(content.framerate) i think framerate return a float (or perhaps even a string) and this is not very well supported . here is how to cast value for avisynth. http://www.avisynth.org/index.php?page=ScriptFunctions Ps: welcome ![]() Bye.
__________________
AutoDub v1.8 : Divx3/4/5 & Xvid Video codec and .OGG/.MP3/.AC3/.WMA audio codec. AutoRV10 v1.0 : Use RealVideo 10 Codec and support 2 Audio Streams and Subtitles. |
|
|
|
![]() |
|
|