Page 1 of 1

prevent omxplayer crash (empty buffer)

Posted: Sun Mar 10, 2013 8:07 pm
by Gomoto
Hi, I want to play streams with omxplayer. Omxplayer gets unresponsive when the input puffer becomes empty due to low streaming (download) rate.

What would be a good and quick solution (script) to quit omxplayer automatically when there is no data from the input stream available anymore.

In the end omxplayer needs a patch to behave when there is no input data. (quit with messag, pause until buffer is full again (with key response available), or diaglog quit/continue).

Re: prevent omxplayer crash (empty buffer)

Posted: Wed Mar 13, 2013 8:43 pm
by Gomoto
Nobody?

Ok then I have to create my own solution:

http://www.raspberrypi.org/phpBB3/viewt ... 66&t=36830

Omxplayer is not really crashing it seems, but it blocks all input when there is no input data in the stream. Using the omxgtk frontend I am able to quit omxplayer when it runs out of data (window or fullscreen) and the user does not loose control anymore.

Re: prevent omxplayer crash (empty buffer)

Posted: Fri Nov 14, 2014 4:02 pm
by ekla
try while true; do tvservice -p & omxplayer "your stream you want to decode" --live -o hdmi ; sleep 1 ; done