View Full Version : "Info" filter output to file - or something similar


Hirudin
13th July 2007, 10:45
Hi, first post here for me. I'm trying to get something to output an AVS script's frame rate (preferably in "##/##" format) and resolution into a text file. I plan to later parse the info in this txt file to help make MKVs.

Easy information to get manually, by using the "Info" internal filter, but I can't seem to have that info automatically saved to an external file. If I could use something like Info("C:\videoinfo.txt") that would be great!

I've searched Google a ton, but putting "info" into any search means you can pretty much forget about finding anything but basic information.

Quite a few sites have a small utility called "AVInfo (http://shounen.ru/soft/avinfo/desc_en.shtml)" for download, but as far as I can tell it doesn't work with AVS files.

sh0dan
13th July 2007, 12:41
http://avisynth.org/mediawiki/WriteFile

...more specific, you are probably looking for WriteFileStart.

Here are the clip properties you can print out:

http://avisynth.org/mediawiki/Clip_properties

Hirudin
13th July 2007, 13:13
Sweet! Thanks sh0dan!

This looks like exactly what I need, I knew it had to be out there somewhere...

...Later...
Yup,
WriteFileStart("<PATH>\<FILENAME>.txt", "Width", """ "," """, "Height", """ "," """, "FrameRateNumerator", """ "," """, "FrameRateDenominator")
Is all I need for
720,480,24000,1001

Thanks again!