DrNick
Posts: 16
Joined: Thu Oct 23, 2014 7:10 pm

omxplayer (and/or xterm) does not exit

Thu Oct 23, 2014 7:28 pm

Hi. I am fairly new to this stuff and although I have made some progress and turned my pi into a good media streamer both in the house and when I am out and about I have hit a bit of a wall when trying to watch films direct from the xWindows GUI.
I have installed both xterm and omxplayer and set a custom command line as nicely described here.

http://stevenhickson.blogspot.co.uk/201 ... ry-pi.html

However, when I quit the video with "q" I can't return to desktop as xterm is still running.
I have made a temporary workaround by excluding the -fulllscreen option from xterm and -r from omxplayer in the custom command line so I can move the cursor to the xterm title bar and select exit, which works but is somewhat inelegant.

I have done a search and can see lots of mentions of this with some fixes but I cannot get them to work.
Most seem to involve things around using a command

xrefresh -display :0

But my question how do I invoke this command when I have nowhere to type it that I can see.
And secondly, can I get it to run automatically when omxplayer exits

I guess another option would be to automatically run a exit of xterm too but similarly I don't really know how to do this.
I am guessing at a wrapper script of some type but this is brand new territory for me some am lost...
Please help. (Stepwise with as much detail and you can stomach :-))

gkreidl
Posts: 6326
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: omxplayer (and/or xterm) does not exit

Thu Oct 23, 2014 9:39 pm

I'm not sure what you are doing wrong because that is the method I used in the beginning (about 2 years ago) and I never had that problem. But there are better ways now. You could use omxplayerGUI which is installed as part of the Minimal Kiosk Browser package. Besides a windowed mode it also supports the old xterm method (if you select the "nogui" preset). And it can also play m3u and pls playlists and web video from hundreds of video websites. You can also configure your desktop that it is opened when you double click any media file.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

DrNick
Posts: 16
Joined: Thu Oct 23, 2014 7:10 pm

Re: omxplayer (and/or xterm) does not exit

Fri Oct 24, 2014 6:08 pm

Hi gkreidl,
I don't know either. Hence my question.
But I have will install kweb when I can.
Thanks.

DrNick
Posts: 16
Joined: Thu Oct 23, 2014 7:10 pm

Re: omxplayer (and/or xterm) does not exit

Fri Oct 31, 2014 7:36 am

Hi again...
It seems I have fixed my issue and it now all works perfectly..
It appears that I did not have enough memory set aside for the GPU. I set it to 32MB a while ago as I used my pi mainly for streaming.
I noticed that before the video started in omxplayer a message came up in xterm stating I needed 64MB.
I changed it and the 'q' button does indeed quit and return to desktop.

Thanks for the help.

Return to “Graphics, sound and multimedia”