Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
26th October 2011, 19:09 | #1 | Link |
Registered User
Join Date: Jun 2006
Location: Lyon (France)
Posts: 43
|
questions about avisynth 64 in windows batch
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.
__________________
noob resizer Last edited by colargol7; 26th October 2011 at 19:13. |
28th October 2011, 17:49 | #3 | Link |
Registered User
Join Date: Jun 2006
Location: Lyon (France)
Posts: 43
|
oh sorry, I thought it was not possible
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?
__________________
noob resizer |
29th October 2011, 18:25 | #4 | Link |
Registered User
Join Date: Jun 2006
Location: Lyon (France)
Posts: 43
|
I had a look at batch files of avisynth64 and I think this works:
Can someone confirm that will always work please Code:
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)
__________________
noob resizer Last edited by colargol7; 30th October 2011 at 09:02. |
|
|