INTERACT FORUM

Windows => Third Party Plug-ins, Programs, and Skins => Topic started by: jmone on July 25, 2015, 08:19:11 pm

Title: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 25, 2015, 08:19:11 pm
Last Updated: 09 Aug 2015

Background:  MC Lets you launch external programs by File Type (Tools --> Options -->File Types). Though control of these programs is pretty limited.  Following on from my previous threads of:
3D BD : Integrating a 3rd Party Player with MC (https://yabb.jriver.com/interact/index.php?topic=81259.0) ** now old **
Another Way To Watch Netflix With a 10 Foot Interface & RC (Win8/10 only) (http://yabb.jriver.com/interact/index.php?topic=95627.0) ** still current **

I've decided to make a more generalised "Advanced External Program Launcher" to complement MC's existing capabilities and included three profiles for:

1) CyberLink PowerDVD (http://www.cyberlink.com/products/powerdvd-ultra) : MC Users who want 3D or Full Menu support for their Bluray Library and Disks.

2) Stereoscopic Player (http://www.3dtv.at/Products/Player/Index_en.aspx) : MC Users who want MVC-3D MKV Support (aka 3D BD Rips)

3) Arcosft TotalMediaTheatre : MC Users who want 3D or Full Menu support for their Bluray Library and Disks and still have this older program

What it does now:
    When commencing play for a specific file type (say BDMV3D or MK3D) in MC it:
     - Optionally Turns on NVIDIA's 3D Profiles (if needed)
     - Plays your title in PowerDVD / Stereoscopic Player / TotalMediaTheatre
    When you press the "STOP" button on your Remote Control
     - Closes PowerDVD / Stereoscopic Player / TotalMediaTheatre
     - Turns off NVIDIA's 3D Profiles (if needed) and resets the Screen Setting back to what you had in MC
     - Returns to MC

What it could do:  The script is setup so you can add or modify profiles to suit a range of 3rd Party apps.  It does some conversion of selected MCE IR Remote Control commands into Keyboard keystrokes (as with the separate Netflix script) for those apps that don't support some RC commands, or where there is a conflict with MC itself.  Feel free to modify, add, and share any script changes as I've only added the three profiles and tested with my setup.

What you need to do:  Here is how to configure the lot to work together:
1) Install AutoHotKey (http://www.autohotkey.com/) if you want to edit the script (free scripting app that does all the work)
2) Use the attached script as a template, or edit to suit your needs.  I've attached both the script (as shown below) and a compiled version if you don't need to make any changes to the one I've generated (and then you don't need to install AutoHotKey)

Code: [Select]
; JRiver Media Center Advanced External Program Launcher Verrsion: 150809
; Author: jmone
; Thread on Interact: http://yabb.jriver.com/interact/index.php?topic=98984.0

; --------------------------------------------------------------------------------------------------------
; AutoHotKey Environment Settings - No need to change
; --------------------------------------------------------------------------------------------------------
#NoEnv
;#NoTrayIcon
#Persistent
#SingleInstance, Force
SendMode Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 2
SetTitleMatchMode, Slow

; --------------------------------------------------------------------------------------------------------
; Record existing Display Settings - No need to change
; --------------------------------------------------------------------------------------------------------
VarSetCapacity(device_mode,126)
success := DllCall("EnumDisplaySettings","uint",0,"uint",-1,"uint",&device_mode)
sW:=NumGet(&device_mode,108,"uint4")  ;width
sH:=NumGet(&device_mode,112,"uint4")  ;height
cD:=NumGet(&device_mode,104,"uint4")  ;bit depth
rR:=NumGet(&device_mode,120,"uint4")  ;frequency

