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

Unable to launch twitch streams using VLC #1481

Open bdriffield opened 8 years ago

bdriffield commented 8 years ago

Hi,

I'm receiving the bel;ow access_token json error message whenever I attempt to launch a twitch stream in OSX El Capitain.

bdriffield$ livestreamer twitch.tv/moonmoon_ow source [cli][info] Found matching plugin twitch for URL twitch.tv/moonmoon_ow error: Unable to open URL: https://api.twitch.tv/api/channels/moonmoon_ow/access_token.json (400 Client Error: Bad Request)

skulblakka commented 8 years ago

See #1456 and #1478

sshilko commented 8 years ago

screen shot 2016-09-16 at 15 28 14

mxwn commented 8 years ago

Thank you @sshilko, worked almost flawlessly for me; livestreamer reports "failed to authenticate" upon using my oauth token but it still starts the stream.

For all the other batch noobs here, I wrote a very ugly batch file asking for the stream name and quality which means you don't have to paste URLs in your CLI:

C:\Program Files (x86)\Livestreamer
:START
set /p inputName=Stream name:%=%
set /p inputQuality=Stream quality (low, medium, high, source):%=%
livestreamer --twitch-oauth-token xxxxxxxxxxxxxxxxxxxxxxxxxxx twitch.tv/%inputName% %inputQuality%
set /p restart=restart script? (y/n):
IF "%restart%"=="y" goto START

I apologize in advance as I am not at all familiar with batch and there are certainly 100 ways to do this better.

sshilko commented 8 years ago

for all those mac pplz, VLC has proper hardware acceleration

livestreamer twitch.tv/AdmiralBulldog source -p '/Applications/VLC.app/Contents/MacOS/VLC --network-caching 8000 --file-caching 8000' --player-http -v --hls-segment-threads 4
boom•~/twitch» cat ~/.livestreamerrc                                                                                                                              
twitch-oauth-token=v9tl7wahpv5o0n8gt6co4d5o2jlzhx
sshilko commented 8 years ago

@mxwn for windows there is built in livestreamer alternative with proper UI and so on, its on Reddit. Tardsplaya

http://tards.net

valobal commented 8 years ago

Hi all, sorry for my newbie question. Anybody knows how to play a live streaming from Vaughnlive with VLC on mac? regards

KORandi commented 8 years ago

Yeah with oauth key it works. thx