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

afreecatv.py still not working #1452

Closed tastyminerals closed 8 years ago

tastyminerals commented 8 years ago

Attempting to run online stream:

livestreamer --player="/usr/bin/vlc --file-caching=5000 --network-caching=5000 --meta-title=Sea" afreeca.com/yuambo

Gives the following error:

[tastyminerals@dell-tasty Downloads]$ livestreamer --player="/usr/bin/vlc --file-caching=5000 --network-caching=5000 --meta-title=Sea" afreeca.com/yuambo
[cli][info] Found matching plugin afreecatv for URL afreeca.com/yuambo
error: Unable to open URL: http://m.afreeca.com/live/stream/a/hls/broad_no/180492875 (HTTPConnectionPool(host='chromecast.afreeca.gscdn.com', port=80): Max retries exceeded with url: /livestream-04/auth_playlist.m3u8 (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.HTTPConnection object at 0x7f17c7d93588>, 'Connection to chromecast.afreeca.gscdn.com timed out. (connect timeout=20.0)')))

hosts file:

[tastyminerals@dell-tasty Downloads]$ cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1   localhost.localdomain   localhost
::1     localhost.localdomain   localhost
121.156.109.165 chromecast.afreeca.gscdn.com    afreeca

# End of file

afreeca.py and afreecatv.py are the latest from this repo.

skulblakka commented 8 years ago

There are currently two open PRs regarding afreecatv #1383 and #1401. Those might fix your issue.

tastyminerals commented 8 years ago

I have checked out dev version and applied the necessary pulls as mentioned in #1383. I also copied hls.py into plugins and corrected the relative import paths. Still getting the same error.

error: No plugin can handle URL: afreeca.com/yuambo
[tastyminerals@dell-tasty ~]$ cat ~/.livestreamerrc 
stream-types=hls 
hls-segment-threads=4 
default-stream=best
ghost commented 8 years ago

Pull request #1401 seems to work:

livestreamer "http://afreeca.com/yuambo" best
[cli][info] Found matching plugin afreeca for URL http://afreeca.com/yuambo
[cli][info] Available streams: live_hls, live (worst, best)
[cli][info] Opening stream: live (rtmp)
[cli][info] Starting player: "C:\Program Files (x86)\Video\MPC-HC\MPC-HC.exe"
tastyminerals commented 8 years ago

On Windows, I am running Linux. Can you please post your hls.py?

intact commented 8 years ago

@tastyminerals try full url "http://afreeca.com/yuambo"

tastyminerals commented 8 years ago

Sorry, it appears that I had a parallel installation of livestreamer on my machine. I removed it and installed the develop github version with sudo python3 setup.py install. Also, I removed "121.156.109.165 chromecast.afreeca.gscdn.com" from /etc/hosts. Everything started working now.