; --------------------------------------------------------------------------------------------------------
; Read and Check Variables sent from MC - No need to change
; --------------------------------------------------------------------------------------------------------
Loop, %0%  ; For each parameter:
{
    Par%A_Index% := %A_Index%
}
StringSplit, Var,Par1, `,

If !Var1 ; check there is a filename specified
{
  msgbox There is Nothing to play - Process will Close
  ExitApp
}
If !Var2 ; check there is an external player specified
{
  msgbox There was no External Player specified - Process will Close
  ExitApp
}

StringReplace,Var1,Var1,BDMV\index.bluray;1,  ;shortens MC's Bluray "Filename" to just the Path

; the following checks to see if it is file or on a Disk Drive and then finds the drive letter to use
If Var1 not contains \\,:
{
  StringReplace, Var1, Var1, %A_SPACE%, _, All
  StringGetPos, pos, Var1, \
  StringLeft, Var1, Var1, pos
  DriveGet, l_Temp, List
  Loop, Parse, l_Temp
  {
    DriveGet, Label, Label, %A_LoopField%:
    If Label contains %Var1%
    {
      Var1 = %A_LoopField%:\
      Break
    }
  }
}

; ********************************************************************************************************
; User Settings - Edit the values to match your player below
; ********************************************************************************************************
-------------- Media Center Configuration ----------------------------------------------------------------
If ProcessExist("Media Center 20.exe")
{
  MC_Path:="C:\Program Files (x86)\J River\Media Center 20\Media Center 20.exe" ; Enter Full path to MC
  MC_Name:="MC20.exe" ; Enter Short MC Name
}
If ProcessExist("Media Center 21.exe")
{
  MC_Path:="C:\Program Files (x86)\J River\Media Center 21\Media Center 21.exe" ; Enter Full path to MC
  MC_Name:="MC21.exe" ; Enter Short MC Name
}

-------------- NVIDIA 3D Vision --------------------------------------------------------------------------
P_N3D:="C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" ; Enter Full path to nvstlink
-------------- Cyberlink PowerDVD Configuration ----------------------------------------------------------
If Var2=PDVD ; Enter Abbreviation of the Program to run that will be used in the Second Variable from MC
{
  P_DIR:="C:\Program Files (x86)\Cyberlink\PowerDVD15\PDVDLP.exe" ; Enter the Full path to the Program
  P_WinName:="PowerDVD" ; Enter the Title of the Window when running
  P_Switch:="/LaunchProgram PowerDVDCinema" ; Enter any Additionial Switches to include
  P_Prev = P ; Remaps the PgUp Button on a RC to a Keyboard Command
  P_Next = N ; Remaps the PgDn Button on a RC to a Keyboard Command
}
-------------- Stereoscopic Player Configuration ---------------------------------------------------------
If Var2=SP ; Enter Abbreviation of the Program to run that will be used in the Second Variable from MC
{
  P_DIR:="C:\Program Files (x86)\Stereoscopic Player\StereoPlayer.exe" ; Enter the Full path to the Program
  P_WinName:="Stereoscopic Player" ; Enter the Title of the Window when running
  P_Switch:="-fss" ; Enter any Additionial Switches to include
  P_Prev = ^{PgUp} ; Remaps the PgUp Button on a RC to a Keyboard Command
  P_Next = ^{PgDn} ; Remaps the PgDn Button on a RC to a Keyboard Command
}
-------------- Arcsoft TMT Configuration -----------------------------------------------------------------
If Var2=TMT ; Enter Abbreviation of the Program to run that will be used in the Second Variable from MC
{
  P_DIR:="C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uMCEPlayer6.exe" ; Enter the Full path to the Program
  P_WinName:="TotalMedia" ; Enter the Title of the Window when running
  P_Switch:="" ; Enter any Additionial Switches to include
  P_Prev = {PgUp} ; Remaps the PgUp Button on a RC to a Keyboard Command
  P_Next = {PgDn} ; Remaps the PgDn Button on a RC to a Keyboard Command
}

; ********************************************************************************************************
; User Settings - Edit the values to match your player above
; ********************************************************************************************************
; --------------------------------------------------------------------------------------------------------
; Launch Player - No need to change
; --------------------------------------------------------------------------------------------------------
Progress, b w200, Launching %P_WinName%, Please Wait
If Var3=N3D
{
  run %P_N3D% /enable
  Progress, 50
  Sleep, 4000
}
Run %P_DIR% "%Var1%" %P_Switch%
Progress, 75
sleep, 1000
Progress, Off
WinMaximize, P_WinName

; --------------------------------------------------------------------------------------------------------
; Media Key Handling
; --------------------------------------------------------------------------------------------------------
Media_Prev::
  Send %P_Prev%
return

Media_Next::
  Send %P_Next%
Return

Media_Stop::  ; This is the STOP button (Media_Stop) - you can change to suit your requirements
  WinClose, %P_WinName%
  If Var3=N3D
    run %P_N3D% /disable
  ChangeDisplaySettings( cD, sW, sH, rR )
  ExitApp

; --------------------------------------------------------------------------------------------------------
; The script that makes various System Calls - Don't Change
; --------------------------------------------------------------------------------------------------------
ChangeDisplaySettings( cD, sW, sH, rR )
{
  VarSetCapacity(dM,156,0), NumPut(156,2,&dM,36)
  DllCall( "EnumDisplaySettings", UInt,0, UInt,-1, UInt,&dM ), NumPut(0x5c0000,dM,40)
  NumPut(cD,dM,104),  NumPut(sW,dM,108),  NumPut(sH,dM,112),  NumPut(rR,dM,120)
  Return DllCall( "ChangeDisplaySettings", UInt,&dM, UInt,0 )
}  

ProcessExist(Name)
{
Process,Exist,%Name%
return Errorlevel
}
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 25, 2015, 08:19:25 pm
Configuring the MC_AEPL script:  The script is already configured for PDVD and Steroscopic Player, though you may need to make changes if any of the installation directories are not the default.  I've tried to keep all of these in the section marked "User Settings" so they should be easy to modify if needed.  There are then sub-sections for:
- MC's details (Installation Path and running Program Name)
- NVIDIA 3D Vision Toggler (Installation Path)
- PowerDVD / Steroscopic Player / TotalMediaTheatre (Installation Path, it's running Windows Title, and any additional parameters/switches it needs).

Configuring MC: Under Tools --> Options --> File Types you can specify for each file type a "Playback Method".  Change this from "Automatic" to "External Program (custom)" and complete the details in the following examples (and as shown in the pics):
- Program: Path to where you are running MC_AELP.ahk (or .exe if you have compiled it)
- Arguments:  These are in the form of "[The Item To Play],What External Player to Use,IF You Want to Enable NVIDIA 3D"
Note: You must wrap all the Arguments in Quotes.

Valid Arguments are:
[The Item To Play] : use [Filename]
[What External Player to Use] : use either PDVD or SP or TMT (for PowerDVD, Steroscopic player, and TotalMediaTheatre respectively)
[IF You Want to Enable NVIDIA 3D] : N3D if you want to Enable the setting, else leave it blank

(http://yabb.jriver.com/interact/index.php?action=dlattach;topic=98984.0;attach=17815;image)

Notes:  Couple of thing I've found:
- Make sure you system is all working fine first (including 3D viewing).  This script just calls the various bits and will not "fix" something that is broken.
- I don't like how the NVIDIA does it 3D profile as when you enable it, you lose "std" 2d 23.976 and 24hz profiles.  The toggle was added to get around this by turning it on and off.  I have noticed that after a few toggles it all seems to be working but you are not seeing 3D.  If that is the case a reboot fixes it.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 25, 2015, 08:19:38 pm
CyberLink PowerDVD Profile Information
(http://yabb.jriver.com/interact/index.php?action=dlattach;topic=98984.0;attach=17707;image)
Firstly, thank you to Cyberlink who gave me a Licence to PowerDVD do this testing and writeup (FYI - I'm a "Cyberlink MVP" on their Video Editing application PowerDirector)  ;D  It makes it much easer than using the Trial Software!

Additional Features over MC: PowerDVD is a full featured BD player supporting both MVC 3D, Menu Navigation and BD Live etc.

Sample Configuration:  The following is the configuration to use PDVD as a 3D Bluray player (see pic) for both 3D BD's ripped to a file structure in MC's library and Physical Disks / Mounted ISO
- 3d Blu-ray (bdmv3d) : Argument="[Filename],PDVD,N3D"  (I want to run PowerDVD for 3D Bluray and switch on NVIDIAs 3D profile)
- 3d Blu-ray (bdmv3d) : Argument="[Filename],PDVD"         (I want to run PowerDVD for 3D Bluray)

You could also use PowerDVD for all BD Playback if you prefer full Menu support by
- Blu-ray (bdmv,mpls) : Argument="[Filename],PDVD"          (I want to run PowerDVD for std Bluray)

Notes:
- I'm in conversation with Cyberlink on PDVD's support for playback of MVC MKV3D files in 3D.  At this stage I can only get them to play in 2D AVC
- Product Page CyberLink PowerDVD (http://www.cyberlink.com/products/powerdvd-ultra)
- Support Page CyberLink Community Forum (http://forum.cyberlink.com/forum/forums/show/148.page)
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 25, 2015, 08:19:53 pm
Stereoscopic Player Profile Information
(http://yabb.jriver.com/interact/index.php?action=dlattach;topic=98984.0;attach=17715;image)
This is a File Based player that support a wide range of 3D formats and Outputs.  Of interest to most on this forum it support MVC (aka 3D BD rips in MKV).  

Additional Features over MC: Supports MVC encoded MKV (aka MKV 3D / 3D BD to MKV rips).

Sample Configuration:  The following is the configuration to use Stereoscopic Player as a MKV 3D MVC player (see pic)
- Matroska Video 3d (mk3d) : Argument="[Filename],SP,N3D"  (I want to run Steroscopic Player for 3D MKV and switch on NVIDIAs 3D profile)
- Matroska Video 3d (mk3d) : Argument="[Filename],SP"         (I want to run Steroscopic Player for 3D MKV)

You could also use Stereoscopic Player for SSIF (from a BD Folder Structure rip).  You would need to .......
- .....I've got this working but it is a bit of a PITA - asked if JR can make some changes first then I'll update ....TBD .....


Notes:
- Stereoscopic Player requires a working NVIDIA 3DTV Play (http://www.nvidia.com/object/3dtv-play-overview.html) and it has to be Activated (paid for) (http://www.nvidia.com/object/3dtv-activate.html).
- As it is a file based player it has no direct support form playing a 3D BD structure/disk though it can play the SSIF files or MKV.
- Product Page Stereoscopic Player Overview (http://www.3dtv.at/Products/Player/Index_en.aspx)
- Support Page - no dedicated forum by the MFR
- Stereoscopic Player does not support the use of Chapters for navigation though I remapped the MCE Chapter buttons to Jump Forward / Jump Back
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 25, 2015, 08:20:07 pm
Arcsoft TotalMediaPlayer Profile Information

Arcsoft have deprecated this player and it is really no longer recommended as without updates bugs can not be fixed and issues of compatibility are already appearing.  While the initial version of TMT6 (6.0.1.119) does run on my system, the final version (6.7.1.199) causes a BSOD in Windows 10 on all my NVIDIA based PCs and  I've seen other posts on AMD systems saying it will not run.  The initial version of TMT6 (6.0.1.119) does run on my system.

Additional Features over MC: TMT is a full featured BD player supporting both MVC 3D, Menu Navigation and BD Live etc.

Sample Configuration:  The following is the configuration to use TMT as a 3D Bluray player for both 3D BD's ripped to a file structure in MC's library and Physical Disks / Mounted ISO
- 3d Blu-ray (bdmv3d) : Argument="[Filename],TMT,N3D"  (I want to run TMT for 3D Bluray and switch on NVIDIAs 3D profile)
- 3d Blu-ray (bdmv3d) : Argument="[Filename],TMT"         (I want to run TMT for 3D Bluray)

You could also use TMT for all BD Playback if you prefer full Menu support by
- Blu-ray (bdmv,mpls) : Argument="[Filename],TMT"          (I want to run TMT for std Bluray)

Notes:
- Pending your Version some MKV playback may not work, a Hotfix is here (http://www.arcsoft.com/forum/forum_posts.asp?TID=11480&title=tmt6-tmt5-mkv-playback-hotfix)
- Product Page : No Longer Sold or Supported
- Support Page ArcSoft TotalMedia Forum (http://www.arcsoft.com/forum/forum_topics.asp?FID=23&title=totalmedia-theatre)
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 26, 2015, 03:12:48 am
Found a bug - First post updated with latest script and also changed how to put in Arguments in MC.

Any feedback on how it works is welcome
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: bhampster on July 26, 2015, 06:52:56 am
Thank you,

This is great and you are miles ahead of me but I do believe that Nvidia 3D play is not required. Stereoscopic player can use DirectX quad buffered playback and Nvidia doesn't have to have any idea what's going on.

Then again,... I may not know what I'm talking about here. I've only played back a little 3D so far till I get it all figured out.

I was fascinated by a post showing how to merge the unregistered Stereoscopic player with Nvidia 3D Vision player and that DID work for me but the 3DVision player seemed only to want to display TAB 3D with no option to do frame packing. There may be a way to resolve that but I can't spend too much time trying to evade purchase of Stereoscopic player outright.

-Brian
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 26, 2015, 07:10:12 am
Thanks Brian.  I could not get my TV to kick into 3D in any other mode apart from "NVIDIA 3D Vision" in SP when playing MVC MKV content ...  and even then it would only work once I and activated NVIDIA 3DTV Play (note: you don't need to run the player but just active it).  Once I did that it work flawlessly.  I should say I'm also only running the trial of both SP and 3DTV Play Activation.... so who knows. 
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: gvanbrunt on July 26, 2015, 11:57:55 am
Thanks for this. I'll get to testing when I have some time.

FYI: I too need to activate 3D vision support in my NVIDIA for any kind of 3D to happen with my TV in any apps I've tried.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 26, 2015, 04:06:40 pm
We may be talking on two different things:
1) You need to turn the 3D settings on (through the NVIDIA Control Panel or programatically) for any 3D prog to work at all, but
2) Stereoscopic Player (but not PDVD) seems to also require that the additional NVIDIA 3DTV SW is installed and that you pay for a licence key to Activate it
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on July 27, 2015, 02:43:07 am
Thank you JMOne. Fantastic. Exactly what I was looking for after a frustrating afternoon trying to get powerdvd to work with MC20.

A great solution. Works way better than TMT6 for me.

Now I just need to sort out the spdif sound issues and it'll be a perfect solution.

Thanks again.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on July 27, 2015, 02:44:28 am
Actually....can powerdvd output audio to the MC wdm driver?
Might be a solution to get the audio processed correctly.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 27, 2015, 05:57:08 am
It should work but give it a go in PDVD first.  You may need to make the MC WDM driver the default first (as in PDVD I can see no way of picking a particular Audio Renderer) and then select the output Audio Driver in MC to the real output.  Once that works you then may need to comment out the command the closes MC in the script so it is still running and can process the Audio from PDVD.  I'll be able to test but not for a few days.

Thanks for the feedback
Nathan
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: gvanbrunt on July 27, 2015, 09:18:51 am
We may be talking on two different things:
1) You need to turn the 3D settings on (through the NVIDIA Control Panel or programatically) for any 3D prog to work at all, but
2) Stereoscopic Player (but not PDVD) seems to also require that the additional NVIDIA 3DTV SW is installed and that you pay for a licence key to Activate it

Ah gotcha. I never used Stereoscopic Player yet. I was able to get PDVD to work without the NVIDIA add on. Don't know if that makes any difference.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on July 28, 2015, 08:57:01 am
Nathan - look forward to hearing about your test results. It would be a shame to have to keep MC20 open as, as you say, it inhibits some of the remote control functions. I'm hoping that the wdm driver uses the settings from MC20 but doesn't ACTUALLY need to have MC20 open.....but I guess we'll see.

As I'm playing the audio to only stereo speakers, TMT6 at least could remix the source appropriately. PowerDvd doesn't seem to have that ability, so routing the 5.1 sound through the MC20 driver would be a good solution.

Thanks again for your excellent solution.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: Hendrik on July 28, 2015, 09:18:33 am
I'm hoping that the wdm driver uses the settings from MC20 but doesn't ACTUALLY need to have MC20 open.n.

The WDM driver only ever works when MC is running.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: JimH on July 28, 2015, 10:01:13 am
Nathan,
Thanks very much for doing this guide.

Jim
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 28, 2015, 05:17:36 pm
No probs Jim.  Nothing like brushing up on my "parsing" skills.... it has been a very long time.

I'll check out how to use the WDM driver that will necessitate keeping MC running but keeping MCE commands...
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on July 29, 2015, 02:50:59 am
Thanks again Nathan. I guess getting the MCE commands to function correctly is all we're looking to do here and then we have pretty much the ideal solution.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on July 29, 2015, 03:41:45 am
It should not be a big deal.  I only noticed a couple of MCE commands were being eaten ( <<| and |>>) and I think I can handle these in the script.  I should have something done in the next couple of days.
Thanks
Nathan
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 01, 2015, 11:25:02 pm
ugg - no problems in keeping MC running and pumping audio via the WDM driver.... but I've still got more to do to try to stop MC eating the RC commands without using a prog like Even Ghost or Girder (which you could use now and get it all going).  I've not spent as much time as I'd like and Win10 happened!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 02, 2015, 09:04:39 am
Thanks again Nathan. Look forward to seeing how you deal with MC command eating!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: Ekpen on August 02, 2015, 10:46:06 am
It should not be a big deal.  I only noticed a couple of MCE commands were being eaten ( <<| and |>>) and I think I can handle these in the script.  I should have something done in the next couple of days.
Thanks
Nathan

Greetings:

Anyway to add TMT6?

I just found my license key , I will like to test with TMT6.

Thanks Nathan

George 
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: CountryBumkin on August 04, 2015, 09:18:45 am
Greetings:

Anyway to add TMT6?

I just found my license key , I will like to test with TMT6.

Thanks Nathan

George 

See this earlier thread/work from jmone which is about using TMT https://yabb.jriver.com/interact/index.php?topic=81259.0
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: Ekpen on August 04, 2015, 07:39:13 pm
See this earlier thread/work from jmone which is about using TMT https://yabb.jriver.com/interact/index.php?topic=81259.0

Greetings:

What you pointed me to was an old method. The new script is compiled, but it does not include the TMT6 or so. If tmt6 is added, we will have three options or switches.
I am going to test all to see which one works better.
Of course, this is on Windows machine. When I get to use the Linux- Ubuntu, we have to find other ways of doing this.
I read something about Bino or vlc.
I do not think there is a working equivalent of auto hotkey in Linux.
Thanks anyway.
George
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 05, 2015, 07:07:39 am
I've got some new code working with TMT but need need to to test some more I've not broken PDVD etc (plus I then need to then update the instructions).  I've not done much more on MC grabbing RC codes.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: Ekpen on August 05, 2015, 09:25:04 am
I've got some new code working with TMT but need need to to test some more I've not broken PDVD etc (plus I then need to then update the instructions).  I've not done much more on MC grabbing RC codes.

Thanks for taking your time to do this for all of us.

George
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 06, 2015, 03:52:51 am
See how this works and let me know.... but it's not really tested, but it should:
- Adds support for TMT
- Recognises if you are calling it from MC20 or MC21 automatically and close / restart the correct version (note: I've still not worked out the key mapping so MC still closes at this stage)
- changed the arguments so it is consistent regardless of if it is a File or a BD Structure to be played and should now all be in the form of
"[Filename],PDVD,N3D" , "[Filename],TMT,N3D", "[Filename],SP,N3D" with the ",N3D" an optional flag

I've also been in discussion with Cyberlink on a few things like support for 3D-MKV but I need to check a few things to be sure.

Let me know what works / does not work and I'll push out a version and update the first set of posts.
Thanks
Nathan

Edit - Removed Old Version
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 08, 2015, 01:05:03 am
Here is the latest version.  In addition to the above this one:
- Leaves MC Open so you can pump audio through the WDM driver if you want
- Remaps the MCE Media_Prev and Media_Next that MC eats if it is open for PDVD and TMT.  It also now does a Skip forward and Skip backward for SP which does not support chapters (so at least you get some ability to jump back and forward).

Again - any feedback please so I can update the first post.

Also with TMT..... I've been testing on Win10 and have found that while V6.0.1.119 runs, the final V6.7.1.199 causes and immediate BSOD.  I've seen another post to the same effect and as Arcsoft have deprecated this package, it will not be fixed.

Edit - Removed Old Version
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 08, 2015, 06:31:34 pm
Another update.

Added support for 3D BD Discs that will following the settings under Video --> 3d Blu-ray (bdmv3d).  Note the settings options under Other --> Blu-ray are irrelevant.  One thing I've found is that MC keeps a list in the library of all disks it has played, so if you played a 3D BD prior to the version of MC that added the BD 3D option it may still only be recognised as a 2D disk.  If this is the case you will need to remove the entry from the MC database first.

Let me know of any feedback as I've started to update the main pages of this guide.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 08, 2015, 07:19:39 pm
Update of the First 5 Pages with new script and instructions
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 09, 2015, 06:33:27 am
Nathan.

Fantastic job. Thank you.

A couple of issues outstanding on my side:

- when I start, pdvd left/right/up/down doesn't work until I press the menu button on remote control, which then forces me to choose which menu I want. After that it's fine.

- when I quit back to jriver from pdvd, I have a screen asking "Would you like to play the current disc in your drive?", with a yes/no response option. Any way to get rid of this?

Excellent solution otherwise!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 09, 2015, 03:49:26 pm
Thanks for the feedback;
- Direction Button: I'll check on remapping the direction buttons and let me know if any others don't work as well
- I've not seen the "Would you like to play the current disc in your drive?" so a few of Q:  I presume it is a MC Diag Box?  If so is it related to the Disk you just played (eg is it like it is trying to play it a second time).  Can you tell when the Diag Box appears (eg as PDVD starts can make it a window) or if it is related to a key press (like Enter?) etc.

Nathan
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 09, 2015, 07:09:18 pm
Found the issue.  The "Menu" button is instructing MC to go the the Menu of a Disk, and the "Info" button is taking MC to Playing Now behind PDVD..... now what to do about it!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 09, 2015, 08:57:12 pm
Ok - try this one.  The "Menu" and "Info" button still does stuff in MC behind the scenes but I then Stop and Restart MC when pressing "STOP" in PDVD so you end up with a clean MC instance.  I think I've also fixed the nav buttons working upfront.  Let me know how it looks.

Edit - Removed Old Version
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 11, 2015, 04:34:25 am
OK - this is excellent. Nav Buttons now work immediately in PDVD, and I have no complaints about MC closing and reopening.

The only issue remaining is that the pause and play buttons don't seem to work.

Otherwise, great stuff Nathan! This is an awesome solution and means I can enjoy so much more of my blu-ray collection's bonus features.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 11, 2015, 06:10:38 am
Thanks for the Feedback.  Has the Play/Pause button ever worked for you in any version of the script post the initial script that used to close MC?  as they work for me.  I can remap these buttons to keyboard commands but in addition have asked if the JR team would consider a MCC to disable MC reacting to MCE commands.....as it would make this much more consistent.

Attached is an untested (as I can't get to my HTPC at present) script remapping the Media_Play_Pause to the Space bar (all three apps support {space} for play/pause toggling).  Does this work?
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 11, 2015, 02:28:08 pm
Works a charm. Perfect thank you.

One last thing....but I'm almost embarrassed to ask - you've done so much already!
I've noticed (even before your latest version) that it doesn't always reopen MC after shutting PDVD, leaving windows desktop exposed.
If you can't think of a fix, then maybe better to keep MC open after all and deal with spurious MC messages.

Finally (although I imagine this is more likely a problem with PDVD and will need to be fixed by cyber link), I've seen PDVD quit after 30 secs or so of playing a film or special feature and go to its own menu. I then need to quit PDVD and restart it and then it's fine.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 11, 2015, 08:16:39 pm
I've not seen any issues with MC not starting or PDVD going away.  But here is another test build:
- I'll try not to close/open MC at the end but instead will put MC TheaterView will be put in the Exit Diag Box on purpose and the remove it later
- Pressing "0" will check if the external player is running and if not run it again (in case it closes / crashes)

All this media key handling to avoid MC doing stuff is really a big kludge, so I hope my request for a command to disable MCs media key handing gets done or I'm guessing there will always be issues.  The purpose of keeping MC running is for those that want to use the WDM driver (but good luck in getting Lip Sync to work well!)

Thanks
Nathan

Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 12, 2015, 05:40:33 am
Thanks again Nathan.
Will try this evening.

Can you try opening a film or special feature and let it run for a couple of minutes? I've seen this a number of times now that after 30secs or so, the screen suddenly goes black and then a PDVD screen of all the films in my library appears - yet it doesn't allow me to watch any of them! I then have to close PDVD with the STOP button and re-enter.

Just wondered if there's anything in your script waiting for 15 or 30 secs before attempting to do something that PDVD doesn't like. It's intermittent, but happens enough to be annoying. If not I think we can assume it's a PDVD prob that they'll hopefully correct in an update.

As regards lip sync - I set the buffer to 10ms and everything works a charm through WDM with minimal sync issues.

Thanks to your hard work I'm enjoying my blu-ray library (above all the bonus features) more than I have in years!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 12, 2015, 06:07:57 am
Playing Avatar as we speak using the script and WDM and I'm 15mins in without issues.  I've not seen any issues with PDVD stoping playback like what you describe unless I hit the "return" button on the RC.  The script does not do anything post running PDVD unless you hit one of the buttons I remap.  Do you also see the same issue if you run PDVD on it's own?  Not a network connectivity issue?  Does it coincide with any activity or button pressing?  Glad you have WDM working well.

I'm hoping that if JR do the command I need I'll be able to clean this script up a fair bit but it will not help your random PDVD stopping playback.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 14, 2015, 04:19:54 am
Have re-installed PDVD to see if that makes a difference.

Will test your latest version tonight.

Fingers crossed the JR developers implement your request!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 17, 2015, 12:08:11 pm
Great. So the reinstall of PDVD seems to have removed problems of quitting mid movie. Hurrah.

Otherwise, the latest version works really well. Only had one issue where it couldn't work out how to shut the MC media window.

This is now a really excellent solution. Thank you again!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 17, 2015, 04:05:05 pm
Thanks !

So can I remove this part of the script do you think?

Quote
- Pressing "0" will check if the external player is running and if not run it again (in case it closes / crashes)
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 18, 2015, 12:23:52 am
....also the team over at Cyberlink have been pretty good and after a bit of back and forward they are now looking at how to support MVC in MKV.  No timeline or promises yet but this would give a one player option for both 3D BD and 3D BD rips in MKV.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 18, 2015, 04:33:42 am
Kudos to Cyberlink if they make that happen. That (plus your script) would basically mean PDVD becoming THE default player for most JRiver users.

As you say, ideally if the Dev team can create an option to toggle on/off whether jriver reacts to remote control commands that would be ideal too.

As regards leaving the "0" button functionality, I think you can remove it. But it would be great to have that version still available in case.

Excellent job sir!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 30, 2015, 03:58:08 pm
Hi Nathan,

Have had a chance to play around properly with everything with interesting results.

I think we should switch to using the classic mode of PowerDVD if possible, as it just seems more stable: on one of my set ups PDVDLP quits to a main menu randomly,
Furthermore the classic player offers much more control/options, i.e.:
- can access de-interlacing options
- audio sync delay options also available

I've tried modifying the script changing the switch from "PowerDVDCinema" to "PowerDVD" to invoke the classic mode, but this doesn't seem to work as it opens other windows saying that PowerDVD is already running.

Would you be able to take a look?

Thanks again!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 30, 2015, 05:20:59 pm
Sure - I'll have a look but probably can't get to it till the end of the week though from memory there was some issue with Classic vs Cinema mode
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 31, 2015, 04:15:34 am
Look forward to seeing what you come up with.

I also tried opening the powerdvd.exe file directly but it would lose focus to another window opening and telling me powerdvd was already open.

Thanks again.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 31, 2015, 04:19:20 am
I'll probably add it as another player option, so you could have PDVD and PDVDC for example.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 31, 2015, 09:23:12 am
yep - sounds a smart solution. As ever!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 02, 2015, 08:25:49 pm
Try this one, where:
PDVD will launch PDVD in "Classic Mode" and
PDVDC will launch PDVD in "Cinema Mode" (this is what we had before)

I had to make a slight change to the path the was being passed for BD structures as the one I had originally worked in Cinema Mode but not Classic Mode (go figure!)

I still don't have a better soln to stop MC from reacting to Key Presses so that existing put TheaterView into the "Exit" screen is still there but if you use this script from STD View this does not work and MC will then try to play another video when you press stop.  If that is a problem I will need to think of another way.

Edit - Removed Old Version
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on September 04, 2015, 09:36:35 am
Many thanks Nathan. Will test over the weekend. Can't wait.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on September 05, 2015, 01:13:11 pm
Hi Nathan,
Doesn't quite work yet:
- opens PowerDVD but a small window comes up saying: "Cyberlink PowerDVD is currently running. You must first close it before proceeding." (see attached image)
- then over the top of it PowerDVD (classic) opens and plays the movie correctly
- HOWEVER, none of the rc command trapping you built works and the STOP button doesn't work
- I suspect that this is because the other window (small error window described above) is the one that has the focus

any thoughts?

thanks again!
TW
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 05, 2015, 07:01:59 pm
I don't see this on my PC and it is not from my script.  Couple of things to look at:
- Could it be that you have some form of PDVD or it's running in the tray?
- How are you Playing your media? If it a physical disk or ISO that is being mounted is Windows Autoplay also trying to run PDVD at the same time?
- Does it happen when using PDVDC as well as PDVD as the player option?

Thanks
Nathan
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on September 06, 2015, 03:56:36 am
Hmmm. None of the above!

- Not running in the tray, but from Task Manager I can see that there is also a PowerDVD process running in the background, but this closes when the main program is closed, so I guess this is a normal process.
- Playing BDMV folders over a network
- No, PDVDC plays fine (but still quits randomly to the Movie Library screen that just shows all other films in the directory above - weird)

- I'm running Windows 10...so wondering if that's the issue?

This happens on all 3 installations (running the latest PDVD update), even after rebooting.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 06, 2015, 07:29:37 am
mmmm I'll have a another look tomorrow - I'm also running Win10 on the HTPC playing BDMV folders over the network as well.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on September 06, 2015, 01:39:20 pm
Have tried again, and the new version of the script seems to cause no end of problems for PDVDCinema too.
Just copying it over and leaving the settings exactly the same other than changing to PDVDC, invariably crashes PDVD.

Did you change anything else other than add the new PDVD section?

Also, do you still have the original version that closed MC before opening PDVD? I'd like to try that on one of my set ups to see how that works.

Thanks again!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 06, 2015, 03:40:08 pm
I don't know why PDVD would be crashing but I'll check how it works on mine.  Are you using the script or the compiled version?  

Edit - the only other change I made was instead of passing "....\BDName\" I am now passing "....\BDName" as PDVD Classic did not like playing BD's with the trailing "\"


Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 06, 2015, 08:56:15 pm
OK -I updated to MC21, the latest version of AHK, and the recent PDVD Patch and found my script was trying to run PDVD twice as well.  No idea why it was fine before.... (or it could have been that I used a 64 bit version of the complier last time by mistake)!....  :-[  Anyway, try this one out.

Also the Commands are now:
"PDVDClassic" and
"PDVDCinema"

to keep the difference between the two modes more obvious

Thanks
Nathan

Edit - Removed Old Version
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on September 07, 2015, 05:35:02 pm
Ok! The PDVD Classic works like a charm - thank you! For some reason I can't get it to remember deinterlace settings but I'll figure that out (nothing to do with your script).

Will try PDVDCinema on my other rig (replacing the old script) and see what happens. I'm relative certain that it was also trying to open pDVDC twice too so will be interesting to see how it fares.

Actually, I may well try this where PDVDC used to crap out as maybe this was due to it being called twice too.

Either way - this rocks - thank you hugely.

Will revert with my findings ASAP.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 07, 2015, 06:10:24 pm
Xlnt. I did not get the time to test all combinations so it would be great if you can check the different combos.  FYI - I think the issue with running twice came when I added the code to let you re-launch PDVD by pressing the "0" button when you had it crashing. 
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on September 09, 2015, 03:36:09 am
OK, so on my other rig when I switch to PDVDClassic it didn't switch to full screen automatically (the windows taskbar was showing), necessitating a press of F5 (from memory) to go full screen.

Anyway I switched back to PDVDCinema and all was good. Much quicker startup too given that it wasn't being triggered twice.

Final test (hopefully this eve), will be to see if PDVDCinema on my main rig is more stable now that it isn't being called twice (hoping that was the cause of the instability given that no one else seems to have this sort of prob with PDVD). Either way it's great having the flexibility to choose either, as the classic version has a better ability to be tweaked in terms of audio/video sync and image processing.

Otherwise this is an absolutely excellent solution for watching Blu-Rays with menus - just terrific to be able to easily watch all the special features again when I needed.

A huge thank you.

Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 09, 2015, 04:29:43 am
Thanks for the report.  I too see that Classic does not jump to Full Screen but in older versions of PDVD there was a check box to do this on playback.  In my quick look I could not find it however or the command line parameter (both of which would be neater than pushing a F5 keystroke just for PDVD Classic but I could do this if needed).

If it all looks OK - I'll update the OP with the latest build and instructions. 
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on September 10, 2015, 03:13:31 am
Unfortunately it does look as though an F5 keystroke might be the only way to do this (I couldn't find anything on the web as regards command lines to do this). You might want to check in with your contact at cyber link to see if they're going to reimplement that checkbox.

Otherwise this is now a very solid solution. Many thanks again.

Any word from the jriver devs about resolving the command eating that MC does?
Also, any word from cyberlink about implementing 3D MKV playback?
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 10, 2015, 04:44:46 am
Thanks for the testing.  I've bumped the requests with both JR and Cyberlink and will let you know.  I'll also have a play with Fullscreen in Classic Mode and see what I can figure out.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 10, 2015, 05:07:40 am
I've a Q.  Most of the time I want to play media in MC.  Occasionally I may want to play it in a 3rd party player live PDVD to get access to the BD Menus to get access to extras, eps, alt endings etc.  

At present in MC we can specify by file type to play in MC "OR" use an external player, but it is one or the other.

Do you think it would be worth asking for JR to add an option to enable a choice so when playing media in MC a Diag box then asks if you want to play the item in MC or the External Player?

I'm thinking something like attached.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on September 10, 2015, 08:21:38 am
Ah, now that is an interesting question. Whilst I agree that the extra menu would be in some ways a neat solution, it does make the experience a little more clunky.

One way might be to have your suggestion in the bar above once the movie is selected (in theatreview). Currently when you select a film from your library by clicking on the image, it takes you to another screen which displays a bigger version of the movie art and the movie description text. At the top of the screen there are several options, I.e. "Back", "Watch", "Tag" etc. How about inserting another option next to "Watch" called "Watch (external player)"? Just a thought as it wouldn't change the flow and keep it a "family friendly" experience.

My current solution is as follows: I've set up a new option on the main screen under "Video". Next to the "Movies" category I have created a new one called "PowerDVD". For every blu-ray in my collection I have created a "particle", and each particle I have tagged as an "OGV" Ogg video (as I have no OGV and never will). Under file types I have designated these to be played on PDVD via your script. The PowerDVD menu item I created only shows the OGV particles, so selecting any movie in the PowerDVD section will automatically your script. Bit of a pain to set up but once done it actually provides quite a smooth solution.

Hope that makes sense.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: Matt on September 10, 2015, 09:47:21 am
Next build:
NEW: For playback you can select "Ask at playback time" and MC will ask if you want to play internally or launch a program.

Yippee, right ;D
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on September 10, 2015, 10:38:07 am
Nice one Matt.
That will make my life a heck of a lot easier.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 10, 2015, 03:49:28 pm
:) to both!

Torq - I too was using the workaround of swapping "FileTypes" on a file for different behaviours but did not consider two DB entries. 

Looking forward to seeing how Matt's addition will work!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 10, 2015, 04:11:27 pm
Wow that was quick - Just posted the following in the Build Thread in case anyone missed it:

Thanks Matt works, including with "Play All" (eg for example if you select a bunch of tracks --> Play All, MC will only ask the once which is perfect!).  The Default of being "Play inside Media Center" is also good.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 10, 2015, 08:02:44 pm
Just think out loud on how best to use the new "Ask at Playback Time" feature. 
- Most of the time I just want to Play in MC. 
- The only time I may want to use an external player is when I need BD Menus or for 3D. 
- I mostly rip all my content in native formats but occasional use Discs

Looking at file types in MC and the Playback Method, I'm thinking:
- 3D (BDMV3D / MK3D) = always External Player
- MPLS (BD Playlists and Particles) = always MC (as I've already picked out my track so no need for Menus)
- BDMV = Ask at Playback Time (as Mostly MC, Sometimes External Players (for menus))

Of course in MC BDMV and MPLS are mixed as one Filetype, so my options for these would be to
1) enable "Ask at Playback Time" and see if the xtra step is OK (as Torq discussed). 
2) make a little script that can toggle the playback modes (RC Command or Theater View Pop Up Menu) between Ask, External, Automatic.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 11, 2015, 12:52:58 am
Here is another version of the script for testing. 

I found a couple of things:
- Sometime PDVD Classic was opening Full Screen but Sometimes not
- Toggling Full Screen is the "Z" key, F5 toggles Maximise
- On closing the PDVD Window there were still PDVD processes running (could have been causing some of the issues when re-running PDVD)

Additions to this version of the script are:
- Pressing "0" will toggle PDVD (both classic and cinema) Full Screen if it is running (or as before will re-run PDVD if it is not)
- On "Stop" it will also track down and close any PowerDVD Process if it was PDVD that the script ran.

As usual - let me know how it goes.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: StuckMojo on September 14, 2015, 06:33:01 am
Hi,

is there a way to get this working on a Client/Server System.
PowerDVD opens but with Error message, that it can't play this specific filetype. (MKV and 3D BD Iso)
Is this a location problem, because PowerDVD normally can play Mkv, 3D BD Iso's etc...
If i select this files directly with PowerDVD -> No Problem
Would be nice i f i could use this script on my Client machine.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 15, 2015, 05:56:18 am
Hi - I too use Client / Server setup (all mapped drives use UNC format) and works with BD Structures and MKV though I've not tested ISO (but will do).  Can you tell me:
- what string are you using in MC eg "[Filename],PDVDClassic]"
- example of the "filename" that is shown in MC for the MKV and ISO , eg \\MAIN\Media\Video\Test\Name.mkv

Thanks
Nathan
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: StuckMojo on September 26, 2015, 11:31:27 am
Sorry for the late response. Didn't have much time until now.

I tested it exactly with the same settings as you suggested:

-string using in MC eg "[Filename],PDVDClassic]"
-example "filename" that is shown in MC for the ISO:
\\SERVER\Filme_2\Filme_2\HD-Filme   [3D BluRay]\Edge of Tomorrow   [Uncut - 3D BluRay]\Edge of Tomorrow.iso

And i'm using the last script you posted.
Everytime PowerDVD 15 starts fine, but comes with the error message that this filetype is not supported by PowerDVD???

When i try to play exactly the same file directly with powerdvd, everything works just fine.
And i also tried it with MKV ->same error message.

One more question: (If i can get this working)
-Is there a problem when i change the filetype of this mkv's only in mc to mk3d? Would be great.
Only to get this 3d mkv's starting as standard with powerdvd?

Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 27, 2015, 02:46:43 am
Mmmm I'll have a better look tommorow (nothing easy to see), but the PC with PDVD on it is currently occupied be the family watching content (no sense of priority!!) :)

Also the command should be: "[Filename],PDVDClassic" without the extra "]" but I presume that was a type by both of us.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: StuckMojo on September 28, 2015, 12:30:30 pm
Yes, that's true.  :D It was a 'copy & paste' error, but in mc it is right without this 'extra' "]".

Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 28, 2015, 04:41:59 pm
mmmm I may have to close MC when running ISO.  So I "think" what is happening is if MC is running when PDVD mounts the ISO, MC scans the new mounted disc and for some reason breaks PDVD from then playing it.  When MC is not running, PDVD plas the ISO just fine.

Can you do a test for me with a simple batch file attached (you may need to edit it if I have your paths wrong), make sure PDVD is not running then run the batch file:
1) with MC running
2) without MC running

and let me know what happens on your system
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: StuckMojo on September 29, 2015, 05:40:17 am
First of all, a BIG Thank YOU.

I will try this batch file when i come home from work.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: StuckMojo on September 29, 2015, 10:37:19 am
Ok, i tested your batch file. (I had to edit the path to PowerDVD 15).
Then started the batch file everytime as Administrator. Only for Info: On first start windows defender blocked the batch file.

1. Test without mc 20 running:
No problem. PowerDVD started the movie like it should be. The only thing was that PowerDVD seemed to freeze for about a minute and then it mounted the iso and started playing the movie.

2. Test with mc 20 running in the background:
Same behaviour as before without mc running, BUT when i stopped the movie, mc comes on the top of the desktop and was freezing until i switched to PowerDVD (with Task Manager) again and closed it.
After that freezing stopped and an error message from mc 20 appeared: Something went wrong with playback. Error (hr=0x80004005)

Hope that helps a littlebit...
And thanks for taking your time to solve this problem.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on September 30, 2015, 05:05:31 am
I think the only way around this is to close MC during playback and start it again when finished.  I'll add an option to the script so you can specify to close MC.  It may take a couple of days to push out an update
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on October 05, 2015, 05:07:25 am
Sorry - did not quite get it finished! 
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on October 09, 2015, 01:16:55 am
Ok, try this one.  It has a new option where you can specify for MC to be Off/Closed during 3rd party playback (and it will then be reopened). 

Argument="[Filename],PDVDClassic,N3D,MCOff" : The N3D and MCOff are both optional and can be in any order

Thanks
Nathan
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on October 09, 2015, 01:21:50 am
Matt this is another example where it would be good to have a MCC command that left MC running (to process the Audio) but not respond to:
- MCE Commands
- Scanning Media
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: StuckMojo on October 15, 2015, 04:49:18 pm
Hi,

i tried it again with this Argument="[Filename],PDVDClassic,MCOff" and your latest upload.

But with the same error message from powerdvd: This filetype is not supported.....
Tested with mkv & iso.

I don't understand why powerdvd plays this files with no problems, if i start them from powerdvd itself, but starts with this message when
i try to start them through mc 20???
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on October 15, 2015, 06:42:17 pm
What OS are you running (I'm on Win10)
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: StuckMojo on October 16, 2015, 10:31:42 am
I'm using Win 8.1 Pro x64
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on October 28, 2015, 03:31:11 am
Hi Nathan,

Can you post the previous version again please, as the latest version doesn't work for me for some reason. The stop button doesn't work!

I've been away recently, but will take a look and see what's going on over the weekend.
Peculiar behaviour. Are you using the latest compiler and version of PDVD?

Cheers
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on October 29, 2015, 03:35:21 am
I too have been away but can have a better look on the weekend.  Do you know what the date was of the version that last worked for you?
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: bhampster on December 04, 2015, 04:18:01 am
I see this thread has been dormant for a while.

I am trying to set this up but have been having a hard time.

In my case I have a Nvidia card with Stereoscopic Player and most of the trouble I'm having comes from the PC trying to manage the 3D display mode turning on and off. Also Stereoscopic player doesn't exit but maybe that's my fault (I may need to edit the script)

I have 1000 of my Blus currently in JRiver and all of my music but there is a box of 110 3D movies on the shelf where my wife wants to "organize" and I would much rather get them somehow working in JRiver but not if it makes the existing system buggy.

I don't know weather to keep trying to make this work or try to find a compact elegant storage solutions for the 3D discs and just use my BDP for those. I guess the best answer is add them to the server because the server does everything BUT this.


-Brian
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on December 04, 2015, 05:49:41 am
Hi Brian,
Happy to look at the script again but I'm away for a few days.  Are you trying to play the 3D BD from the HDD or from Disk, and what bits are not working?  I don't have a full copy of SP and my testing was with the Demo version that has probably expired but it was working when I tested.
Thanks
Nathan
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: bhampster on December 04, 2015, 11:59:52 am
Shorter version below.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: bhampster on December 04, 2015, 03:06:14 pm
I think everything works perfectly now.

Thanks Again... I'm truly enjoying the enhanced capability. I can now put my 3D movies onto my servers and play them back in either the default 2D or with 3D via external player. It's perfect.

In my case I use an Nvidia GPU (GTX750) and I can re-state that to make the given script work you need both Nvidia 3DPlay activated and Stereoscopic Player installed. I didn't need to make any modifications to the given script or instructions.


-Brian

Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on December 07, 2015, 05:01:44 am
Thanks Brian for the feedback, and happy it is working  ;D
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: stevenjw on January 12, 2016, 10:05:43 pm
Next build:
NEW: For playback you can select "Ask at playback time" and MC will ask if you want to play internally or launch a program.

Yippee, right ;D

I like this and would use it to decide if I want to watch 3D .iso with MC in 2D or in 3D launching an external program.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on January 12, 2016, 11:29:26 pm
Thanks to the work by Hendrik and Madshi this thread may not be needed much longer for 3D playback - more here (http://yabb.jriver.com/interact/index.php?topic=102539.0)!!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: stevenjw on January 13, 2016, 12:46:50 am
That's great, but I just bought PowerDVD 15 Ultra today!!!   >:(   I just installed it and set up your scripting and MC for 3D and it works great.  No issues at all, so I will continue to use it for 3D for now.  Most of my 3Ds are stored as .iso which work fine with Virtual Clone Drive running or on BDs which work with AnyDVD HD running.  Your work allows MC21 to call PDVD for 3D and I'm very happy with the "Ask" option too since I can opt to play them in 2D within MC if I want.

About the only thing I could use is for an option in the script to switch desktop settings before to 4K and back after like MC does for 4K mp4 files.  It's no big deal since MC works.  It's just that playback of 4K can be problematic if it doesn't match the options provided in MC for displaying.  I'm hoping that PDVD does a better job, but it looks like it's tied to the desktop settings.  :(

I'll keep playing around for now and follow the mkv 3D support thread too.  Hopefully, it's not just for mkv 3D rips, but full 3D support.  I'm still on Windows 7, but will upgrade to 10 soon.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on January 14, 2016, 05:18:57 pm
FYI - the script has the ability to change Display settings (it currently records what is the display setting when launched and returns it to those settings when finished).  A previous version allowed you to you to manually change it as well (using RC buttons like 2=23hz, 5=50hz, 6=60hz) but I took this out.  It would be easy enough for me to either add something like this back in such as
- a config file that you could edit to customise what the default settings would be on startup of the script or
- what a button press would set
- or if the title of the file has something in it like "Play4K" that I could map to a config

.... but it would depend on what you are trying to do exactly.

Thanks
Nathan
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: theoctavist on February 29, 2016, 05:03:05 pm
nathan im your biggest fan brother,  use all your scripts (currently re-installing MCUtils on my new laptop, and im sure ill have problems) thank you for ALL the work you do.  it is greatly appreciated. do you have a paypal?
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: JimH on February 29, 2016, 05:32:44 pm
You could send him a goat.  I have his address.
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on February 29, 2016, 08:18:31 pm
Thanks for the offer and sentiments but I'm all good (though happy you find the scripts useful!!!).  If you must send a Goat, please deliver it to:
125 N First St
Minneapolis, MN 55401

They are used to handling livestock  8)
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on August 28, 2016, 10:37:26 am
Nathan - just updating your script to include MC22 and PDVD16.

However, it seems as though PDVD16 has changed the button mappings and brings up the settings window when you press the "Menu" button on the remote (as opposed to the pop-up menu which is keyboard command "m").

Is there a way to trap the remote DVD Menu button and map accordingly?
I've search the web and can't find anything resembling a "Media_DVDMenu" media key that I could use - any suggestions, maestro?!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: jmone on August 28, 2016, 09:54:04 pm
Nope there is no easy "Media_DVDMenu" Media Key to use like with the more common ones.  You have to use either system hooks to find it out (see https://autohotkey.com/boards/viewtopic.php?t=2739 ) or change the registry to what the key does (but it will impact all devices - http://www.thegreenbutton.tv/forums/viewtopic.php?f=9&t=1523&sid=075715f5c9ebb2010149e337970896c6&start=20 )

I did at one stage have some HID script to look for these Button Presses but I won't have time to dig around on it for a bit!
Title: Re: Integrating 3rd Party Players in MC (eg for Full Menu and 3D Bluray Playback)
Post by: TorqW on September 03, 2016, 06:30:31 am
Thanks as ever Nathan - all and any help always appreciated!