Log in

View Full Version : bd rebuilder windows 7


dvd1304
6th October 2009, 12:59
hi guys....a friend has just installed a trial version of windows 7 on my newly built computor.when i start up bd rebuilder it says some programs have not been installed properly.
x264.exe
tsremuxer.exe
these are just 2 of the programs it is telling me to reinstall.i have tried this but again i get this message.
is this because of windows 7 or am i doing something wrong???any ideas
many thanks for your help....

Groucho2004
6th October 2009, 14:25
@jdobbs
Maybe you should implement a Windows version check and prevent people from running BD-RB on Windows 7 so people stop posting these kind of reports.

jdobbs
6th October 2009, 14:27
hi guys....a friend has just installed a trial version of windows 7 on my newly built computor.when i start up bd rebuilder it says some programs have not been installed properly.
x264.exe
tsremuxer.exe
these are just 2 of the programs it is telling me to reinstall.i have tried this but again i get this message.
is this because of windows 7 or am i doing something wrong???any ideas
many thanks for your help....Those programs are in the ZIP file. If BD-RB says it can't find them -- it means you haven't unzipped them.

Please note: Windows 7 is not released yet, and is therefore not supported.

turbojet
9th October 2009, 05:36
How about BD-RB checking for ffdshow, haali and windows 7 and making the appropriate adjustments to the registry for windows 7?

Here's a batch script that will check for required software and set windows 7 to decode VC-1. SubInACL is required (http://www.microsoft.com/downloads/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&displaylang=en) or you can download the batch and subinacl (http://www.mediafire.com/?hwktztiyijt)

@ECHO OFF
:: CHECK FOR AVISYNTH (INCONSISTENT SO DISABLED)
reg query "HKLM\SOFTWARE\AviSynth" >nul
if errorlevel 1 reg query "HKLM\SOFTWARE\Wow6432Node\AviSynth"
if errorlevel 1 GOTO NOAVS

:: CHECK FOR HAALI MEDIA SPLITTER
reg query "HKCU\Software\Haali\Matroska Splitter"
if errorlevel 1 reg query "HKLM\SOFTWARE\HaaliMkx"
if errorlevel 1 reg query "HKLM\SOFTWARE\Wow6432Node\HaaliMkx"
if errorlevel 1 GOTO NOHMS

:: CHECK FOR FFDSHOW
reg query "HKCU\Software\GNU\ffdshow"
if errorlevel 1 GOTO NOFFDS

:: CHECK FOR WINDOWS 7
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName" | findstr /i "7"
IF ERRORLEVEL 1 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "CurrentVersion" | findstr /i "6.1"
IF ERRORLEVEL 1 exit

:: CHECK IF FFDSHOW IS MANAGING VC1
reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\DirectShow\Preferred" /v "{31435657-0000-0010-8000-00AA00389B71}" | findstr "{04FE9017-F873-410E-871E-AB91661A4EF7}"
if errorlevel 1 reg query "HKLM\SOFTWARE\Microsoft\DirectShow\Preferred" /v "{31435657-0000-0010-8000-00AA00389B71}" | findstr "{04FE9017-F873-410E-871E-AB91661A4EF7}"
if not errorlevel 1 exit

:: SET FFDSHOW VC1 TO WMV9
reg add HKCU\Software\GNU\ffdshow /v wvc1 /t REG_DWORD /d 12 /f

:: CHECK 64 BIT
IF x%PROCESSOR_ARCHITECTURE% == xx86 (
IF NOT DEFINED PROCESSOR_ARCHITEW6432 (
GO TO 32BIT)
) ELSE (
:: TAKE OWNERSHIP OF REG KEY
subinacl /keyreg "Software\Wow6432Node\Microsoft\DirectShow\Preferred" /setowner=%username%

:: CHANGE REG KEY PERMISSION TO FULL CONTROL
subinacl /keyreg "Software\Wow6432Node\Microsoft\DirectShow\Preferred" /grant=%username%=f

:: SET FFDSHOW TO MANAGE VC-1
reg add HKLM\SOFTWARE\Wow6432Node\Microsoft\DirectShow\Preferred /v {31435657-0000-0010-8000-00AA00389B71} /t REG_SZ /d {04FE9017-F873-410E-871E-AB91661A4EF7} /f

:: CHANGE REG PERMISSION BACK TO READ (DEFAULT)
subinacl /keyreg "Software\Wow6432Node\Microsoft\DirectShow\Preferred" /grant=%username%=r

:: CHANGE OWNER TO TrustedInstaller (DEFAULT)
subinacl /keyreg "Software\Wow6432Node\Microsoft\DirectShow\Preferred" /setowner=NT SERVICE\trustedinstaller
exit
)

::32 BIT OS HAS NO Wow6432Node REG KEYS OTHERWISE ITS THE SAME THING
:32BIT
subinacl /keyreg "Software\Microsoft\DirectShow\Preferred" /setowner=%username%
subinacl /keyreg "Software\Microsoft\DirectShow\Preferred" /grant=%username%=f
reg add HKLM\SOFTWARE\Microsoft\DirectShow\Preferred /v {31435657-0000-0010-8000-00AA00389B71} /t REG_SZ /d {04FE9017-F873-410E-871E-AB91661A4EF7} /f
subinacl /keyreg "Software\Microsoft\DirectShow\Preferred" /grant=%username%=r
subinacl /keyreg "Software\Microsoft\DirectShow\Preferred" /setowner=NT SERVICE\trustedinstaller
exit

:NOAVS
CLS
echo You need Avisynth 32 bit installed
echo.
echo Download from http://sourceforge.net/projects/avisynth2/
echo.
echo press any key to exit
pause>nul
exit

:NOFFDS
CLS
echo You need FFDshow 32 bit installed
echo.
echo Download from http://sourceforge.net/projects/ffdshow-tryout/
echo.
echo press any key to exit
pause>nul
exit

:NOHMS
CLS
echo You need Haali Media Splitter installed
echo.
echo Download from http://haali.cs.msu.ru/mkv/
echo.
echo press any key to exit
pause>nul
exit

mikeq
9th October 2009, 18:29
Just as another data point - I'm successfully running BD Rebuilder under windows 7 (64-bit) with no problem at all (well, not exactly true- there's the issue with VC-1, but other than that - no problems). As far as I recall, I didn't do anything special - but I already had most of the needed software installed (Haali, avisynth, ffdshow, etc). The way I've gotten around that is to either manually reencode the VC-1 using ffmpeg (which, for some reason, does work - I reencode to Huffyuv, then to AVC) and use TSMuxer to create the clip and stuff it into the image, then use BD Rebuilder. So far, I haven't reencoded anything with the main using VC-1 - I'll have to try the registry hacks and see if that works....

turbojet
10th October 2009, 04:41
You can put the code I wrote above into a .bat or .cmd file and run it and VC-1 should work as long as you have admin rights, haali, ffdshow installed.

Alternatively you could change ffdshow to decode VC-1 with wmv9 and use preferred filter tweaker to change VC-1 to decode with ffdshow instead of microsoft.

happycase
2nd November 2009, 01:03
How about BD-RB checking for ffdshow, haali and windows 7 and making the appropriate adjustments to the registry for windows 7?

As an example this commented batch file should give some useful info:

@ECHO OFF
::CHECK FOR HAALI MEDIA SPLITTER
reg query "HKCU\Software\Haali\Matroska Splitter" >nul
if errorlevel 1 GOTO NOHMS

::CHECK FOR FFDSHOW
reg query "HKCU\Software\GNU\ffdshow" >nul
if errorlevel 1 GOTO NOFFDS

::CHECK FOR WINDOWS 7
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName" | findstr /i "7" >nul
IF ERRORLEVEL 1 exit

::CHECK FOR ADMIN RIGHTS
timeout /T 2 /NOBREAK>nul
bcdedit>nul
IF ERRORLEVEL 1 GOTO NOADMIN

