livestreamer
livestreamer copied to clipboard
Original Livestream.com stream closes after a few seconds
Hi i am using livestreamer on the raspberry pi and every time I play an original livestream.com stream it closes in seconds.
Please run with -v --loglevel debug
and paste the output.
[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
What does that mean and how can the problem?
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.
I have the latest omxplayer from this http://omxplayer.sconde.net/ or is there another source for omxplayer?
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.
What other player to use? I am using raspberry pi
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 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!