Skip to content
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

MPV installation and players based on mpv #248

Closed
trimechee opened this issue Mar 24, 2023 · 16 comments
Closed

MPV installation and players based on mpv #248

trimechee opened this issue Mar 24, 2023 · 16 comments
Labels
enhancement 🪄 New feature or request

Comments

@trimechee
Copy link

Hello, thank you so much for addinf support of Mpv player !! 🥇 💯
I followed the instructions to install mpv :

https://github.com/4gray/iptvnator/wiki/What-is-mpv-video-player-and-how-to-install-it-on-different-operating-systems%3F

and i donwload and install bat file contained in
bootstrapper.zip

https://sourceforge.net/projects/mpv-player-windows/files/latest/download

and a command prompt cmd window opens and installs mpv but I notice that there is a message "do not run this script while being an administrator", and I am using my windows 10 pc as an administrator and I have disables my anti virus for more speed, so have I been infected by a virus and malware by installing mpv player ?

concerning mpv, here are 4 excellent mpv gui players optimized for windows, linux ... and having many exceptional options, we hope these players based on mpv will be supported by our beloved Iptvnator in the future :)

https://coslyk.github.io/moonplayer.html

https://tsl0922.github.io/ImPlay/

https://github.com/mpvnet-player/mpv.net

https://github.com/mpvnet-player/mpv-gui

@bendschs
Copy link

on the newer mac os operating systems and on silicone homebrew changed their root path to "/opt/homebrew/".
is there a way to manually point iptvnator to the executable mpv (/opt/homebrew/bin//mpv) ?

@4gray
Copy link
Owner

4gray commented Mar 25, 2023

@bendschs I developed and tested on a M1 MacBook (macOS Ventura 13.2.1), also installed mpv via brew, no additional configuration was required.
Have you tried running mpv from the terminal, just using the mpv command? It's important that homebrew is specified in your $PATH (https://sourabhbajaj.com/mac-setup/Homebrew/), because node-mpv library which is used in iptvnator takes the path from there.

@trimechee Thanks for the feedback. I don't have a chance to test under windows at the moment :/ Perhaps someone else has tried mpv+iptvnator using windows?

@trimechee
Copy link
Author

@4gray Thank you :) when i saw the warning, i I cancelled the installation of the script that installs mpv, and i downloaded the latest stable version of mpv via this link from this famous site so no more need to install script or dig into beta version on sourceforge...

https://www.videohelp.com/software/mpv-media-player

maybe it will be a good idea to add a second new version of Iptvnator which already contains the executables of mpv player : a special version which contains modifications allowing mpv or other players to integrate more easily with Iptvnator....

@bendschs
Copy link

in the terminal everything works as expected (see output).
the path environment is also set like suggested by brew (brew doctor would throw an error message if it was not).

iptvnator still does not seem to find mpv though (see screenshot).

Benno@B2 ~ % mpv
mpv 0.35.1 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
 built on Sat Jan 28 04:49:47 2023
FFmpeg library versions:
   libavutil       57.28.100
   libavcodec      59.37.100
   libavformat     59.27.100
   libswscale      6.7.100
   libavfilter     8.44.100
   libswresample   4.7.100
FFmpeg version: 5.1.2

Usage:   mpv [options] [url|path/]filename

Basic options:
 --start=<time>    seek to given (percent, seconds, or hh:mm:ss) position
 --no-audio        do not play sound
 --no-video        do not play video
 --fs              fullscreen playback
 --sub-file=<file> specify subtitle file to use
 --playlist=<file> specify playlist file

 --list-options    list all mpv options
 --h=<string>      print options which contain the given string in their name

Benno@B2 ~ % which mpv
/opt/homebrew/bin/mpv
Benno@B2 ~ % brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libDellMonitorSdkLib.dylib
  /usr/local/lib/libcpsrt.dylib
  /usr/local/lib/libwkextmac.dylib

