shramik
Posts: 22
Joined: Sat Jan 07, 2017 11:31 am

how to hide omxplayer details.

Tue Nov 07, 2017 11:23 am

i am running this command to loop a video. its working fine but at bottom of screen a message is displayed showing "Seek 00.00.00/00:00:03" and how much time elapsed.
is there a way in which i can hide the message and time elapsed?

Code: Select all

    omxc = Popen(['omxplayer', '-o' 'local', '--loop', '--win', '0 0 1600 900', movie1])

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

Re: how to hide omxplayer details.

Tue Nov 07, 2017 12:49 pm

shramik wrote:
Tue Nov 07, 2017 11:23 am
i am running this command to loop a video. its working fine but at bottom of screen a message is displayed showing "Seek 00.00.00/00:00:03" and how much time elapsed.
is there a way in which i can hide the message and time elapsed?

Code: Select all

    omxc = Popen(['omxplayer', '-o' 'local', '--loop', '--win', '0 0 1600 900', movie1])
You need a modified omxplayer script. Create a copy (e.g. omxplayer_silent) and modify this line:

Code: Select all

LD_LIBRARY_PATH="$OMXPLAYER_LIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" $OMXPLAYER_BIN "$@" > /dev/null 2>&1
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

shramik
Posts: 22
Joined: Sat Jan 07, 2017 11:31 am

Re: how to hide omxplayer details.

Tue Nov 07, 2017 5:01 pm

thank you sir for the reply.
but i dint get your solution. where i can find the omxplayer script, so that i can copy it into omxplayer slient and modify it.
Last edited by shramik on Tue Nov 07, 2017 5:20 pm, edited 2 times in total.

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

Re: how to hide omxplayer details.

Tue Nov 07, 2017 5:08 pm

shramik wrote:
Tue Nov 07, 2017 5:01 pm


thank you sir for the reply.
but i dint get your solution. where i can find the omxplayer script, so that i can copy it into omxplayer slient and modify it.
/usr/bin/omxplayer

Code: Select all

cd /usr/bin
sudo cp omxplayer omxplayer_silent
sudo nano omxplayer_silent
Modify the line as explained above and save it.

Now use omxplayer_silent instead of omxplayer in your python script.
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

shramik
Posts: 22
Joined: Sat Jan 07, 2017 11:31 am

Re: how to hide omxplayer details.

Tue Nov 07, 2017 5:23 pm

thank you sir,
after copying and modifying the script, my python script will be.

Code: Select all

    omxc = Popen(['omxplayer_slient', '-o' 'local', '--loop', '--win', '0 0 1600 900', movie1])

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

Re: how to hide omxplayer details.

Wed Nov 08, 2017 2:31 am

Add '--no-osd' to your Popen call to hide the On-Screen-Display message.

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

Re: how to hide omxplayer details.

Wed Nov 08, 2017 9:07 am

jehutting wrote:
Wed Nov 08, 2017 2:31 am
Add '--no-osd' to your Popen call to hide the On-Screen-Display message.
Jehutting is right; I misunderstood your question (I thought you wanted to get rid of terminal messages).
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

Return to “Graphics, sound and multimedia”