-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS support #18
Comments
Do you have any error messages or stack traces from attempting to run this? I just responded to another user about trying to test this. I don't have a mac to test on, but I can help anyone who has one to get it working. |
This is the log from Jellyfin:
This is the log from shim:
I installed mpv-shim from pip |
It looks like it is trying to transcode the file you are playing due to bitrate. That should just work, but it does make me wonder if the file plays via the web client. It looks like it is retrieving the file metadata, but then it doesn't actually play. I know that if mpv fails to play a file it doesn't send any error messages currently. How did you install MPV? Did you install it via the |
The mpv brew package |
Ok. Can you test with a file with a lower bitrate that don't require transcoding? Although the player should work for transcoded files as well. One other thing you can do to test is run MPV externally. Set the config file to use these settings: "mpv_ext": true,
"mpv_ext_ipc": "/tmp/mpv-socket",
"mpv_ext_path": null,
"mpv_ext_start": false, Then run MPV in the command line like this: mpv --input-ipc-server=/tmp/mpv-socket --idle After starting MPV, run the MPV Shim program. That should print any errors from MPV if there are any. |
MPV doesn't throw any errors. It seems that mpv-shim isn't sending anything to mpv, as mpv's verbose logs don't show anything happening after startup. Update: |
EDIT: Based on the edit you should be able to disregard this. It is very possible that the MPV communications library itself isn't working. To rule that out, could you run this python script? #!/usr/bin/env python3
import python_mpv_jsonipc
import time
mpv = python_mpv_jsonipc.MPV()
mpv.play("http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4")
time.sleep(300) If this doesn't work, then it means it is a problem with the MPV library (which I also maintain) and if it does work, it means it is a problem with the MPV Shim. |
That python script works |
Yeah, that would do it. I still wonder why it doesn't work by default. Does it work with this config? "mpv_ext": true,
"mpv_ext_ipc": null,
"mpv_ext_path": null,
"mpv_ext_start": true, Additionally, what happens when you run this: #!/usr/bin/env python3
import mpv
import time
player = mpv.MPV()
player.play("http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4")
time.sleep(300) |
That config works. |
And that would be the problem. I use I'm going to change the default playback backend to the external one for OSX. I'd like to provide some basic instructions for how to install this on OSX. Did you have to do anything aside from install brew, python3, mpv, and this program? Does the system tray icon work, or are you using the cli version? If you are using the system tray GUI, did you have to install tkinter separately? |
Nope.
|
It looks like the GUI isn’t easily installable on OSX. https://stackoverflow.com/a/48737927 I’ll make an update that changes the default OSX backend and post instructions for |
Version1.3.8 has been release with the default player backend changed for OSX. I posted installation instructions here: https://github.com/iwalton3/jellyfin-mpv-shim/blob/master/README.md#osx-installation Please let me know if there are any issues with the procedure, as I cannot test it. |
It looks right to me |
Regarding the issue with python-mpv, it looks like it is a known issue: jaseg/python-mpv#61 |
I've tried to compile this on my mac, but it doesn't seem to work. I was wondering if anyone had gotten this working on Mac.
The text was updated successfully, but these errors were encountered: