1 (edited by sv0911 10-12-2018 11:44:52)

Topic: MacOS - Using Kodi with mpv as external player in combination with SVP

"MacOS - Using Kodi with mpv as external player in combination with SVP4.. Possible?"

Hi Friends,

i try to figure out how to get SVP4 working together with mpv when i use Kodi with mpv as external player.
Using mpv as external player in Kodi works without any problems. I choose in the movie library a video and
mpv will play the video.. Just fine…

Using mpv alone with SVP4 also everything is working just fine and perfect..

When i try to start a video from the Kodi-Movie-Library (with mpv as external player..) while SVP4 is active then
mpv starting the video,.. runs only for maybe 2 or 3 seconds and crashes….

My question:
Is someone here using Kodi together with mpv as external player in combination with SVP4?
How to fix it? Or is it impossible?

Big thanks for any help!!!

Btw... I already asked in Kodi-Forum but no one was able to give an answer.....

2 (edited by dlr5668 07-12-2018 18:13:53)

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

I only tested @ windows

kodi + svp mpv (comes with portable python bin files) = no crash

kodi + stock mpv = crash (different python version)

3 (edited by sv0911 10-12-2018 11:45:42)

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

dlr5668 wrote:

I only tested @ windows

kodi + svp mpv (comes with portable python bin files) = no crash

kodi + stock mpv = crash (different python version)

Thanks for your answer @dlr5668,

i tested it some time ago also on windows and yes its working.. But on MacOS..???... thats what i´m trying to figure out.. Typical MAC... ;-))
Seems to be the different python versions.. Right?

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

Ok, mpv is linked with Homebrew's Python 3.7, which IS in /usr/local/opt/python, this part is fine.
I suspect that Kodi uses Python 2.7, and when it runs mpv with the same environment - here comes the conflict.

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

This works:
1. create script ~/mpv.sh:

#!/bin/sh
PYTHONHOME=/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7 /usr/local/bin/mpv "$@"

1.5. chmod +x ~/mpv.sh

2. playercorefactory.xml (replace "chainik" with your user name, "~" doesn't work here hmm)

...
<filename>/Users/chainik/mpv.sh</filename>
...

6 (edited by sv0911 10-12-2018 11:40:42)

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

Chainik,.........
YOU ARE A GENIUS !!!!!
  cool

YES ITS WORKING MAN !!!!

Big big thanks to you!

I´m sure, also other Mac-Users will be very happy to find out that it´s possible to get Kodi in combination with mpv
and SVP running..!!!! Now, that's what i call a really great setup on my rig..!!!!

Everything is running smooth and fine..!!!  cool   cool   cool

SVP 4 "PRO" is definitely "PRO"! Just like their "developers" !!!

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

I connected Kodi via MPV with SVP via a script. The video is played from the internal disk, MPV starts. MPV does not start from the network drive. How can I fix this problem?

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

check mpv log

9 (edited by Da_luboe 09-12-2021 22:28:37)

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

Thanks for the answer! When launching video from network mpv does not open. In the KODI report:

2021-12-10 03:00:28.157 T:498352    INFO <general>: ExternalPlayer Filename: /Users/i7/mpv.sh
2021-12-10 03:00:28.157 T:498352    INFO <general>: ExternalPlayer Tweaks: hideconsole (false), hidexbmc (false), islauncher (false), warpcursor ()
2021-12-10 03:00:28.157 T:498352    INFO <general>: OpenFile: smb://192.168.1.100/! Кино-Мульты Детям/! Новые мультфильмы/Легенда о волках Wolfwalkers/Легенда о волках_2020_WEB-DLRip.avi
2021-12-10 03:00:28.157 T:512077    INFO <general>: Process: Player : /Users/i7/mpv.sh
2021-12-10 03:00:28.157 T:512077    INFO <general>: Process: File   : smb://192.168.1.100/! Кино-Мульты Детям/! Новые мультфильмы/Легенда о волках Wolfwalkers/Легенда о волках_2020_WEB-DLRip.avi
2021-12-10 03:00:28.157 T:512077    INFO <general>: Process: Content:
2021-12-10 03:00:28.158 T:512077    INFO <general>: Process: Args   : --fs=yes "{1}"
2021-12-10 03:00:28.158 T:512077    INFO <general>: Process: Start
2021-12-10 03:00:28.209 T:512077    INFO <general>: ExecuteAppLinux: "/Users/i7/mpv.sh" --fs=yes "smb://192.168.1.100/! Кино-Мульты Детям/! Новые мультфильмы/Легенда о волках Wolfwalkers/Легенда о волках_2020_WEB-DLRip.avi"
2021-12-10 03:00:28.434 T:512077    INFO <general>: ExecuteAppLinux: Failure: 512
2021-12-10 03:00:28.434 T:512077    INFO <general>: Process: Stop
2021-12-10 03:00:28.434 T:512077    INFO <general>: Process: Showing Kodi window



When I run the video file from disk, mpv opens and SVP starts up. In the KODI report:
2021-12-10 03:07:38.655 T:515675    INFO <general>: Python interpreter stopped
2021-12-10 03:24:22.086 T:498352    INFO <general>: ExternalPlayer Filename: /Users/i7/mpv.sh
2021-12-10 03:24:22.087 T:498352    INFO <general>: ExternalPlayer Tweaks: hideconsole (false), hidexbmc (false), islauncher (false), warpcursor ()
2021-12-10 03:24:22.087 T:498352    INFO <general>: OpenFile: /Volumes/BigSur/Users/i7/Downloads/The Quick and the Dead 1995.mkv
2021-12-10 03:24:22.087 T:523956    INFO <general>: Process: Player : /Users/i7/mpv.sh
2021-12-10 03:24:22.087 T:523956    INFO <general>: Process: File   : /Volumes/BigSur/Users/i7/Downloads/The Quick and the Dead 1995.mkv
2021-12-10 03:24:22.087 T:523956    INFO <general>: Process: Content:
2021-12-10 03:24:22.087 T:523956    INFO <general>: Process: Args   : --fs=yes "{1}"
2021-12-10 03:24:22.087 T:523956    INFO <general>: Process: Start
2021-12-10 03:24:22.142 T:523956    INFO <general>: ExecuteAppLinux: "/Users/i7/mpv.sh" --fs=yes "/Volumes/BigSur/Users/i7/Downloads/The Quick and the Dead 1995.mkv"
2021-12-10 03:24:44.256 T:523956    INFO <general>: Process: Stop

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

Homebrew's ffmpeg doesn't support SMB protocol.

11 (edited by Da_luboe 11-12-2021 00:27:57)

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

Thank you. What needs to be done in order for SMB to be supported? In the IINA player, the same files are played using the SMB protocol. IINA uses MPV, it seems.

Re: MacOS - Using Kodi with mpv as external player in combination with SVP

Unfortunately, the technology I use with Linux to mount SMB shares as the type CIFS requires FUSE technology, which seems to be completely unavailable on Mac recently.