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 581 forks source link

Failed to start player (Process exited prematurely) #355

Closed Hotshoot911 closed 10 years ago

Hotshoot911 commented 10 years ago

When I put in the commands that I need to get it to run everything it says that the player failed to start. http://pastebin.com/GG6rRg5m

chrippa commented 10 years ago

VLC does not run as root.

Hotshoot911 commented 10 years ago

What must I do to fix this problem? when I install and do everything according to this guide. http://powernap.github.io/blog/2013/12/07/watch-twitch-using-vlc-in-osx/ and when i type in the commands I get "command not found" http://pastebin.com/y0vebh0e I have no idea what else i should do. am not very experienced with code :/

chrippa commented 10 years ago

Does running python /usr/local/bin/livestreamer work?

Hotshoot911 commented 10 years ago

When i put that in I get permission denied. http://pastebin.com/AiwAFvjE

chrippa commented 10 years ago

Looks like you don't have permission to read the file, does running chmod 755 /usr/local/bin/livestreamer help?

Hotshoot911 commented 10 years ago

Same thing, permission denied :/ http://pastebin.com/bCg2DTJT I have admin rights on my laptop and I am the only account.

chrippa commented 10 years ago

Sorry, I meant sudo chmod 755 /usr/local/bin/livestreamer.

Hotshoot911 commented 10 years ago

Nothing happened http://pastebin.com/DARP2PNM

chrippa commented 10 years ago

That means the command was successful, did it not help?

Hotshoot911 commented 10 years ago

Still shows command not found when putting in livestreamer twitchchannel Quality

chrippa commented 10 years ago

Yes, that's because you're missing /usr/local/bin in your $PATH it seems. Does python /usr/local/bin/livestreamer still give permission denied?

Hotshoot911 commented 10 years ago

Yeah permission denied

chrippa commented 10 years ago

That's odd, I'm not very knowledgeable about OS X, but I guess it's possible something went wrong with the install. Since OS X comes with easy_install installed by default this should be the simplet way to install Livestreamer:

sudo easy_install livestreamer`

If that doesn't work, try installing with pip (another package manager for Python):

sudo easy_install pip
sudo pip install --upgrade livestreamer
Hotshoot911 commented 10 years ago

Well i installed it fine. I just cant run it. I have to use root to run but VLC doesnt play on root saldy

chrippa commented 10 years ago

I guess you could try installing with pip's user mode instead, it should be impossible to run into permission issues then:

sudo easy_install pip # install pip
sudo pip uninstall livestreamer # uninstall the globally installed livestreamer first
pip install --user livestreamer

Somewhere in the output it should say something like Installing livestreamer script to <path>. Copy that directory path and then then run livestreamer with:

python <path>/livestreamer
Hotshoot911 commented 10 years ago

It says in the end "pip command not found"

chrippa commented 10 years ago

Ah, right, you'll need to use /usr/local/bin/pip for the pip commands.

Hotshoot911 commented 10 years ago

So what do I put in the command now? putting just that in gives me no permission.

chrippa commented 10 years ago

There seems to something on your system preventing users to access files in /usr/local/bin properly. I'm not very familiar with OS X, but is it possible you have some special security features enabled?

The last idea I have is to simply reinstall Python via homebrew, see this guide: http://docs.python-guide.org/en/latest/starting/install/osx/ and then reinstalling Livestreamer.

If that doesn't help you I'm afraid I can't help you any further.

Hotshoot911 commented 10 years ago

Alright so installing python with xCode helped. I was able to install and all that but after finding out the path of the install I tried to use that and it said no directory. http://pastebin.com/y7ZpaAr1

chrippa commented 10 years ago

This might help: http://stackoverflow.com/questions/4495120/combine-user-with-prefix-error-with-setup-py-install

Hotshoot911 commented 10 years ago

Sadly I wasnet able to go further with that...Damn, well I am happy you tried to assist me in my big problem. I really appreciate the help! I think I will either give it up all together or reinstall OSX.

Hotshoot911 commented 10 years ago

Alright wanted to report for the last time that i got it to work. I just said "screw it" and reinstalled OS X and it worked right away after doing "Sudo easy_install livestreamer" and after that "livestreamer TWITCH URL quality" So thanks for the help earlier!! :) Now must find a way to get twitch chat to be in an individual window.

skulblakka commented 10 years ago

Now must find a way to get twitch chat to be in an individual window.

You can do this by opening twitch.tv/CHANNELNAME/chat?popout in your browser

jivy26 commented 9 years ago

Just a heads up I had this issue and did these two things to fix it instead of reinstalling OSx

sudo chown -R $(whoami) /usr/local/bin Also, your permission modes are off—ideally /usr/local/bin should be accessible by others too:

sudo chmod -R 755 /usr/local/bin

lazykitty commented 7 years ago

if you are using windows, try those step. I have same problem and solved . Hope this help.

  1. Try to run under a permission directory. I can not run disk root ( >D:\ )
  2. Close all VLC precess.