Alvaro
Posts: 29
Joined: Sun Aug 19, 2012 8:47 am

OMXplayer - visible taskbar when playing a movie.

Fri Aug 24, 2012 3:14 pm

Sorry if this has been asked before. When I launch a movie with the parameters "omxplayer -o hdmi moviename", depending on the movie, parts of the desktop (top and bottom) are visible when the movie plays. I can see the top of the wallpaper and the taskbar even when the movie is on.

Any way to fix this?

I am running fully upgraded Raspbian.

sylverboss
Posts: 1
Joined: Thu Aug 30, 2012 4:05 pm

Re: OMXplayer - visible taskbar when playing a movie.

Thu Aug 30, 2012 4:07 pm

Hi ,

having the exact same problem as well .. did an upgrade today but still the same

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: OMXplayer - visible taskbar when playing a movie.

Thu Aug 30, 2012 6:26 pm

Try adding this to the end of the code:

Code: Select all

fbset -depth 8 && fbset -depth 16
:)

Alvaro
Posts: 29
Joined: Sun Aug 19, 2012 8:47 am

Re: OMXplayer - visible taskbar when playing a movie.

Fri Aug 31, 2012 6:20 am

matbos wrote:Try adding this to the end of the code:

Code: Select all

fbset -depth 8 && fbset -depth 16
:)
It is possible to get back to the desktop afterwards, or does it just blank out everything so you have to reboot?

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: OMXplayer - visible taskbar when playing a movie.

Fri Aug 31, 2012 8:05 am

Yes, it is possible. Blank screen happens if you give -r to code,I had the same problem, I think its probably a bug. But that code works.

Alvaro
Posts: 29
Joined: Sun Aug 19, 2012 8:47 am

Re: OMXplayer - visible taskbar when playing a movie.

Fri Aug 31, 2012 3:48 pm

I am trying to add the parameters, but the movie does not launch. I must be doing something wrong. Any ideas?

Code: Select all

omxplayer -o hdmi -t on --align center nameofmovie.mp4 && fbset -depth 8 && fbset -depth 16
This had the same effect:

Code: Select all

omxplayer -o hdmi -t on --align center nameofmovie.mp4 fbset -depth 8 && fbset -depth 16

matbos
Posts: 64
Joined: Thu Aug 16, 2012 3:29 pm

Re: OMXplayer - visible taskbar when playing a movie.

Fri Aug 31, 2012 5:34 pm

Does your screen go black?

Alvaro
Posts: 29
Joined: Sun Aug 19, 2012 8:47 am

Re: OMXplayer - visible taskbar when playing a movie.

Fri Aug 31, 2012 8:04 pm

matbos wrote:Does your screen go black?
No.

juriy
Posts: 1
Joined: Tue Oct 23, 2012 9:35 pm

Re: OMXplayer - visible taskbar when playing a movie.

Tue Oct 23, 2012 10:47 pm

Just want to check out... are there any advises regarding this issue? I'm running into the same problem... The video playback works as a charm, but the parts of the desktop that are not covered by the player remain visible (initially they are blacked out, but they reappear once you move the mouse pointer over them).

I tried to launch several videos with and without -r flag, all having the same effect...

Would be grateful for help.

User avatar
Dweeber
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
Contact: Website

Re: OMXplayer - visible taskbar when playing a movie.

Tue Oct 23, 2012 11:25 pm

I have a script that I use that calls omxplayer. I call it omxplay:

Code: Select all

#!/bin/bash
clear > /dev/tty1
omxplayer -o hdmi $1
It uses a command call clear and sends it to the /dev/tty1 port which clears the screen before playing.

I use it just like omxplayer but only have to deal with the video name like

omxplay hungergames.mp4

I keep the script with my other scripts in /usr/local/bin

Note that I use this headless.. and I rarely use startx itself preferring the command line.
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com

Return to “Raspberry Pi OS”