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. |
20th June 2004, 21:33 | #1 | Link |
Moderator
Join Date: Nov 2002
Location: Inside
Posts: 718
|
ShowFrameNumbers behavior
Is there a way to display the frame number in the upper right corner only?
ShowFrameNumbers either fills the entire right side with the number, or scrolls annoyingly. I just want the frame number displayed in the upper right only. Perhaps there is a way to do this via the Subtitle command? |
20th June 2004, 21:36 | #2 | Link |
AviSynth Enthusiast
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
|
Method 1:
Code:
ScriptClip("Subtitle(String(current_frame), align=9)") Code:
function ShowNumber(clip c, int n) { return c.Subtitle(String(n), align=9) } Animate(0, FrameCount() - 1, "ShowNumber", 0, FrameCount() - 1) Last edited by stickboy; 20th June 2004 at 21:41. |
20th June 2004, 21:49 | #3 | Link |
Moderator
Join Date: Nov 2002
Location: Inside
Posts: 718
|
Sorry for being a pain. Thanks, that works but I can't display the Version simultaneously (see this thread)
Id really like to be able to do the version string and the current frame number using independent commands. I am doing this from my own GUI and want to be able to turn each one on/off without cross-checking the other option (but i'll do it if I have to). |
20th June 2004, 21:55 | #4 | Link |
Moderator
Join Date: Nov 2002
Location: Inside
Posts: 718
|
Ummmmm. Did the Info() command ALWAYS display the current frame number?
After using the ScriptClip command, Info() now displays the frame number and I can't make it stop. I am aiming to be able to display Info(), the version AND the current frame number INDEPENDENTLY and/or SIMULTANEOUSLY. |
21st June 2004, 01:46 | #5 | Link | ||
AviSynth Enthusiast
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
|
Quote:
Code:
AVISource("foo.avi") ScriptClip("Subtitle(String(current_frame), align=9)") Subtitle(VersionString()) Code:
c = AVISource("foo.avi") c = c.ScriptClip("Subtitle(String(current_frame), align=9)") c = c.Subtitle(VersionString()) Quote:
Last edited by stickboy; 21st June 2004 at 01:50. |
||
21st June 2004, 03:05 | #6 | Link |
Moderator
Join Date: Nov 2002
Location: Inside
Posts: 718
|
stickyboy, thanks for your help.
I just spent a minute swearing at myself. I was using this script wondering why I could only get the last line to execute: Code:
video=aviscript("foo.avi") video = ScriptClip("Subtitle(String(current_frame), align=9)") video = Subtitle(VersionString()) Code:
video=aviscript("foo.avi") video = video.ScriptClip("Subtitle(String(current_frame), align=9)") video = video.Subtitle(VersionString()) |
21st June 2004, 18:03 | #9 | Link |
Moderator
Join Date: Nov 2002
Location: Inside
Posts: 718
|
One last question:
If I wanted to issue the 'font' parameter of the Subtitle command which is inside a ScriptClip command how would I do that? (ie: How do I nest quotation marks?) Code:
video=video.ScriptClip("Subtitle(String(current_frame), font=Courier, size=16, align=9)") Code:
video=video.ScriptClip("Subtitle(String(current_frame), font="Courier", size=16, align=9)") |
21st June 2004, 18:16 | #10 | Link |
AviSynth Enthusiast
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
|
See this thread:
did you know: string containing quotes You also can build up a string by doing things such as: Code:
function Quote() { return Chr(34) } MessageClip(Quote() + "Nested quotes?" + Quote() + " he asked") |
|
|