piptv icon indicating copy to clipboard operation
piptv copied to clipboard

On macOS, VLC isn't automatically opened despite the app is installed in /Applications

Open baddles opened this issue 5 years ago • 19 comments

Like the title said, what would happen is that the script would go into a black screen with arrows waiting for the user to use Ctrl+C. However, the script can't open/play VLC, with no error whatsoever, even if VLC is opened or not.

baddles avatar Sep 19 '19 13:09 baddles

Unfortunately I can't test this with mac, but I think I have some volunteers who might, so give me a bit and I will get back to you!

schwifty42069 avatar Sep 19 '19 16:09 schwifty42069

No worries, I can try if you want me to.

baddles avatar Sep 19 '19 16:09 baddles

Suggested from the pull request https://github.com/schwifty42069/piptv/pull/4 that --plugins_path syntax should be added. Here is the command on macOS: if platform.system() == "Darwin": instance_args += "--plugins_path=/Applications/VLC.app/Contents/MacOS/plugins" However, there is an issue after implementing this is that there is only sound, no VLC. I'm looking into this atm.

baddles avatar Sep 19 '19 17:09 baddles

Awesome great work, I will definitely do that. Keep me posted on that new issue that came up. I will leave this issue open until I add the additional instance args to vlc, and we iron the new issue out.

schwifty42069 avatar Sep 20 '19 01:09 schwifty42069

I am getting audio and no video on Mac Mojave?

z9t avatar Sep 20 '19 02:09 z9t

I am setting up a VM to do some testing for Mac so I will let you guys know if I figure anything out. Leaving this open for now

schwifty42069 avatar Sep 20 '19 16:09 schwifty42069

Hi thanks for the work 😊 Same here on Mojave : Sound : OK Vidéo : KO

Jumacbook avatar Sep 20 '19 16:09 Jumacbook

Haha alright. It will be a bit before I can test it, because my internet here is garbage and the only iso I could find for MacOS is 6GB lol. As soon as I am able to test, I will let you guys know what I find!

schwifty42069 avatar Sep 20 '19 17:09 schwifty42069

I haven't been able to test in macOS, but I did add a debug flag to the channel tune prompt. So if you want, type the channel name followed by --debug and paste the output here

for example, instead of typing just espn, type espn --debug and paste the output here

schwifty42069 avatar Sep 20 '19 19:09 schwifty42069

Here's the debug log when trying to connect to tlc: log

wangw05 avatar Sep 20 '19 20:09 wangw05

Damn, you're actually getting the stream data too, per the log. I should have a VM for macOS up by some point tonight, and will be able to test much more effectively. Will let you all know as soon as I do. Thanks for your patience!

schwifty42069 avatar Sep 20 '19 23:09 schwifty42069

Can any of you play an HLS hotlink with VLC directly? So for example, try running:

vlc """http://peer3.savitar.tv/NFL/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OS8yMC8yMDE5IDExOjQyOjEyIFBNJmhhc2hfdmFsdWU9alNNSnFOS0xKNHdndUs0TDhHUmlhQT09JnZhbGlkbWludXRlcz0zNjAmaWQ9MA=="""

See if it plays successfully. I am just curious

schwifty42069 avatar Sep 20 '19 23:09 schwifty42069

image Like this?

baddles avatar Sep 21 '19 05:09 baddles

If you mean directly in the app, the answer is no: Screen Shot 2019-09-21 at 01 19 44

Is that helpful?

CoachRocks avatar Sep 21 '19 06:09 CoachRocks

Instead of using: vlc http://peer3.savitar.tv/NFL/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OS8yMC8yMDE5IDExOjQyOjEyIFBNJmhhc2hfdmFsdWU9alNNSnFOS0xKNHdndUs0TDhHUmlhQT09JnZhbGlkbWludXRlcz0zNjAmaWQ9MA== to open a stream, Terminal requires the path to the VLC app itself.

Running /Applications/VLC.app/Contents/MacOS/VLC http://peer3.savitar.tv/NFL/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OS8yMC8yMDE5IDExOjQyOjEyIFBNJmhhc2hfdmFsdWU9alNNSnFOS0xKNHdndUs0TDhHUmlhQT09JnZhbGlkbWludXRlcz0zNjAmaWQ9MA== will bring up the VLC client and attempt to open the video stream.

Resulting log

MacBook-Pro:~ username$ /Applications/VLC.app/Contents/MacOS/VLC http://peer3.savitar.tv/NFL/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9OS8yMC8yMDE5IDExOjQyOjEyIFBNJmhhc2hfdmFsdWU9alNNSnFOS0xKNHdndUs0TDhHUmlhQT09JnZhbGlkbWludXRlcz0zNjAmaWQ9MA== VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7) [00007f8c2d202560] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00007f8c2bddab60] access stream error: HTTP 403 error 2019-09-21 00:29:28.894 VLC[99392:30884330] Can't find app with identifier com.spotify.client [00007f8c2bddab60] http stream error: error: HTTP/1.1 403 Forbidden

wangw05 avatar Sep 21 '19 07:09 wangw05

Yeah the token expired, they only last 6 hours, I was hoping someone was gonna be active when I posted it haha. I am spinning up the macOS VM to do some testing. Sorry guys, I know this isn't fun.

schwifty42069 avatar Sep 21 '19 16:09 schwifty42069

From the research I have done into this, it seems that vlcs python bindings may need to be built from source for them to function correctly on macOS. I am playing with it now, and if I get it to work building them from source I will document the method here so that others can use it. If anyone really wants to use it now, you can use it in an Ubuntu VM, or you can use the piptv-plex script on this repo to generate an m3u containing all of the channels with fresh tokens to be used in the media player of your choice.

schwifty42069 avatar Sep 21 '19 16:09 schwifty42069

Have any of you tried the piptv-plex script or tried to run piptv in an ubuntu VM? Looks like it will be a bit before I can get an environment up and running for macOS, it's being a real pain in the ass -_- Again, I'm sorry guys. I just whipped this thing up, didn't expect as many people to use it as there are!

schwifty42069 avatar Sep 21 '19 23:09 schwifty42069

Just checking in. Have you been able to work on this issue at all? I'm trying to use piptv on macOS Catalina 10.15.1 and getting similar errors.

MBB417 avatar Jan 25 '20 01:01 MBB417