[MPlayer-users] MPlayer – changing ‘ao=’ codec order in mplayer.conf does not appear to work for per user config?

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Sep 13 06:51:15 CEST 2014


On 12.09.2014, at 11:37, Jim Cross <jimgcross at gmail.com> wrote:

> Thanks for your quick response and detail Reimar. I did wonder if it was a
> file or directory, so tried both.
> I can get it to work from command line (logged in as pi, has a home
> directory which mplayer obviously finds)
> 
> But: I am trying to work out how to run MPlayer from a python script that
> is called from a browser (javascript) using lighttpd web server (user and
> group www-data:www-data). MPlayer response is 'Cannot find HOME directory.'
> and therefore, I guess, can not pick-up the new audio codec order.... I
> have tried creating a 'home' dir for www-data with config in .mplayer to no
> avail. I don't have the expertise to work out what MPlayer is searching for
> or if I can change what it looks for as way of a 'home' dir.?

While you could just set the HOME environment variable, that is a bit overkill since it will affect all applications.
Might be better to only set MPLAYER_HOME to the directory that contains the configuration files, then you do not need to use/create a .mplayer subdir.


More information about the MPlayer-users mailing list