View Full Version : Overlay timer on video file ?
Elvis56
7th October 2003, 17:44
Hi,
I am looking for a program to overlay a timer(running clock) onto an avi file(either realtime or as a rendered file). So far i haven't been able to find a program that can do what i want. I think it should be relatively easy to make with avisynth but my programming skills are nowhere to be found.
Does anyone know a program to overlay timers onto avi files or anyone willing to create an avisynth plugin ?
Thanks in advance
WarpEnterprises
7th October 2003, 21:54
Do you wan't to overlay the actual time at which the video is processed?
That goes:
AviSource("....")
ScriptClip("subtitle(time(" + chr(34) + "%H:%M:%S" + chr(34) + "))")
The Time() syntax is in syntax.html.
The Chr(34) are for generating quotes.
If you want to display the timestamp look here:
http://forum.doom9.org/showthread.php?s=&threadid=62393
Elvis56
7th October 2003, 22:50
That's already a step in the right direction i think(thanks a lot for that) but i don't want the actual time, i want a stopwatch type timer. So it starts at 0:00:00 and then starts running. Could that eb accomplished with a similar script ?
Checking the link you posted, i guess i can create something usable from that, i'll give it a try. Thanks again.
mrlipring
8th October 2003, 00:52
couldn't you just make it as subtitles? not ideal, but it'd work.
Richard Berg
8th October 2003, 07:33
Does ShowSMPTE do what you want or am I misreading?
Elvis56
8th October 2003, 10:00
Yes it seems ShowSMPTE does exactly what i want, I'm gonna give it a try now, thanks a lot.
In case nobody would come up with a solution we already started with a workaround, we screengrabbed a running digital stopwatch. Not ideal but it works. Anyway, gonna see if i get some good results with avisynth now.
mrlipring
8th October 2003, 19:46
a digital stopwatch? that's even dafter than my method! :p
vidiot
14th October 2003, 00:06
Elvis56,
there´s a VD Filter that actally does right what you want.
It´s called ADDFRAMENUMBERS/ADDTIMESTAMP I guess V0.61 is the most recent version...
Elvis56
15th October 2003, 08:47
I'll look into the virtualdub filter, i just downloaded it from http://toonarchive.com/addframenumbers/. Thanks a lot for mentioning this filter.
vidiot
16th October 2003, 10:20
Elvis56 - we may have been blind and should use the search function more often:D
The solution is near:
http://forum.doom9.org/showthread.php?threadid=62393
I guess you´ll find something useful there...
vidiot
WarpEnterprises
16th October 2003, 16:43
you didn't even read your own thread, ts ts ts :p
look at the second post...
Elvis56
16th October 2003, 19:53
i read that thread but it didn't get me anywhere. The virtualdub filter seems to be the easiest to use, but i can not use any font i want. I'll contact the programmer, maybe he can implement that in a future version.
The project i needed the timer for is already finished but on screen timers could be useful for other projects.
(for those who are curious to know what kind of timer we used in the end: Like i described before we ran a stopwatch program and screengrabbed the output window and then combined the timer with the video footage in premiere)
guru1968
17th October 2003, 11:51
that is exactly what is implemented with the little script described in the mentioned thread...
You'll got a timer where You even can decide whether it should be counting upwards (from 00:00:00 'til end of avi) or display the remaining time, You can freely chose the font in which the timer should be displayed and of course the position where it should be placed...
In Your case where You already have an avi (unless me as I only had one single image) You don't even need to calculate the clip duration, You have that right at hand! (frames = avi.FrameCount)
In other words, the avs script You can use is as simple as the one shown in the last post THERE (http://forum.doom9.org/showthread.php?s=&threadid=62393) by WarpEnterprises...
And for a complete reference of Subtitle where You can set not only the font, font-size and the position, but also the colors, please look HERE (http://www.avisynth.org/index.php?page=Subtitle)
What is unclear, what else do You need or want?
ch33rs,
guru
WarpEnterprises
17th October 2003, 13:55
maybe a GUI ? :D
Elvis56
18th October 2003, 19:22
I have used avisynth in the past for several projects and i know it's very powerful but i still see a market for an gui based avisynth editor...:)
But i'm gonna try the avisynth way tomorrow, i'll post the results.
vidiot
18th October 2003, 20:42
Originally posted by WarpEnterprises
you didn't even read your own thread, ts ts ts :p
look at the second post...
Oops - could have read this thread more carefully before posting...:rolleyes:
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.