Page 1 of 1

Raspbian - Does omxplayer have a config file?

Posted: Sat Dec 08, 2012 12:23 am
by Chaz GELF
Just got my Rasperry Pi today, so far I'm loving it! Right now I'm using Raspbian Wheezy, and I'm getting the hang of using the command line for various tasks. It seems like omxplayer is included by default in Raspbian, but I have some minor sound issues that are quickly solved by launching omxplayer with the "-ohdmi" flag. The question I want to ask is: Is there a configuration or init file for omxplayer? I'd like to set it so that it always launches with the -ohdmi flag active, so I don't have to worry about forgetting to include it every time I want to launch a video. I've tried looking around the directories but I've had no luck finding such a file.

Your help is much appreciated!

Re: Raspbian - Does omxplayer have a config file?

Posted: Sat Dec 08, 2012 1:07 am
by henle
The omxplayer file is just a shell script starting omxplayer.bin, so you can put arguments like -o hdmi in there.

Re: Raspbian - Does omxplayer have a config file?

Posted: Sat Dec 08, 2012 1:25 am
by Chaz GELF
Alright, I've found the shell script that opens up the bin. Where should I place the argument I want to place? The shell script for omxplayer goes:

Code: Select all

#!/bin/sh

LD_LIBRARY_PATH=/opt/vc/lib:/usr/lib/omxplayer:$LD_LIBRARY_PATH /usr/bin/omxplayer.bin "[email protected]"

Re: Raspbian - Does omxplayer have a config file?

Posted: Sat Dec 08, 2012 1:32 am
by henle
Between /usr/bin/omxplayer.bin and "[email protected]". The latter forwards the arguments you pass to the script.

Re: Raspbian - Does omxplayer have a config file?

Posted: Sat Dec 08, 2012 1:34 am
by Chaz GELF
That did the trick. Thank you for your help, Henle!

Re: Raspbian - Does omxplayer have a config file?

Posted: Sat Nov 16, 2013 4:12 pm
by ADAMPOKE111
Just being curios where is that shell script launcher omxplayer?

Re: Raspbian - Does omxplayer have a config file?

Posted: Thu Dec 05, 2013 9:54 pm
by gavmassingham
The shell script is /usr/bin/omxplayer which calls /usr/bin/omxplayer.bin

Re: Raspbian - Does omxplayer have a config file?

Posted: Mon Jun 27, 2016 5:36 pm
by itwork4me
You can find the paths to processes like this by looking at the taskman with the full paths option selected. This post did help me realize that I want to use the bin instead of creating an extra process. Thanks.