PDA

View Full Version : Alternative to ShowFrameNumber?


neily
24th August 2002, 14:59
Hi,

I would like to write a simple one line frame number, as opposed to having the column as "ShowFrameNumber" produces. I was hoping that frame number might have been an AVSValue, but sadly it does not appear to be.

Is there a script function or something that can help me out? I intend using ShowSMPTE as well.

The reason I ask is that I have a collection of Hi8 tapes (growing children), which I try to play as infrequently as possible till the glorious day when I have a DVD writer. I want to capture a whole tape at a relatively low res, add a border with frame and SMPTE numbers, then encode at a sufficiently low bit rate to fit a single tape on a CD, just so I have an accessible record of what is on each tape.

sh0dan
24th August 2002, 15:28
clip=avisource("D:\SH0DAN\MPG\Ice Age.avi").convertbacktoyuy2()
bc=blankclip(1000000,70,32).killaudio().converttoyuy2().ShowFrameNumber().greyscale()
layer(clip,bc,"add",200,10,0)


Everything is possible in avisynth :)

neily
24th August 2002, 20:11
sh0dan,

Thanks for the reply. As you say, in avisynth, (virtually) everything is possible. Unfortunately, with ShowFrameNumber, text justification seems awry. With more than 5 digits, the least significant digit's appearance is clipped, and 99999 frames only gives 66 mins at 25fps. My tapes are 90 mins long.

sh0dan
24th August 2002, 20:14
Make the blank clip larger, and add a digit to the script:


clip=avisource("D:\SH0DAN\MPG\Ice Age.avi").convertbacktoyuy2()
bc=blankclip(10000000,80,32).killaudio().converttoyuy2().ShowFrameNumber().greyscale()
layer(clip,bc,"add",200,10,0)


Bingo! Everything IS possible ;)

Ok, the last digit is cropped a bit, but it's readable.