User avatar
Chaz GELF
Posts: 3
Joined: Fri Dec 07, 2012 11:55 pm

Raspbian - Does omxplayer have a config file?

Sat Dec 08, 2012 12:23 am

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!

henle
Posts: 65
Joined: Sat Apr 21, 2012 7:23 pm

Re: Raspbian - Does omxplayer have a config file?

Sat Dec 08, 2012 1:07 am

The omxplayer file is just a shell script starting omxplayer.bin, so you can put arguments like -o hdmi in there.

User avatar
Chaz GELF
Posts: 3
Joined: Fri Dec 07, 2012 11:55 pm

Re: Raspbian - Does omxplayer have a config file?

Sat Dec 08, 2012 1:25 am

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]"

henle
Posts: 65
Joined: Sat Apr 21, 2012 7:23 pm

Re: Raspbian - Does omxplayer have a config file?

Sat Dec 08, 2012 1:32 am

Between /usr/bin/omxplayer.bin and "[email protected]". The latter forwards the arguments you pass to the script.

User avatar
Chaz GELF
Posts: 3
Joined: Fri Dec 07, 2012 11:55 pm

Re: Raspbian - Does omxplayer have a config file?

Sat Dec 08, 2012 1:34 am

That did the trick. Thank you for your help, Henle!

ADAMPOKE111
Posts: 62
Joined: Wed Mar 07, 2012 6:38 pm

Re: Raspbian - Does omxplayer have a config file?

Sat Nov 16, 2013 4:12 pm

Just being curios where is that shell script launcher omxplayer?

gavmassingham
Posts: 1
Joined: Thu Dec 05, 2013 9:51 pm

Re: Raspbian - Does omxplayer have a config file?

Thu Dec 05, 2013 9:54 pm

The shell script is /usr/bin/omxplayer which calls /usr/bin/omxplayer.bin

itwork4me
Posts: 1
Joined: Fri Jun 24, 2016 5:10 am

Re: Raspbian - Does omxplayer have a config file?

Mon Jun 27, 2016 5:36 pm

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.

Return to “Beginners”