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

afreeca 'Connection aborted.', BadStatusLine #1246

Closed AleXoundOS closed 8 years ago

AleXoundOS commented 8 years ago

Oftentimes after "[cli][info] Opening stream: live (hls)" message livestreamer fails to load stream with: [cli][error] Could not open stream: Unable to open URL: http://chromecast.afreeca.gscdn.com/livestream-10/auth_playlist.m3u8?aid=.A32.7bbT56vyHM9fKZk.wR5Fmo4756ncqksOSR9y0dFkVporjNqhronw-l-24ueTVQ0N7mOVq0czZ2RlUSy7ByRbF2USFnqB-bxaQ5D3_hzrIZdDvZ_dyNoULlKX3Vk (('Connection aborted.', BadStatusLine("''",))) Then it exits.

After several sequential starts of livestreamer with same arguments it finally loads stream and plays fine. Usually not more than 3 attempts is needed. Maybe it's possible to tune livestreamer so that it retries this url connection several times internally by itself? So that user doesn't need to sequentially start the program manually until it works.

scottbernstein-zz commented 8 years ago

There are a whole bunch of command-line retry options that you can try. Check here: http://docs.livestreamer.io/cli.html#command-line-usage

AleXoundOS commented 8 years ago

Thank you. --retry-open seems to allow to tune the number of retries (default is 1).