Bildschirm­foto 2023-03-25 um 22 16 39

@VincentDugard
Copy link

hello, same problem here, mpv installed using homebrew, cli is working but iptvnator say it's not installed

@what-a
Copy link

what-a commented Mar 27, 2023

Works on Linux but occasionally throws this error:
image

Not working on Windows 10 (so far).

@seb81
Copy link

seb81 commented Mar 29, 2023

Hi. Same problem. MacOS 13.3 (22E252). Iptvnator and mpv installed by homebrew.
brew install --cask iptvnator
brew install --cask mpv
/opt/homebrew/bin/mpv

mpv 0.35.1 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
 built on Thu Feb  9 22:33:08 CET 2023
FFmpeg library versions:
   libavutil       57.28.100
   libavcodec      59.37.100
   libavformat     59.27.100
   libswscale      6.7.100
   libavfilter     8.44.100
   libswresample   4.7.100
FFmpeg version: 5.1.2

brew doctor

Your system is ready to brew.

@martingouy
Copy link

For people having problems on M1 macs with IPTVnator not able to find mpv, here is a "hacky" fix:

  1. Install mpv with homebrew
  2. Get the path of the binary: which mpv. Copy the path (ex: /usr/local/bin/mpv)
  3. Modify these lines in the IPTVnator code source:
    const createMpvInstance = () => new mpvAPI({}, ['--autofit=70%']);

    with:
const createMpvInstance = () => new mpvAPI({
    "binary": '[PATH OF THE BINARY]',
}, ['--autofit=70%']);
  1. Build IPTVnator again (https://github.com/4gray/iptvnator#how-to-build)

Hopefully, IPTVNator should now be able to find mpv

@4gray 4gray added the enhancement 🪄 New feature or request label May 7, 2023
@4gray
Copy link
Owner

4gray commented May 10, 2023

@martingouy thanks for the tip!
Has anyone tried it? If it works, I'll add the option of specifying the path in the settings.

@m1m1s1ku
Copy link

Can confirm, it works when specifying the path on a Mac M1, but mpv plays only the first segment on my side

@berkaycagir
Copy link

I'm having the same issue as well; if launched from Finder, IPTVnator fails to launch mpv. However, when I start IPTVnator manually (e.g. invoking /Applications/iptvnator.app/Contents/MacOS/IPTVnator from the Terminal), on the first channel opening, Terminal asks for microphone permission (I have no clue why) and mpv launches successfully afterwards.

@4gray 4gray mentioned this issue May 23, 2023
@4gray
Copy link
Owner

4gray commented Jul 21, 2023

Please try it with v0.14.0 - https://github.com/4gray/iptvnator/releases/tag/v0.14.0

@4gray 4gray closed this as completed Jul 21, 2023
@jaaacck
Copy link

jaaacck commented Jul 21, 2023

I am experiencing the same thing with v0.14.0 where it fails to load MPV. I've installed MPV both from source and via brew with no luck. I've explicitly set the path as well as moved to a custom location with the same error.

The only way (using $PATH) is to launch via command the same as @berkaycagir - /Applications/iptvnator.app/Contents/MacOS/IPTVnator. I don't however get asked for microphone permissions when doing this. Once launched via cli it works without issue.

2023 MPB 14 Inch M2 - OS 13.4 (22F66)

@trimechee
Copy link
Author

Ohhh this so marvellous amazing !! Thank you so much @4gray for all these new awesome features and bug fixes :) 💯 🥇

@lucasmd
Copy link

lucasmd commented Aug 11, 2023

Hey @4gray,
Do you think it can works using IINA ? Which is really the best player for mac so far :https://github.com/iina/iina and it's based on MPV ?

@mtomsic
Copy link

mtomsic commented Dec 8, 2023

Seems to work when using this:
https://github.com/vitorgalvao/mpv-dummy/

Not working anymore for me :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🪄 New feature or request
Projects
None yet
Development

No branches or pull requests