:: SET FFDSHOW VC1 TO WMV9
reg add HKCU\Software\GNU\ffdshow /v wvc1 /t REG_DWORD /d 12 /f >nul

::CHECK 64 BIT
Reg Query "HKLM\SOFTWARE\Wow6432Node" >nul
if errorlevel 1 goto 32BIT

::GIVE WRITE ACCESS TO ADMIN
echo \Registry\Machine\Software\Wow6432Node\Microsoft\DirectShow\Preferred [1 5 8] >> x64.txt
regini x64.txt
del x64.txt

::SET FFDSHOW TO HANDLE VC-1
reg add HKLM\SOFTWARE\Wow6432Node\Microsoft\DirectShow\Preferred /v {31435657-0000-0010-8000-00AA00389B71} /t REG_SZ /d {04FE9017-F873-410E-871E-AB91661A4EF7} /f >nul

::CHANGE REG PERMISSIONS BACK TO DEFAULT
echo \Registry\Machine\Software\Wow6432Node\Microsoft\DirectShow\Preferred [2 5 8] >> x64.txt
regini x64.txt
del x64.txt

::ALL DONE
exit

::32 BIT OS HAS NO Wow6432Node REG KEYS OTHERWISE ITS THE SAME THING
:32BIT
echo \Registry\Machine\Software\Microsoft\DirectShow\Preferred [1 5 8] >> x64.txt
regini x86.txt
del x86.txt

::SET FFDSHOW TO HANDLE VC-1
reg add HKLM\SOFTWARE\Microsoft\DirectShow\Preferred /v {31435657-0000-0010-8000-00AA00389B71} /t REG_SZ /d {04FE9017-F873-410E-871E-AB91661A4EF7} /f >nul

::CHANGE REG PERMISSIONS BACK TO DEFAULT
echo \Registry\Machine\Software\Microsoft\DirectShow\Preferred [2 5 8] >> x64.txt
regini x86.txt
del x86.txt

::ALL DONE
exit

:NOADMIN
echo You need Administrator rights
echo press any key to exit
pause>nul
exit

:NOFFDS
echo You need FFDshow 32 bit installed
echo.
echo Download from http://sourceforge.net/projects/ffdshow/
echo.
echo press any key to exit
pause>nul
exit

:NOHMS
echo You need Haali Media Splitter installed
echo.
echo Download from http://haali.cs.msu.ru/mkv/
echo.
echo press any key to exit
pause>nul
exit

So if I run this code that should fix my problems?

My Windows 7 is 100% authentic 64bit Ultimate. I bought it at my university bookstore as a student and the disk has the hologram and everything.

GaPony
2nd November 2009, 07:47
You didn't say what your problems are... at least not in this thread.

jdobbs
2nd November 2009, 20:05
How about BD-RB checking for ffdshow, haali and windows 7 and making the appropriate adjustments to the registry for windows 7?

As an example this commented batch file should give some useful info:

@ECHO OFF
::CHECK FOR HAALI MEDIA SPLITTER
reg query "HKCU\Software\Haali\Matroska Splitter" >nul
if errorlevel 1 GOTO NOHMS

::CHECK FOR FFDSHOW
reg query "HKCU\Software\GNU\ffdshow" >nul
if errorlevel 1 GOTO NOFFDS

::CHECK FOR WINDOWS 7
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName" | findstr /i "7" >nul
IF ERRORLEVEL 1 exit

::CHECK FOR ADMIN RIGHTS
timeout /T 2 /NOBREAK>nul
bcdedit>nul
IF ERRORLEVEL 1 GOTO NOADMIN

:: SET FFDSHOW VC1 TO WMV9
reg add HKCU\Software\GNU\ffdshow /v wvc1 /t REG_DWORD /d 12 /f >nul

::CHECK 64 BIT
Reg Query "HKLM\SOFTWARE\Wow6432Node" >nul
if errorlevel 1 goto 32BIT

::GIVE WRITE ACCESS TO ADMIN
echo \Registry\Machine\Software\Wow6432Node\Microsoft\DirectShow\Preferred [1 5 8] >> x64.txt
regini x64.txt
del x64.txt

