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

Livestreamer doesn't detect custom install directory. #287

Closed tyrope closed 10 years ago

tyrope commented 10 years ago

Windows 7 Professional

VLC installed in D:\VLC Livestreamer installed in D:\TwitchTV\livestreamer-v1.7.3

D:\TwitchTV\livestreamer-v1.7.3>livestreamer twitch.tv/myrathi best
[cli][info] Found matching plugin twitch for URL twitch.tv/myrathi
[cli][info] Opening stream: source
[cli][info] Starting player: 'C:\Program Files (x86)\VideoLAN\VLC\vlc.exe'
error: Failed to start player: 'C:\Program Files (x86)\VideoLAN\VLC\vlc.exe' (Pr
ocess exited prematurely)

Can be fixed by specifying the .exe file directly, like so: D:\TwitchTV\livestreamer-v1.7.3>livestreamer -p D:\VLC\vlc.exe twitch.tv/myrathi best

chrippa commented 10 years ago

It seems you have a file located in the default VLC path, this is why it attempts to use it, but it fails to execute for some reason.

We currently only do a simple check in common directories to find a player, if you have any suggestions on how this could be improved I would appreciate it.

tyrope commented 10 years ago

For some reason VLC was installed twice. (I blame it's updater).

Perhaps you could check system environments?

chrippa commented 10 years ago

Perhaps you could check system environments?

Do you mean environment variables? The only useful information there is the correct name for "Program Files", and we already use that.

tyrope commented 10 years ago

Yeah, I mean the PATH variable, but it's probably not in there. oh well, it only bugged due to a duplicate install, so user error. Thanks for the support.