Gomoto
Posts: 126
Joined: Tue Feb 12, 2013 1:21 am

prevent omxplayer crash (empty buffer)

Sun Mar 10, 2013 8:07 pm

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).

Gomoto
Posts: 126
Joined: Tue Feb 12, 2013 1:21 am

Re: prevent omxplayer crash (empty buffer)

Wed Mar 13, 2013 8:43 pm

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.

User avatar
ekla
Posts: 47
Joined: Wed Apr 09, 2014 9:39 am
Location: Lyon, France

Re: prevent omxplayer crash (empty buffer)

Fri Nov 14, 2014 4:02 pm

try while true; do tvservice -p & omxplayer "your stream you want to decode" --live -o hdmi ; sleep 1 ; done
our fears are like dragons guarding our most precious treasures

Return to “Troubleshooting”