INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Has anyone managed to get JRiver to work as an external player with Kodi?  (Read 3688 times)

marameox

  • Recent member
  • *
  • Posts: 8

I am an old Kodi user and recently I have been using JRiver for his dsp and madvdr and I was able to do the digital correction of the room.

But I want to keep Kodi as an interface since to my taste it is more beautiful and functional.

With Kodi I can use all external players, such as Wmp, Vlc etc. but not JRiver.

When Kodi launches an external player, it waits for the player to finish its work and be closed to return to its Kodi interface.

This does not happen with JRiver since once started after 5/10 seconds it returns to the Kodi interface and JRiver continues to run the file in the background.

I have already manipulated the Kodi playercorefactory file several times but I can't solve.

I use to start JRiver via command line with mc27.exe

Can someone help me?
Logged

justsomeguy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 525
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #1 on: December 26, 2020, 04:41:59 am »

https://yabb.jriver.com/interact/index.php/topic,65984.0.html

I put this together years ago. I have an install of kodi still on my machine (although I don't use it) and did a quick test. I was able to get kodi to launch videos using MC as the player. Give it a shot it may work for you. There may be a better way of doing this now days that I'm not aware of though.

In the MCPlayCloseConfig.txt file make sure to to change mcVersion to 27. You'll maybe need to set other things in that file like username and password for your MC server (This is what you set in MC Tools>Options>Media Network).

Here is the contents of the playercorefactory.xml I used.
Code: [Select]
<playercorefactory>
  <players>
    <player name="JRiverMC" type="ExternalPlayer" audio="false" video="true">
      <filename>D:\MCPlayClose\MCPlayClose.exe</filename>
      <args>"{1}" 3 fullscreen</args>
      <hidexbmc>false</hidexbmc>
      <hideconsole>false</hideconsole>
      <warpcursor>none</warpcursor>
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="*" filename="*.*" player="JRiverMC"/>
  </rules>
 </playercorefactory>

The 3 in the <args> is the zone you want to use in MC. I don't remember why but for some reason I padded that number by 1, I think because MC uses 0 as the first zone and I was trying it make it more "user friendly" I guess. So in MC if you hover your mouse over the zone name you want to use it will popup a dialog showing that zones number. If it says zone index 2 then use 3 for the zone number.
Logged

marameox

  • Recent member
  • *
  • Posts: 8
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #2 on: December 26, 2020, 05:33:30 pm »

Thank you for the directions but I was unable to resolve.
If I use the normal procedure and start command line with mc27.exe the video starts normally (always with the problem that kodi returns after a few seconds in the foreground).

The video never starts with the mcplayclose.exe file.
I also tried directly from the command prompt and I tried all the zones: 0-1-2-3 but the video never starts and the debug file is the following:

(I put XXXX to hide my passwords)

27/12/2020 00:29:57 mcIP=127.0.0.1
27/12/2020 00:29:57 mcPort=52199
27/12/2020 00:29:57 mcUserName=XXXX
27/12/2020 00:29:57 mcPassword=XXXX
27/12/2020 00:29:57 mcAccessKey=
27/12/2020 00:29:57 mcLoadDelay=5000
27/12/2020 00:29:57 mcVersion=27
Arguments:
test.mp4
2

27/12/2020 00:29:58 : Waiting for MC to open
27/12/2020 00:29:58 : MC opened
27/12/2020 00:30:03 : /PlayReplace test.mp4|Zone=1&ZoneType=Index
27/12/2020 00:30:03 : Playback - PLAYING
27/12/2020 00:30:04 : Set zone to: 2
27/12/2020 00:30:04 : Turned repeat off
27/12/2020 00:30:04 : Waiting for MC server to load
27/12/2020 00:30:04 : Connected to MC server
27/12/2020 00:30:04 : Token: XXXX
27/12/2020 00:30:04 : http://127.0.0.1:52199/MCWS/v1/Playback/Info?Zone=1&ZoneType=Index&Token=XXXX
27/12/2020 00:30:04 : <Item Name="ZoneID">10000</Item>
27/12/2020 00:30:04 : <Item Name="ZoneName">[TV]TV SALA</Item>
27/12/2020 00:30:04 : <Item Name="State">0</Item>
27/12/2020 00:30:04 : xmlFieldNum: 2
27/12/2020 00:30:04 : Now monitoring playback state: Playing
27/12/2020 00:30:05 : Playback - STOPPED
27/12/2020 00:30:06 : MC closed
Logged

justsomeguy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 525
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #3 on: December 26, 2020, 08:17:02 pm »

First thing I see in the log is no path to your test.mp4 file. MCPlayClose doesn't look for the file in its own directory, it simply passes the path you provide it on to MC.
Try:
mcplayclose.exe  "D:\My Videos\test.mp4" 2
or whatever the actual path to your test video is.

Something else that could cause an issue I just realized from trying it just now. If you use ZoneSwitch in MC to force certain file types to play in specific zones it appears to ignore the zone specified by the command line. So you could possibly send it zone 2 in the command line but it may actually play in a different zone. This is a problem because MCPlayClose monitors the zone you give it for playback and if it's actually playing in a different zone then the playback will appear stopped and it will immediately close MC.
This seems like it might be a bug or unintended behavior in MC itself. If you pass MC a zone by command line it seems like it should take precedent over ZoneSwitch but it doesn't.
Logged

marameox

  • Recent member
  • *
  • Posts: 8
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #4 on: December 27, 2020, 04:20:48 am »

After numerous tests, I still haven't completely solved it, but I'm at a good point.
I have gotten to the point that I am using a batch file for starting mcplayclose only I have this problem with the names of the files to start:

WORKING:
c:\MCCLOSE\mcplayclose.exe  "c:\MCCLOSE\3 Days To Kill.mkv" 1 fullscreen   

DON'T WORKING:
c:\MCCLOSE\mcplayclose.exe  "c:\MCCLOSE\3 Days To Kill.mkv (2014)" 1 fullscreen

In short, filenames with parentheses do not start ...
With MC27.EXE this problem is not there ...

This is debugging when it doesn't work (since I added (1) to the filename for testing)

27/12/2020 11:14:29 mcIP=127.0.0.1
27/12/2020 11:14:29 mcPort=52199
27/12/2020 11:14:29 mcUserName=xxxx
27/12/2020 11:14:29 mcPassword=xxxx
27/12/2020 11:14:29 mcAccessKey=
27/12/2020 11:14:29 mcLoadDelay=5000
27/12/2020 11:14:29 mcVersion=27
Arguments:
c:\MCCLOSE\3 Days To Kill(1).mkv
1
fullscreen

27/12/2020 11:14:31 : Waiting for MC to open
27/12/2020 11:14:31 : MC opened
27/12/2020 11:14:36 : /PlayReplace c:\MCCLOSE\3 Days To Kill(1).mkv|Zone=0&ZoneType=Index
27/12/2020 11:14:36 : Playback - PLAYING
27/12/2020 11:15:07 : Set zone to: 1
27/12/2020 11:15:07 : Turned repeat off
27/12/2020 11:15:09 : Waiting for MC server to load
27/12/2020 11:15:09 : Waiting for MC server to load
27/12/2020 11:15:09 : Connected to MC server
27/12/2020 11:15:09 : Token:
27/12/2020 11:15:09 : http://127.0.0.1:52199/MCWS/v1/Playback/Info?Zone=0&ZoneType=Index&Token=
27/12/2020 11:15:09 : <Item Name="ZoneID">0</Item>
27/12/2020 11:15:09 : <Item Name="State">0</Item>
27/12/2020 11:15:09 : xmlFieldNum: 1
27/12/2020 11:15:09 : Now monitoring playback state: Playing
27/12/2020 11:15:10 : Playback - STOPPED
27/12/2020 11:15:11 : MC closed


This is the debugging of when it works (I renamed the file and I removed (1))

27/12/2020 11:17:58 mcIP=127.0.0.1
27/12/2020 11:17:58 mcPort=52199
27/12/2020 11:17:58 mcUserName=xxx
27/12/2020 11:17:58 mcPassword=xxxx
27/12/2020 11:17:58 mcAccessKey=
27/12/2020 11:17:58 mcLoadDelay=5000
27/12/2020 11:17:58 mcVersion=27
Arguments:
c:\MCCLOSE\3 Days To Kill.mkv
1
fullscreen

27/12/2020 11:17:59 : Waiting for MC to open
27/12/2020 11:17:59 : MC opened
27/12/2020 11:18:04 : /PlayReplace c:\MCCLOSE\3 Days To Kill.mkv|Zone=0&ZoneType=Index
27/12/2020 11:18:04 : Playback - PLAYING
27/12/2020 11:18:04 : Set zone to: 1
27/12/2020 11:18:04 : Turned repeat off
27/12/2020 11:18:06 : Waiting for MC server to load
27/12/2020 11:18:07 : Waiting for MC server to load
27/12/2020 11:18:07 : Connected to MC server
27/12/2020 11:18:07 : Token:
27/12/2020 11:18:07 : http://127.0.0.1:52199/MCWS/v1/Playback/Info?Zone=0&ZoneType=Index&Token=
27/12/2020 11:18:07 : <Item Name="ZoneID">0</Item>
27/12/2020 11:18:07 : <Item Name="State">2</Item>
27/12/2020 11:18:07 : xmlFieldNum: 1
27/12/2020 11:18:07 : Now monitoring playback state: Playing
27/12/2020 11:18:42 : Playback - STOPPED
27/12/2020 11:18:43 : MC closed


Logged

justsomeguy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 525
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #5 on: December 27, 2020, 06:23:02 am »

Dug up the old code again and made a quick change. Should fix that issue.
"ver .15.zip" https://drive.google.com/folderview?id=0B8STIzDFNsyoTjU3UUNkZWlwYlk&usp=sharing
Logged

David Sydney

  • Galactic Citizen
  • ****
  • Posts: 347
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #6 on: December 27, 2020, 10:11:20 pm »

Why can't you just leave the media library as it is on your server, then run Kodi and navigate to the same set of folders within kodi. Been ages since I used it but I am sure Kodi can build it's own library by watching the same set of folders. I effectly have the sames principle with using JRiver, iTunes (until my stored value runs out) all pointing to the same file/folder tree and they each run independently. If you add an iTunes track it eventually appears in JRiver if you have the auto-import settings on?
Logged
Dave
------
Linux Manjaro 23 / Windows 10 Pro | i7 14700K Gigabyte Z790 UD AX | JRMark 10253 | Realtek Integrated HDAudio SPDIF | PC Sound - Yamaha TSS-15 5.1 DAC (will be sad when capacitors die!)| Real Sound - DLNA Network to Yamaha RX-V777 Receiver Living Room + Deck | DLNA to Paired Yamaha WiFi WX-010 MusicCast Speakers to Outside Areas

marameox

  • Recent member
  • *
  • Posts: 8
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #7 on: December 28, 2020, 03:50:09 am »

Dug up the old code again and made a quick change. Should fix that issue.
"ver .15.zip" https://drive.google.com/folderview?id=0B8STIzDFNsyoTjU3UUNkZWlwYlk&usp=sharing

I tried but even with these version 15 there is the same problem:

WORKING:
c:\MCCLOSE\mcplayclose.exe  "c:\MCCLOSE\3 Days To Kill.mkv" 1 fullscreen   

WORKING:
c:\MCCLOSE\mcplayclose.exe  "c:\MCCLOSE\3 Days To Kill 2014.mkv" 1 fullscreen

DON'T WORKING:
c:\MCCLOSE\mcplayclose.exe  "c:\MCCLOSE\3 Days To Kill.mkv (2014)" 1 fullscreen
Logged

marameox

  • Recent member
  • *
  • Posts: 8
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #8 on: December 28, 2020, 03:53:22 am »

Why can't you just leave the media library as it is on you server, then run Kodi and navigate to the same set of folders within kodi. Been ages since I used it but I am sure Kodi can build it's own library by watching the same set of folders. I effectly have the sames principle with using JRiver, iTunes (until my stored value runs out) all pointing to the same file/folder tree and they each run independently. If you add an iTunes track it eventually appears in JRiver if you have the auto-import settings on?


Because I would like to use JRiver as a player and use Kodi only as an interface.
In fact, Kodi for example does not allow you to use Madvr while playing videos.

My media files are all on a Nas and I have no problem sharing them with Kodi, JRiver etc.
Logged

justsomeguy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 525
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #9 on: December 28, 2020, 05:49:02 am »

Sorry I made a mistake and uploaded the wrong file. Download ver .15.zip again, it has the correct file in it now.
https://drive.google.com/folderview?id=0B8STIzDFNsyoTjU3UUNkZWlwYlk&usp=sharing
Logged

marameox

  • Recent member
  • *
  • Posts: 8
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #10 on: December 28, 2020, 09:06:57 am »

UHAOO FANTASIC!!   ;D
excellent work!!!

Everything perfect now !!!

Thank you very much!!!!
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71212
  • where the buffalo roam
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #11 on: December 28, 2020, 10:39:28 am »

Thanks, justsomeguy.
Logged

ryudoadema

  • Recent member
  • *
  • Posts: 5
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #12 on: January 07, 2021, 08:04:17 pm »

Thank you guys for working this out! I gave every set of configs used online a shot and modified them every way I could think of to get Kodi to use MC as an external player about 6 months ago and finally gave up. I may be back here with a question or two when I give it another go and fail...
Logged

SpedInFargo

  • Recent member
  • *
  • Posts: 34
Re: Has anyone managed to get JRiver to work as an external player with Kodi?
« Reply #13 on: February 17, 2021, 11:04:53 am »

Just popping in to say that I'm working on this as well and I'm seeing encouraging results!  Justsomeguy, I saw a post in one of your threads wondering if anyone was still using the tool - so... "yes" to that.

Question:  I'm trying to toss in Plex to the mix as well... so Plex plug-in for Kodi launching external player (MCPlayClose.exe to launch JRiver).  This seems to work very well when I just use Kodi proper, but when launched from the Plex plug-in it looks like it is trying to use a Plex URL for the filename:

Code: [Select]
2/17/2021 11:00:00 AM mcIP=127.0.0.1
2/17/2021 11:00:00 AM mcPort=52199
2/17/2021 11:00:00 AM mcUserName=
2/17/2021 11:00:00 AM mcPassword=
2/17/2021 11:00:00 AM mcAccessKey=abcdefg
2/17/2021 11:00:00 AM mcLoadDelay=5000
2/17/2021 11:00:00 AM mcVersion=27
Arguments:
https://192-168-55-55.9998887777666.plex.direct:32400/library/parts/900000/12344567889/file.mkv?X-Plex-Token=gibberish&X-Plex-Client-Profile-Name=Chrome
fullscreen

2/17/2021 11:00:00 AM : Path doesn't exits - https://192-168-55-55.9998887777666.plex.direct:32400/library/parts/900000/12344567889/file.mkv?X-Plex-Token=gibberish&X-Plex-Client-Profile-Name=Chrome

Any clues to what setting I could use to have it pass the UNC name of my file instead?

Note:  I'm using the official Plex for Kodi add-on...  just now am seeing there is something called "PlexKodiConnect" that I maybe should explore as well...


EDIT:  I have this working quite well.  I'm anxious to hook everything up to my projector and start digging into MadVR.

I switched to PlexKodiConnect which allowed me to use their "Direct Paths" functionality.  Plex is running on my Synology and will server up links to files like this:  /volume1/Media/Movies/UHD/SomeFile.mkv.

However, to play those files in JRiver I need to be able to do this:  \\mynas\Media\Movies\UHD\SomeFile.mkv.  I couldn't get that to work.

In PlexKodiConnect, though, I can do a replace.  If I map a Windows drive (s: to \\mynas\Media) I can then go into their settings and do a replace of "/volume1/Media" to "s:" and I then get what I need.  When I set up MCPlayClose as my external player, it then gets this as the argument for the filename:  s:\Movies\UHD\MyMovie.mkv. 

JRiver launches and plays the movie - when I hit the Stop button, JRiver is killed and control goes back to Kodi.  Exactly what I wanted!

Pretty good stuff...

Logged

justsomeguy

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 525

Sorry I'm kicking this back up to the top but I've gotten a few requests for the file I posted earlier in this thread. Apparently the old link isn't working anymore so here's a new one that should work.

https://drive.google.com/drive/folders/0B8STIzDFNsyoTjU3UUNkZWlwYlk?resourcekey=0-yQ6xEYttVgAHuEyqEr-OOg&usp=sharing
Logged
Pages: [1]   Go Up