s_cornford
Posts: 4
Joined: Fri Jan 29, 2016 6:49 pm

stuck in omxplayer loop

Mon Oct 03, 2016 5:45 pm

Like a lot of other folk it seems I am working on a video looper for a gallery installation.
I have the pis fitted with on/off switches so that the gallery people can turn them on easily and am loading softshut.py and the
video looping code from start up by modifying /etc/rc.local
That all works fine, video loads, looks good, one or two of the pis freeze occasionally which is a bit of a pain but no disaster.
BUT
I can't get out of the loop, so now - when I would just like to swap the video files for one which has been edited slightly differently - I can't get into anything. (actually the command line still operates behind the video, but I can't see anything)

I am using this code - which seems like the most lightweight option of the solutions I have seen:

#!/bin/sh
# get rid of the cursor so we don't see it when videos are running
setterm ­cursor off
# set here the path to the video
VIDEOPATH=“/home/pi/video/video.mp4"
# you can normally leave this alone
clear
omxplayer --loop --no-osd $VIDEOPATH > /dev/null

I think the problem is that the way I have done this I am not logged in to the pi by the time it is running the video, but even if I log in while the video is running I don't seem to be able to break out of the code.

any ideas?
I have tried the things suggested here with no luck: viewtopic.php?f=29&t=80178

jehutting
Posts: 143
Joined: Sun Feb 15, 2015 8:37 am
Location: The Netherlands

Re: stuck in omxplayer loop

Wed Oct 05, 2016 3:16 am

Code: Select all

sudo killall omxplayer.bin
Notice the .bin. The executable omxplayer is a wrapper script which calls omxplayer.bin.

s_cornford
Posts: 4
Joined: Fri Jan 29, 2016 6:49 pm

Re: stuck in omxplayer loop

Wed Oct 05, 2016 10:41 am

thanks!

with that and working out how to open an ssh connection to the pi from my laptop so that I could see the command line I soon worked out how get in change stuff.

ta very much.

steak1986
Posts: 2
Joined: Fri Dec 13, 2013 3:43 pm

Re: stuck in omxplayer loop

Tue Dec 13, 2016 3:14 pm

Did you ever get a proper fix to this? I have the same issue with omxplayer, and its annoying. I dont want to have to manually fix it each time, love to automate it in some way.

Return to “Troubleshooting”