Log in

View Full Version : How to capture error message from AviSynth script?


Atak_Snajpera
14th January 2009, 01:06
I'm looking for small commandline tool which can check my .avs and save result to .txt file.

LoRd_MuldeR
14th January 2009, 20:47
I'm looking for small commandline tool which can check my .avs and save result to .txt file.

avs2yuv.exe :confused:

You can grab the output from STDOUT and save it to a text file then...

Atak_Snajpera
15th January 2009, 00:55
I'm unable to capture error message from avs2yuv. Even simple >> error.txt method in .cmd does not work. File is always empty.

LoRd_MuldeR
15th January 2009, 01:14
I'm unable to capture error message from avs2yuv. Even simple >> error.txt method in .cmd does not work. File is always empty.

Maybe it writes error messages to STDERR, so make sure you capture STDOUT and STDERR.

It does work for me that way:

Commandline: avs2yuv.exe "C:\TEMP\x264\divx-x264.avs" -frames 1 NUL

Avisynth error:
AVCSource: Couldn't find libavcodec.dll specified in the DGA file
(C:\TEMP\x264\divx-x264.avs, line 1)

Commandline: avs2yuv.exe "C:\TEMP\x264\sample.avs" -frames 1 NUL

C:\TEMP\x264\sample.avs: 352x288, 2997/100 fps, 2262 frames