livestreamer icon indicating copy to clipboard operation
livestreamer copied to clipboard

Original Livestream.com stream closes after a few seconds

Open expandables2 opened this issue 10 years ago • 10 comments

Hi i am using livestreamer on the raspberry pi and every time I play an original livestream.com stream it closes in seconds.

expandables2 avatar Nov 11 '14 18:11 expandables2

Please run with -v --loglevel debug and paste the output.

chrippa avatar Nov 11 '14 22:11 chrippa

[cli][info] Available streams: 0, 446k (worst, best) [cli][info] Opening stream: 446k (hls) [stream.hls][debug] Reloading playlist [cli][debug] Pre-buffering 8192 bytes [stream.hls][debug] Adding segment 1523 to queue [stream.hls][debug] Adding segment 1524 to queue [stream.hls][debug] Adding segment 1525 to queue [stream.hls][debug] Download of segment 1523 complete [cli][info] Creating pipe livestreamerpipe-2428 [cli][info] Starting player: omxplayer -o hdmi [stream.hls][debug] Download of segment 1524 complete [cli][debug] Writing stream to output [stream.hls][debug] Download of segment 1525 complete Video codec omx-h264 width 512 height 384 profile 578 fps 30.000000 Audio codec aac channels 2 samplerate 44100 bitspersample 16 Subtitle count: 0, state: off, index: 1, delay: 0 V:PortSettingsChanged: [email protected] interlace:0 deinterlace:0 anaglyph:0 par:1.00 layer:0 [stream.hls][debug] Reloading playlist [stream.hls][debug] Adding segment 1526 to queue [stream.hls][debug] Download of segment 1526 complete [stream.hls][debug] Reloading playlist [stream.hls][debug] Adding segment 1527 to queue [stream.hls][debug] Download of segment 1527 complete [cli][info] Player closed [stream.hls][debug] Closing worker thread [stream.hls][debug] Closing writer thread have a nice day ;) [cli][info] Stream ended

expandables2 avatar Nov 12 '14 00:11 expandables2

What does that mean and how can the problem?

expandables2 avatar Nov 12 '14 05:11 expandables2

Make sure you have the latest version of omxplayer. It has been reported in the past to have bugs preventing normal playback but they might be fixed.

chrippa avatar Nov 12 '14 07:11 chrippa

I have the latest omxplayer from this http://omxplayer.sconde.net/ or is there another source for omxplayer?

expandables2 avatar Nov 12 '14 14:11 expandables2

The Livestream.com streams are known to be badly encoded so it's possible omxplayer can't handle them. I suggest you try another player.

chrippa avatar Nov 12 '14 16:11 chrippa

What other player to use? I am using raspberry pi

expandables2 avatar Nov 12 '14 16:11 expandables2

I'd recommend mpv if it's available for Raspberry Pi, otherwise VLC.

chrippa avatar Nov 17 '14 22:11 chrippa

For the record, the HLS issue was with omxplayer, which needs --timeout 20 otherwise it exits after 35-70 seconds (see streamlink issue 182). Your livestream command line should thus include: --player 'omxplayer --timeout 20'.

stevekmcc avatar Nov 22 '16 21:11 stevekmcc

@stevekmcc This solution is perfect - I set up a stream to autoplay via bash script at system startup, and it was failing after 20-30 seconds. Now it runs perfectly, thanks!

aleczoeller avatar Jul 02 '17 21:07 aleczoeller