AVS Forum banner

21 - 40 of 43 Posts

Registered
Joined
183 Posts
Could you please post your batfiles馃槉

bat hdr off:


timeout /t 10 > nul

c:\JVCKontrolle\JvcControl 6A


bat hdr on:
timeout /t 10 > nul

c:\JVCKontrolle\JvcControl 68



and in Madvr:

if ((srcWidth < 2001) and (deintFps < 26)) "Bluray Profile"
else if ((srcWidth < 2001) and (deintFps > 25)) "Bluray 60p Profile"
else if ((srcWidth > 2000) and (deintFps < 26) and (not HDR)) "Ultra HD Bluray Profile"
else if ((srcWidth > 2000) and (deintFps < 26) and (HDR)) "UHD HDR"
else if ((srcWidth > 2000) and (deintFps > 25) and (not HDR)) "Ultra HD 60p Bluray Profile"
else if ((srcWidth > 2000) and (deintFps > 25) and (HDR)) "UHD 60 HDR"
else "Ultra HD Bluray Profile"


command line ecxecute when this profile is activated



C:\JVCKontrolle\hdr-ein10.bat
 

Registered
Joined
157 Posts
bat hdr off:


timeout /t 10 > nul

c:\JVCKontrolle\JvcControl 6A


bat hdr on:
timeout /t 10 > nul

c:\JVCKontrolle\JvcControl 68



and in Madvr:

if ((srcWidth < 2001) and (deintFps < 26)) "Bluray Profile"
else if ((srcWidth < 2001) and (deintFps > 25)) "Bluray 60p Profile"
else if ((srcWidth > 2000) and (deintFps < 26) and (not HDR)) "Ultra HD Bluray Profile"
else if ((srcWidth > 2000) and (deintFps < 26) and (HDR)) "UHD HDR"
else if ((srcWidth > 2000) and (deintFps > 25) and (not HDR)) "Ultra HD 60p Bluray Profile"
else if ((srcWidth > 2000) and (deintFps > 25) and (HDR)) "UHD 60 HDR"
else "Ultra HD Bluray Profile"


command line ecxecute when this profile is activated



C:\JVCKontrolle\hdr-ein10.bat
My problem is not to change to a specific user, when a profile start in madVR. It's to change back to user 1 when the madVR profile stops
 

Registered
Joined
120 Posts
Hi.

Thank you for a cool little program.

I use it with Eventghost, and there the start projector "05" works like a charm.
But I am having trouble turning it off again using code "06".
I think my main problem is, that it dual action for turning off - like when you turn it off on the remote: Press Standby again for turning the projector off.
Is there a code for turning off the projector directly?
Thanks.
 

Registered
Joined
1,782 Posts
Hi.

Thank you for a cool little program.

I use it with Eventghost, and there the start projector "05" works like a charm.
But I am having trouble turning it off again using code "06".
I think my main problem is, that it dual action for turning off - like when you turn it off on the remote: Press Standby again for turning the projector off.
Is there a code for turning off the projector directly?
Thanks.
JvcControl.exe Raw:pW0
 

Registered
Joined
104 Posts
Thanks for this software. It seems like it will be very useful. Newb questions - If I use MadVR to select the lens memory and then JVC control to select picture mode (HDR or SDR) by using a bat file - do I need to put the delay in the bat file to ensure the JVC receives both commands or will it work regardless? Thanks.
 

Registered
JVC RS4500 | ST130 G4 135" | MRX 720 | MC303 MC152 | B&W 802D3, HTM1D3, 805D3, 702S2 | 4x15 IB Subs
Joined
8,391 Posts
Discussion Starter #30
Thanks for this software. It seems like it will be very useful. Newb questions - If I use MadVR to select the lens memory and then JVC control to select picture mode (HDR or SDR) by using a bat file - do I need to put the delay in the bat file to ensure the JVC receives both commands or will it work regardless? Thanks.
You should test and see for yourself. MadVR can be set to run a bat file instead of set the picture mode. Then you can have your bat file run multiple commands. Perhaps that's more useful.
 

Registered
Joined
1,782 Posts
You should test and see for yourself. MadVR can be set to run a bat file instead of set the picture mode. Then you can have your bat file run multiple commands. Perhaps that's more useful.
I don't know if it was a bug, but last time I tried to have madVR run .bat files, it ran every .bat file in every profile that was "in order" before the profile that was actually being selected by the profile select script.
 

Registered
Joined
2,801 Posts
@markmon1

Have you figured out the code for Anamorphic D or do you think you can add it at a later date?

I saw somewhere, forgot to bookmark the post, that someone had the HEX and/or IR code for it.

Thanks.
 

Registered
JVC RS4500 | ST130 G4 135" | MRX 720 | MC303 MC152 | B&W 802D3, HTM1D3, 805D3, 702S2 | 4x15 IB Subs
Joined
8,391 Posts
Discussion Starter #33

Registered
Joined
49 Posts
@markmon1
Excellent Program. Even a noob like me with zero knowledge of commands can make this work. Wanted to know how to get current picture mode information from the projector and store it and use it later.



My Scenario: Want to switch to Natural mode every single time when playback stops. I can write a macro in EventGhost to combine "Media_Stop" and JvcControl 6A, but projector (RS500) always sets the picture mode to Natural even-though it's already in this picture mode. It takes a few seconds to adjust picture mode, and screen goes blank every time the macro is run. If I can query current picture mode and find a way to prevent change in picture mode if its already on, it will be better.


