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

Jim Cross jimgcross at gmail.com
Sat Sep 13 12:36:00 CEST 2014


Thanks again for the suggestion.
Currently, programmatically (python script) I modify owner & group  of
'/etc/mplayer/mplayer.conf' to 'www-data:www-data' and then append
'include=/var/www/mplayer.conf'. Obviously, this allows the same goal and
have a modifiable config file but is a bit hackish. That said, there is
still an issue to get the fifo (obviously slave mode) to work (for mplayer
to read the fifo), I still need to start mplayer with sudo for it to read
the fifo, again a bit hackish.

On Sat, Sep 13, 2014 at 5:51 AM, Reimar Döffinger <Reimar.Doeffinger at gmx.de>
wrote:

> 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.
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>


More information about the MPlayer-users mailing list