1

I am doing a little project which requires omxplayer on the Raspberry Pi to not output any information.

I am wondering if omxplayer has a silent mode, like fswebcam does or if there is any way to disable any output like the audio file selected and the bitrate...

I will thank you so much if you can give me a good solution.

1 Answer 1

3

You can pass the --no-osd flag. This tells omxplayer not to display status information on the screen.

You can find info like this using the man command:

man omxplayer

This displays the man (manual) page. You can read more about the man command on our blog.

You can also use the old standby and redirect the standout to /dev/null using the following command:

omxplayer example.mp3 > /dev/null 2>&1
4
  • 2
    Ok @Steve Robillard, I tried the --no-osd flag, but it seems to have absolutely no effect whatsoever. It still shows the usual: Audio codec pcm_s16le channels 2 samplerate 44100 bitspersample 16 Subtitle count: 0, state: off, index: 1, delay: 0 have a nice day ;)
    – K.Dubey
    Commented Apr 18, 2016 at 19:09
  • Am I putting the flag in the wrong place or something??
    – K.Dubey
    Commented Apr 18, 2016 at 19:11
  • @K.Dubey I just tried it and the flag did not have any effect either, I have edited my answer and tested the redirect method I added to my answer. Commented Apr 18, 2016 at 20:02
  • Thank you! This worked brilliantly thank you so much! :)
    – K.Dubey
    Commented Apr 20, 2016 at 6:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.