::SET FFDSHOW TO HANDLE VC-1
reg add HKLM\SOFTWARE\Wow6432Node\Microsoft\DirectShow\Preferred /v {31435657-0000-0010-8000-00AA00389B71} /t REG_SZ /d {04FE9017-F873-410E-871E-AB91661A4EF7} /f >nul

::CHANGE REG PERMISSIONS BACK TO DEFAULT
echo \Registry\Machine\Software\Wow6432Node\Microsoft\DirectShow\Preferred [2 5 8] >> x64.txt
regini x64.txt
del x64.txt

::ALL DONE
exit

::32 BIT OS HAS NO Wow6432Node REG KEYS OTHERWISE ITS THE SAME THING
:32BIT
echo \Registry\Machine\Software\Microsoft\DirectShow\Preferred [1 5 8] >> x64.txt
regini x86.txt
del x86.txt

::SET FFDSHOW TO HANDLE VC-1
reg add HKLM\SOFTWARE\Microsoft\DirectShow\Preferred /v {31435657-0000-0010-8000-00AA00389B71} /t REG_SZ /d {04FE9017-F873-410E-871E-AB91661A4EF7} /f >nul

::CHANGE REG PERMISSIONS BACK TO DEFAULT
echo \Registry\Machine\Software\Microsoft\DirectShow\Preferred [2 5 8] >> x64.txt
regini x86.txt
del x86.txt

::ALL DONE
exit

:NOADMIN
echo You need Administrator rights
echo press any key to exit
pause>nul
exit

:NOFFDS
echo You need FFDshow 32 bit installed
echo.
echo Download from http://sourceforge.net/projects/ffdshow/
echo.
echo press any key to exit
pause>nul
exit

:NOHMS
echo You need Haali Media Splitter installed
echo.
echo Download from http://haali.cs.msu.ru/mkv/
echo.
echo press any key to exit
pause>nul
exitI'll add this, but some of what you have in the BAT file doesn't make sense to me. Example:

::32 BIT OS HAS NO Wow6432Node REG KEYS OTHERWISE ITS THE SAME THING
:32BIT
echo \Registry\Machine\Software\Microsoft\DirectShow\Preferred [1 5 8] >> x64.txt
regini x86.txt
del x86.txt
Where does x86.txt come from??

::CHECK 64 BIT
Reg Query "HKLM\SOFTWARE\Wow6432Node" >nul
if errorlevel 1 goto 32BIT That entry exists on my system, even though it is 32 bit.

::CHECK FOR WINDOWS 7
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName" | findstr /i "7" >nul
IF ERRORLEVEL 1 exitThis entry doesn't exist on my Windows 7 installation.

setarip_old
2nd November 2009, 20:31
@jdobbs

Forgive me, but that seems like it would be excessive "hand holding". If a user can't follow simple "download and install" directions, such as those in Post #1 of this thread (Even I am able to do so!), I'd anticipate that such a user or users would be flooding you with ongoing inane questions...

happycase
2nd November 2009, 21:53
You didn't say what your problems are... at least not in this thread.

Whoops. My problem had to do with troubles regarding VC1 disks not encoding under Windows 7. The issue was fixed after I installed Ripbot which I guess properly configured ffdshow to work with Windows 7.

setarip_old
2nd November 2009, 23:55
@happycase

Hi!

I doubt that there's anything special about RipBot. It's just a matter of manually setting and trying each of the three possible settings for VC-1 under FFDShow...

cp52
3rd November 2009, 02:50
I tried windows 7 & loved it except i tried to recode 2 movies out of my collection to full bd25 both movies came out with main feature audio 5-10s out of sync although bd rebuilder seemed to work fine with no error messages, it seems to work for some & not for others at the moment, until jdobbs fully supports windows 7 i'm sticking with vista!

turbojet
3rd November 2009, 06:38
I'll add this, but some of what you have in the BAT file doesn't make sense to me. Example:

