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

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 13th October 2008, 14:17   #1  |  Link
zee944
Registered User
 
Join Date: Apr 2007
Posts: 240
How to get current frame number in AviSynth?

Can anyone tell me how can I have the current frame number in AviSynth?

Within ScriptClip command, I can display it such as:

Code:
ScriptClip("subtitle(string(current_frame))")
...but AviSynth doesn't recognize a stand-alone 'current_frame'.

What I actually want to do is to increase saturation from zero to maximum during playback. The first frame is B&W, the last has the original saturation. If 'current_frame' would work, my line would look like this:

Code:
Tweak(sat=(current_frame/FrameCount)*1.00)
Could anybody help?
zee944 is offline   Reply With Quote
 

Tags
current_frame, scriptclip

Thread Tools
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 00:40.


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