chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 583 forks source link

VLC won't open on OSX #111

Closed DrEggman closed 11 years ago

DrEggman commented 11 years ago

I installed rtmpdump (via github), livestreamer (via pip) and the newest version of VLC yesterday. But when i'm trying to open a stream VLC wont open, but i dont get any errors or something:

My-iMac:~ username$ sudo livestreamer twitch.tv/lethalfrag best [cli][info] Found matching plugin justintv for URL twitch.tv/lethalfrag [cli][info] Opening stream: 720p+ [cli][info] Starting player: /Applications/VLC.app/Contents/MacOS/VLC [cli][info] Player closed [cli][info] Stream ended

When i am trying to use -p i get the following error:

My-iMac:~ username$ sudo livestreamer -p twitch.tv/lethalfrag best error: No plugin can handle URL: best

I tried everything with mplayer and it works but video and audio are out of sync with mplayer.

(Sorry if i did any spelling mistakes or something, i am not a native speaker :D )

raylu commented 11 years ago

please please don't run livestreamer as root

DrEggman commented 11 years ago

Problem is if i dont run it as root it wont work.

When i am trying to run it without sudo i get the following:

My-iMac:~ username$ livestreamer -bash: livestreamer: command not found

DrEggman commented 11 years ago

Or does anyone know why i can only use livestream with root? As i said i can't run livestreamer without sudo.

chrippa commented 11 years ago

As raylu mentioned you really shouldn't need to run livestreamer as root.

-bash: livestreamer: command not found

This is pretty odd, because by installing using pip it should put a livestreamer executable in a location that's accesible by any user on your system. I'm not a OS X user myself though, maybe someone else has a solution?

My-iMac:~ username$ sudo livestreamer -p twitch.tv/lethalfrag best

This is not a correct command line, it should be something like this livestreamer -p pathtoplayer twitch.tv/lethalfrag best. You did not specify a player to the -p argument, thus it thinks you want to start the url as a player.

As for the problem with the player not starting, verify that the default player /Applications/VLC.app/Contents/MacOS/VLC exists in your system and is able to start, and if not try specifying the correct path using -p/--player.

DrEggman commented 11 years ago

Is it normal that i can run pip only with sudo too? Because i only can run pip with sudo.

chrippa commented 11 years ago

Is it normal that i can run pip only with sudo too? Because i only can run pip with sudo.

The pip command should be usable by any user on the system, but installing any package globally using it will most likely require you to use sudo.

How did you install pip on your system? After some quick googling the command sudo easy_install pip should be the correct way.

This guide might help you: https://python-guide.readthedocs.org/en/latest/starting/install/osx.html

DrEggman commented 11 years ago

Eureka!

I gave me some access to the following directorys using following commands:

sudo chmod -R 777 /usr/local/bin/

sudo chmod -R 777 /Library/Python/2.7/site-packages/

Now i can install pip & livestreamer without sudo.

raylu commented 11 years ago

this is the only thing worse than running livestreamer as root. you just made global installation directories world-writable.

the correct solution would have been to run sudo which livestreamer and inspecting that path to see why you couldn't use it as your user (either not on your PATH or not read/exec by your user)

as i'm sure you won't do this, enjoy having a broken system in a month

DrEggman commented 11 years ago

Thank you for your warning, and i knew this isn't the best solution for my problem, but i did this because i know that i must reinstall my system in a few days because of some various things, so i dont have a problem with it.

gohals commented 10 years ago

I'm having this same issue. Running sudo which livestreamer yields no results for me.