Log in

View Full Version : questions about avisynth 64 in windows batch


colargol7
26th October 2011, 19:09
Hello,

I'm using batch to encode my avisynth scripts to x264. Everything is automated and works perfectly.
It works with 32bits tools: wavi, avs2avi (only to retrieve infos), lame, aften, neroAAC, and x264

Now I'd like to detect which version of avisynth is installed on the computer (32b or 64b) and let the batch choose the appropriate version of mentioned tools.
I founded 64b versions for all of them (thanks to authors) excepted nero.


1. so how can I properly detect the installed version of avisynth with a windows command line?

2. since neroaac 64 doesn't exist, I can't pipe wavi64 to nero to encode audio.
Do you have a suggestion for encoding audio using nero with avisynth 64? (an intermediate script?)


Thanks.

sneaker_ger
26th October 2011, 19:48
2. since neroaac 64 doesn't exist, I can't pipe wavi64 to nero to encode audio.

Why not?

colargol7
28th October 2011, 17:49
Why not?oh sorry, I thought it was not possible :o
I can not test since I work only with 32b OS (but my small app is designed to be shared...)

And how can I guess if avisynth is a 32 or 64 bits version? a regkey? :confused:

colargol7
29th October 2011, 18:25
I had a look at batch files of avisynth64 and I think this works:
Can someone confirm that will always work please :)

set is_avisynth64=0

if "%PROCESSOR_ARCHITECTURE%" NEQ "x86" (
>nul reg query "HKLM\SOFTWARE\AviSynth" /ve 2>&1
if "!errorlevel!"=="0" set is_avisynth64=1
)

if "is_avisynth64"=="1" (echo you have a 64b avisynth) else (echo you DON'T have a 64b avisynth)