::32 BIT OS HAS NO Wow6432Node REG KEYS OTHERWISE ITS THE SAME THING
:32BIT
echo \Registry\Machine\Software\Microsoft\DirectShow\Preferred [1 5 8] >> x64.txt
regini x86.txt
del x86.txt
Where does x86.txt come from??

It should be >> x86.txt in this case. I updated the original script so it would change reg key permission without admin (needs subinacl). Added avisynth check and check to see if windows 7 reg key is already set before setting it (little speedup)

::CHECK 64 BIT
Reg Query "HKLM\SOFTWARE\Wow6432Node" >nul
if errorlevel 1 goto 32BIT That entry exists on my system, even though it is 32 bit.

Upgrade from x64 OS?

I have checked MSDN 7 Ultimate, Vista Ultimate SP2, XP SP2 x64 fresh installs and all have the Wow6432Node. Whereas 7 Ultimate, Vista Ultimate SP2 and XP SP3 x86 fresh installs don't have it.

::CHECK FOR WINDOWS 7
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName" | findstr /i "7" >nul
IF ERRORLEVEL 1 exitThis entry doesn't exist on my Windows 7 installation.

All my OS installs have this, if it doesn't I don't see how the OS can be identified. But an alternative could be:

reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "CurrentVersion" | findstr /i "6.1"
IF ERRORLEVEL 1 exit

which checks the kernel version.

@happycase

Hi!

I doubt that there's anything special about RipBot. It's just a matter of manually setting and trying each of the three possible settings for VC-1 under FFDShow...

RipBot264 has done this since 1.14.0. From the changelog:
Added: FFdshow will be automatically set as preffered directshow decoder for H.264/VC-1/MPEG-2 in Windows 7 (thanks clsid for help with SetACL)

It also requires more then setting VC-1 to decode by ffdshow, you have to change reg permissions and change the reg key.

jdobbs
3rd November 2009, 14:17
It should be >> x86.txt in this case. I updated the original script so it would change reg key permission without admin (needs subinacl). Added avisynth check and check to see if windows 7 reg key is already set before setting it (little speedup)



Upgrade from x64 OS?

I have checked MSDN 7 Ultimate, Vista Ultimate SP2, XP SP2 x64 fresh installs and all have the Wow6432Node. Whereas 7 Ultimate, Vista Ultimate SP2 and XP SP3 x86 fresh installs don't have it.



All my OS installs have this, if it doesn't I don't see how the OS can be identified. But an alternative could be:

reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "CurrentVersion" | findstr /i "6.1"
IF ERRORLEVEL 1 exit

which checks the kernel version.



RipBot264 has done this since 1.14.0. From the changelog:
Added: FFdshow will be automatically set as preffered directshow decoder for H.264/VC-1/MPEG-2 in Windows 7 (thanks clsid for help with SetACL)

It also requires more then setting VC-1 to decode by ffdshow, you have to change reg permissions and change the reg key. I can always get the O/S through a system call (I do that already). Is there a thread somewhere that discusses what has to be done to make FFDSHOW the preferred decoder? I can set the registry values programmatically.

Upgrade from x64 OS?

I have checked MSDN 7 Ultimate, Vista Ultimate SP2, XP SP2 x64 fresh installs and all have the Wow6432Node. Whereas 7 Ultimate, Vista Ultimate SP2 and XP SP3 x86 fresh installs don't have it. No. Upgrade from 32 bit Vista Home Premium to 32 bit Windows 7 Home Premium. By the way, I just looked, and it also exists on another 32 bit Vista system I have... I don't think this can be used to determine whether a 64 bit version is installed.

XhmikosR
3rd November 2009, 16:22
How about using the %PROCESSOR_ARCHITECTURE% variable? On 32bit Vista in returns x86 while on 64bit AMD64. My CPU is an Intel Q6600.

EDIT: Or check for this registry key value: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE

IF x%PROCESSOR_ARCHITECTURE% == xx86 (
IF NOT DEFINED PROCESSOR_ARCHITEW6432 (
REM OS is 32bit
ECHO:32bit OS)
) ELSE (
REM OS is 64bit
ECHO:64bit OS
)

