Log in

View Full Version : How to read info from an avs file


lucifekit
18th August 2015, 14:58
Hi guy, i have an avs file which have many filter. I can use the "info()" command to print the info of output video into the video, but i need to quick extract that info for my use, can u please tell me how to do that? (Example a command line to extract info to a text file so i can read from it ... ) :thanks:

wonkey_monkey
18th August 2015, 15:12
I've used AVSMeter (http://forum.doom9.org/showthread.php?t=165528) for this in the past. Something along the lines of:

avsmeter script.avs -info >info.txt

won't do it, but I'm sure Grouch will be along soon to explain why ;)

Groucho2004
18th August 2015, 15:20
I've used AVSMeter (http://forum.doom9.org/showthread.php?t=165528) for this in the past. Something along the lines of:

avsmeter script.avs -info >info.txt

should do it.
That won't work any more with newer versions because the output goes to stderr by default. 3 options:
- re-direct stderr to the text file
- change the AVSMeter ini setting "ConUseSTDOUT=0" to "1"
- use the switches "-info" and "-log" to create a log file with all available info

Option 3 seems to be the most suitable.

lucifekit
18th August 2015, 20:03
Wow thank, i didnt think about avsmeter solution because i use the 1.47 version since a long time ago, the groucho solution worked like a charm, :goodpost:

luquinhas0021
18th August 2015, 23:39
Simple: first, allow the field "file's name" shows the file's extension. Like: before, Windows shows, for example, "Video Frame 1"; after, Windows will show "Video Frame 1.jpg". After proceed below step, open NotePad, writes any Avisynth's script, save with txt extension, and close; so open the folder where the file you just created is, click on it with right buttom and choose option that you can change it name with;do you remember the file you created? -Suppose it name is "Test.txt" - now, select only "txt" and replace for "avs"; in message that will appear, click on "Yes" - this trainees NotePad to open .avs files. Now, find the script you wanna know about, click with right buttom, in "Open with", and "NotePad". You can open and edit avs files in NotePad.

wonkey_monkey
18th August 2015, 23:50
I don't know what question you're answering, but it appears to have nothing to do with this thread.

Music Fan
19th August 2015, 09:39
- re-direct stderr to the text file
- use the switches "-info" and "-log" to create a log file with all available info
How to do these 2 options ?

Groucho2004
19th August 2015, 10:20
How to do these 2 options ?
re-direct stderr to the text file:
avsmeter script.avs -i 2> info.txt

use the switches "-info" and "-log" to create a log file with all available info:
I don't know how to further elaborate on this. Which part do you have trouble with?

Groucho2004
19th August 2015, 10:29
I don't know what question you're answering, but it appears to have nothing to do with this thread.
It's Jeopardy!

Simple: first, allow the field "file's name" shows the file's extension. Like: before, Windows shows, for example, "Video Frame 1"; after, Windows will show "Video Frame 1.jpg". After proceed below step, open NotePad, writes any Avisynth's script, save with txt extension, and close; so open the folder where the file you just created is, click on it with right buttom and choose option that you can change it name with;do you remember the file you created? -Suppose it name is "Test.txt" - now, select only "txt" and replace for "avs"; in message that will appear, click on "Yes" - this trainees NotePad to open .avs files. Now, find the script you wanna know about, click with right buttom, in "Open with", and "NotePad". You can open and edit avs files in NotePad.
I actually figured out what the question is by digging through this pile of words. Do I get a toaster or a dish washer?

wonkey_monkey
19th August 2015, 10:46
It's Jeopardy!


I actually figured out what the question is by digging through this pile of words. Do I get a toaster or a dish washer?

You get a toast washer.

feisty2
19th August 2015, 15:16
I actually figured out what the question is by digging through this pile of words. Do I get a toaster or a dish washer

You get a toast washer.


you guys just like to mess with that Brazilian boy (or girl? I assume you should be a boy?) don't you? ;)

Groucho2004
19th August 2015, 15:28
you guys just like to mess with that Brazilian boy (or girl?
Yeah, can't help it. As for gender, see facebook page (https://www.facebook.com/LucasSousa999).

By the way, he changed "Narcizist" to "The image enthusyast". :D:D
Spell-checkers are complicated beasts, it seems...

sh0dan
19th August 2015, 15:51
Closed: Off-topic.