Thanks.
 

Registered
JVC RS4500 | ST130 G4 135" | MRX 720 | MC303 MC152 | B&W 802D3, HTM1D3, 805D3, 702S2 | 4x15 IB Subs
Joined
8,391 Posts
Discussion Starter #35
@markmon1
Excellent Program. Even a noob like me with zero knowledge of commands can make this work. Wanted to know how to get current picture mode information from the projector and store it and use it later.



My Scenario: Want to switch to Natural mode every single time when playback stops. I can write a macro in EventGhost to combine "Media_Stop" and JvcControl 6A, but projector (RS500) always sets the picture mode to Natural even-though it's already in this picture mode. It takes a few seconds to adjust picture mode, and screen goes blank every time the macro is run. If I can query current picture mode and find a way to prevent change in picture mode if its already on, it will be better.


Thanks.
Looks like JVCControl has a command "StorePictureMode":
JvcControl StorePictureMode c:\htpc\current.txt

Then you can open current.txt and see whats in it. I don't know much about EventGhost, but it looks like it's backed by python scripting so you should be able to use python's built in file read routines. I think the logic for me would be:

Run JvcControl StorePictureMode c:\htpc\current.txt
Get file contents of current.txt in python.
Delete current.txt
If not in natural mode, issue JVCControl 6A to switch

FYI, you can use the RAWREAD command to have jvccontrol grab the state from the projector for *any* command and dump it into a file called JvcReturnValue.txt. Here is an example in autoit. This was for game of thrones episode 8x03 which was super dark. It saves off the original gamma then restores it after the file exits.

The code example grabs the gamma value using RawRead:pMGC.
Then I load the right 2 nibbles of the string returned from the projector in the file JvcReturnValue.txt.
Then I create a file called "restoredata.txt" which contains the full JVCControl command to run when the file exits.

Code:
	If StringInStr($cmdline[1], "S08E03") Then
		RunWait("c:\htpc\JvcControl.exe RawRead:PMGC"); PMGC Reads gamma correction and saves to JvcReturnValue.txt
		Sleep(2000);
		Local $GammaCorrection = StringRight(FileRead('C:\htpc\JvcReturnValue.txt'), 2);
		
		FileWrite(@ScriptDir & "\restoredata.txt", 'c:\htpc\JvcControl.exe Raw:PMGC' & $GammaCorrection);
		RunWait('c:\htpc\JvcControl.exe Raw:PMGC06'); PMGC is gamma correction, 06 is 1.9.
	EndIf
Here is the code that restores it afterwards using the result:
Code:
	Local $hFile = FileOpen(@ScriptDir & "\restoredata.txt", $FO_READ);
	If $hFile  -1 Then
		Local $RunRestoreCommand = FileRead($hFile);
		FileClose($hFile);
		FileDelete(@ScriptDir & "\restoredata.txt");
		RunWait($RunRestoreCommand); PMBR is for brightness, then 0000 is 0, 0001 1 etc
		Sleep(3000);
	EndIf
So you can test the RAWREAD command and look in the JvcReturnValue.txt and see what types of values are returned.
 

Registered
JVC RS4500 | ST130 G4 135" | MRX 720 | MC303 MC152 | B&W 802D3, HTM1D3, 805D3, 702S2 | 4x15 IB Subs
Joined
8,391 Posts
Discussion Starter #36
@markmon1
Excellent Program. Even a noob like me with zero knowledge of commands can make this work. Wanted to know how to get current picture mode information from the projector and store it and use it later.



My Scenario: Want to switch to Natural mode every single time when playback stops. I can write a macro in EventGhost to combine "Media_Stop" and JvcControl 6A, but projector (RS500) always sets the picture mode to Natural even-though it's already in this picture mode. It takes a few seconds to adjust picture mode, and screen goes blank every time the macro is run. If I can query current picture mode and find a way to prevent change in picture mode if its already on, it will be better.


Thanks.
Hey, I updated JVC Control to ignore lens preset and picture mode commands if it is already set at that command. So if you're on user1 and try to change to user1 it will do nothing. Just grab the latest jvc control from the link above and it should have this added.
 

Registered
Joined
536 Posts
Am I able to add a command in MadVr to switch custom picture modes (User 1...5) via JvcControl? This thread reads as if I can.

I鈥檝e tried using the Bt.2020 flag and the Vertex2 to autoswitch, but the MadVr flag causes a magenta bug.
 

Registered
JVC RS4500 | ST130 G4 135" | MRX 720 | MC303 MC152 | B&W 802D3, HTM1D3, 805D3, 702S2 | 4x15 IB Subs
Joined
8,391 Posts
Discussion Starter #38
Am I able to add a command in MadVr to switch custom picture modes (User 1...5) via JvcControl? This thread reads as if I can.

I鈥檝e tried using the Bt.2020 flag and the Vertex2 to autoswitch, but the MadVr flag causes a magenta bug.
Yes, a couple guys have done this.
 

Registered
Joined
190 Posts
Yes, a couple guys have done this.
Just discovered this utility. Mark, this is great! I am going to try and integrate it with HS3 to get around some issues with my Harmony remote.

One thing, I can't seem to get any good info from RAWREAD. It pretty much returns nothing, or what looks to me like the ACK response. I have an X790. Any help is appreciated.

Andrew
 
21 - 40 of 43 Posts
Top