WildTexasChef
6th November 2009, 06:04
I installed to a new computer. Running retail release of Windows 7 Ultimate 32bit.
All required software is installed.
Ran the above "Batch" file and it made that ONE registry entry for Directshow.

Using BD-Rebuilder v.031.01 beta.

Under settings I have the following checked....
Encoder: x264 Encoder
Encoder Settings: Normal Priority and Highest
Options: Target Size BD-25

Under Setup:
Check mark for English on both Audio and subtitle languages to keep.
Check mark for limit to one track for each language and subtitle.

General Encoding Options. The only check mark is for "Remove Workfiles after rebuild"
Vidoe Encoding Options: No Items checked
Audio Encoding Options checked: "Do not convert DTS to AC3", "Do Not reencode AC3", & "Keep HD Audio for BD25 encoding"
custom target size is: 49550

Under Mode... "Movie Only Backup" & "Quicker Encoder for Extras" is checked

This is what is currently in the config file:

[Options]
MODE=1
PRIORITY_CLASS=0
ENCODE_QUALITY=3
TARGET_SIZE=23000
AUDIO_TO_KEEP=eng;
SUBS_TO_KEEP=eng;
SD_CONVERT=0
COLOR_BOOST=0
RESIZE_1080=0
DTS_REENCODE=0
AC3_REENCODE=0
AC3_640=1
KEEP_HD_AUDIO=1
AVCHD=0
REMOVE_WORKFILES=1
AUDIO_TRACK_LIMIT=1
SUBTITLE_TRACK_LIMIT=1
CUSTOM_TARGET_SIZE=49550

All it created was nother Folder structure with just the Movie only in it, as a M2TS file. Containing the UNCONVERTED VC-1 video track, The AC3 audio and the Subtitle tracks.

The Log is as follows:

-----------------------
[22:43:42] BD Rebuilder v0.31.01 (beta)
- Source: SPRING_BREAKDOWN_(AC3)
- Input BD size: 12.55 GB
- Approximate total content: [01:23:44.019]
- Target BD size: 22.46 GB
- Windows Version: 6.1 [7600]
- MOVIE-ONLY mode enabled
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[22:43:48] PHASE ONE, Encoding
- [22:43:48] Extracting A/V streams [VID_00004]
- [22:52:18] Reencoding: VID_00004 (1 of 1)
- [22:52:18] Keeping original video (no reencode)
[22:57:27]PHASE ONE complete
[22:57:27]PHASE TWO - Rebuild Started
- [22:57:27] Rebuilding BD file Structure
[23:02:55] - Encode and Rebuild complete
- WORKFILES folder removed.
[23:02:55]JOB: SPRING_BREAKDOWN_(AC3) finished.

Whats up? What do I try next?

setarip_old
6th November 2009, 06:31
Perhaps some other member will suggest to "WildTexasChef" that, once again, making an effort to read both instructions ("Hiddenopts.txt" in the BD-RB package, regarding "FORCE_ENCODE=") and previous posts, such as:

http://forum.doom9.org/showpost.php?p=1310873&postcount=4340

will (as in many other prior instances of this member's repetitive postings, incorrectly claiming that "it doesn't do what you said", regarding numerous programs) clearly provide the necessary information.

If anyone thinks I'm being unduly harsh, you have but to search all of the Doom9 sub-forums for "WildTexasChef"...

jdobbs
6th November 2009, 15:26
BD Rebuilder by default doesn't reencode the video if it will fit unmodified on the output disc. There's really no reason to if the target is BD-25.

kaiman
7th November 2009, 04:10
How about BD-RB checking for ffdshow, haali and windows 7 and making the appropriate adjustments to the registry for windows 7?

Here's a batch script that will check for required software and set windows 7 to decode VC-1. SubInACL is required (http://www.microsoft.com/downloads/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&displaylang=en) or you can download the batch and subinacl (http://www.mediafire.com/?ey42tliyhym)

@ECHO OFF
:: CHECK FOR AVISYNTH
reg query "HKLM\SOFTWARE\AviSynth" >nul
if errorlevel 1 reg query "HKLM\SOFTWARE\Wow6432Node\AviSynth"
if errorlevel 1 GOTO NOAVS

:: CHECK FOR HAALI MEDIA SPLITTER
reg query "HKCU\Software\Haali\Matroska Splitter"
if errorlevel 1 reg query "HKLM\SOFTWARE\HaaliMkx"
if errorlevel 1 reg query "HKLM\SOFTWARE\Wow6432Node\HaaliMkx"
if errorlevel 1 GOTO NOHMS

:: CHECK FOR FFDSHOW
reg query "HKCU\Software\GNU\ffdshow"
if errorlevel 1 GOTO NOFFDS

:: CHECK FOR WINDOWS 7
reg QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "ProductName" | findstr /i "7"
IF ERRORLEVEL 1 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "CurrentVersion" | findstr /i "6.1"
IF ERRORLEVEL 1 exit

:: SET FFDSHOW VC1 TO WMV9
reg add HKCU\Software\GNU\ffdshow /v wvc1 /t REG_DWORD /d 12 /f

:: CHECK IF FFDSHOW IS MANAGING VC1
reg query "HKLM\SOFTWARE\Wow6432Node\Microsoft\DirectShow\Preferred" /v "{31435657-0000-0010-8000-00AA00389B71}" | findstr "{04FE9017-F873-410E-871E-AB91661A4EF7}"
if errorlevel 1 reg query "HKLM\SOFTWARE\Microsoft\DirectShow\Preferred" /v "{31435657-0000-0010-8000-00AA00389B71}" | findstr "{04FE9017-F873-410E-871E-AB91661A4EF7}"
if not errorlevel 1 exit

:: CHECK 64 BIT
Reg Query "HKLM\SOFTWARE\Wow6432Node"
if errorlevel 1 goto 32BIT

:: TAKE OWNERSHIP OF REG KEY
subinacl /keyreg "Software\Wow6432Node\Microsoft\DirectShow\Preferred" /setowner=%username%

:: CHANGE REG KEY PERMISSION TO FULL CONTROL
subinacl /keyreg "Software\Wow6432Node\Microsoft\DirectShow\Preferred" /grant=%username%=f

:: SET FFDSHOW TO MANAGE VC-1
reg add HKLM\SOFTWARE\Wow6432Node\Microsoft\DirectShow\Preferred /v {31435657-0000-0010-8000-00AA00389B71} /t REG_SZ /d {04FE9017-F873-410E-871E-AB91661A4EF7} /f

:: CHANGE REG PERMISSION BACK TO READ (DEFAULT)
subinacl /keyreg "Software\Wow6432Node\Microsoft\DirectShow\Preferred" /grant=%username%=r

:: CHANGE OWNER TO TrustedInstaller (DEFAULT)
subinacl /keyreg "Software\Wow6432Node\Microsoft\DirectShow\Preferred" /setowner=NT SERVICE\trustedinstaller

::32 BIT OS HAS NO Wow6432Node REG KEYS OTHERWISE ITS THE SAME THING
:32BIT
subinacl /keyreg "Software\Microsoft\DirectShow\Preferred" /setowner=%username%
subinacl /keyreg "Software\Microsoft\DirectShow\Preferred" /grant=%username%=f
reg add HKLM\SOFTWARE\Microsoft\DirectShow\Preferred /v {31435657-0000-0010-8000-00AA00389B71} /t REG_SZ /d {04FE9017-F873-410E-871E-AB91661A4EF7} /f
subinacl /keyreg "Software\Microsoft\DirectShow\Preferred" /grant=%username%=r
subinacl /keyreg "Software\Microsoft\DirectShow\Preferred" /setowner=NT SERVICE\trustedinstaller

:NOAVS
CLS
echo You need Avisynth 32 bit installed
echo.
echo Download from http://sourceforge.net/projects/avisynth2/
echo.
echo press any key to exit
pause>nul
exit

:NOFFDS
CLS
echo You need FFDshow 32 bit installed
echo.
echo Download from http://sourceforge.net/projects/ffdshow-tryout/
echo.
echo press any key to exit
pause>nul
exit

:NOHMS
CLS
echo You need Haali Media Splitter installed
echo.
echo Download from http://haali.cs.msu.ru/mkv/
echo.
echo press any key to exit
pause>nul
exit

after i run the scrip it says that i need Avisynth 32 bit installed, but its already installed, i have windows 7 ultimate 64 bits clean install

turbojet
7th November 2009, 04:29
I can always get the O/S through a system call (I do that already). Is there a thread somewhere that discusses what has to be done to make FFDSHOW the preferred decoder? I can set the registry values programmatically.

The only thread I know of is this. (http://forum.doom9.org/showthread.php?t=146910) which is a tool that sets preferred decoders for codecs by taking ownership of and changing the data in HKLM\SOFTWARE\Wow6432Node\Microsoft\DirectShow\Preferred or HKLM\SOFTWARE\Microsoft\DirectShow\Preferred.

All ffdshow decoder changes are done in HKCU\Software\GNU\ffdshow.

No. Upgrade from 32 bit Vista Home Premium to 32 bit Windows 7 Home Premium. By the way, I just looked, and it also exists on another 32 bit Vista system I have... I don't think this can be used to determine whether a 64 bit version is installed.

Strange, I've never seen that before but XhmikosR is probably a much better way then what I had.

How about using the %PROCESSOR_ARCHITECTURE% variable? On 32bit Vista in returns x86 while on 64bit AMD64. My CPU is an Intel Q6600.

EDIT: Or check for this registry key value: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE

IF x%PROCESSOR_ARCHITECTURE% == xx86 (
IF NOT DEFINED PROCESSOR_ARCHITEW6432 (
REM OS is 32bit
ECHO:32bit OS)
) ELSE (
REM OS is 64bit
ECHO:64bit OS
)

Thanks I changed it.

after i run the scrip it says that i need Avisynth 32 bit installed, but its already installed, i have windows 7 ultimate 64 bits clean install

It was appearing on x64 since I didn't call an exit. It should have done it's job though and I've added the exit call now.

WildTexasChef
10th November 2009, 00:07
Perhaps some other member will suggest to "WildTexasChef" that, once again, making an effort to read both instructions ("Hiddenopts.txt" in the BD-RB package, regarding "FORCE_ENCODE=") and previous posts, such as:

http://forum.doom9.org/showpost.php?p=1310873&postcount=4340

will (as in many other prior instances of this member's repetitive postings, incorrectly claiming that "it doesn't do what you said", regarding numerous programs) clearly provide the necessary information.

If anyone thinks I'm being unduly harsh, you have but to search all of the Doom9 sub-forums for "WildTexasChef"...

No I don't think your being harsh. I tend to be forgetfull and my search methods aren't very good. You have to know what words to do a search on to get what your trying to find, & it doesn't help if you can't remember the right words! But not your fault.

A few hours after I posted that, I did rember that their was a setting someone had told me about in a previous thread. The Force_encode=1. After I did that it did start to encode. I could tell because the processing time greatly increased. I wanted to wait for it to finish before I posted back on that issue. It was running on a celeron, way to slow. But I am NOT complaining about the time. I know celerons are slow.

Anyways it did finish. But the video is corrupted. I mean it will play in various players. Including my TiVo and my BD390. However for lack of a better term. The picture is corrupted and unwatchable. Lots of pixelation going on. I don't know what the term is... but it looks like its a bunch of big blocks on the screen in various different colours. The audio plays fine. I don't know if the audio/video is in sync or not as I can't see the picture well enough to know.

Yes the original file is a Interlaced VC-1 (1080i) video encoding. Directshow has VC-1 decoding and encoding set to WMV9. H.264/AVC is set to Libavcodec. Avisynth and Haali Media Splitter are installed as well. The system is Running a fresh clean install of Windows 7 Ultimate 32 bit.

The batch file listed previously to this post was completed. Although it was done manually instead of via actually running the batch file. Everything was double checked.

What should I check now?

WTC