miniDLNA config

531 views
Skip to first unread message

Lee Smith

unread,
Jan 23, 2012, 8:19:53 AM1/23/12
to Alt-F
I've been using miniDLNA on Alt-F without any problems, so great work
by the way :)

I just wondered if the web config interface could be extended to allow
the type of media in each directory to be specified? Currently it's
just a list of directories but the miniDLNA conf itself allows a
prefix for the type of media (A – Audio, V – Video, P – Pictures). So
that part of the generated minidlna.conf would look something like...

media_dir=P,/mnt/pictures
media_dir=V,/mnt/video
media_dir=A,/mnt/audio

It would also be nice to have an option to set friendly_name through
the web interface instead of editing minidlna.conf.

Thanks!

Joao Cardoso

unread,
Jan 24, 2012, 10:31:43 AM1/24/12
to Alt-F


On Jan 23, 1:19 pm, Lee Smith <leopoldsmy...@gmail.com> wrote:
> I've been using miniDLNA on Alt-F without any problems, so great work
> by the way :)
>
> I just wondered if the web config interface could be extended to allow
> the type of media in each directory to be specified? Currently it's
> just a list of directories but the miniDLNA conf itself allows a
> prefix for the type of media (A – Audio, V – Video, P – Pictures). So
> that part of the generated minidlna.conf would look something like...
>
> media_dir=P,/mnt/pictures
> media_dir=V,/mnt/video
> media_dir=A,/mnt/audio

Ready for the next release.

But, what are the advantages? Is it advantageous for the server or for
the client?

> It would also be nice to have an option to set friendly_name through
> the web interface instead of editing minidlna.conf.

I will take a look on that.

> Thanks!

Hooligan99

unread,
Jan 24, 2012, 5:37:31 PM1/24/12
to Alt-F
Joao, the advantage for me was that I have many thousands of album/
movie art jpgs in my audio and video folders (covers, fan art,
posters, etc) and didn't want them showing up as pictures in my
Pictures folders... the AVP keeps that from happening...

Well worth implementing in the web interface...

IMHO
Warren

Paul Medynski

unread,
Feb 7, 2012, 11:36:09 AM2/7/12
to Alt-F
> Ready for the next release.

Excellent! I have some local patches that I made to support this, but
never got around to submitting them - doh!

> But, what are the advantages? Is it advantageous for the server or for
> the client?

I'm in the same boat as Hooligan99. I have tens of thousands of each
of pictures and audio files. Without the media type prefices set
correctly for each media_dir in the config file, my Xbox 360 (and/or
miniDLNA) chokes trying to present the root folder of each media type.

> > It would also be nice to have an option to set friendly_name through
> > the web interface instead of editing minidlna.conf.
>
> I will take a look on that.

I have a patch for this and also the presentation_url, which is
required by the Xbox 360 to be the actual hostname or IP of the Alt-F
box. Maybe I should submit everything and let Joao decide what to
keep/use.

Joao - Do you have a preferred way to receive patches? I have diffs
against RC1 and can make patch files if necessary.

-Paul

Joao Cardoso

unread,
Feb 7, 2012, 1:34:08 PM2/7/12
to Alt-F


On Feb 7, 4:36 pm, Paul Medynski <p...@medynski.ca> wrote:
> > Ready for the next release.
>
> Excellent!  I have some local patches that I made to support this, but
> never got around to submitting them - doh!

shame on you :-)

...

> > > It would also be nice to have an option to set friendly_name through
> > > the web interface instead of editing minidlna.conf.
>
> > I will take a look on that.

Done.

> I have a patch for this and also the presentation_url, which is
> required by the Xbox 360 to be the actual hostname or IP of the Alt-F
> box.

You mean that it should be
presentation_url=http://192.168.1.253:8765

or could have the host name instead?
presentation_url=http://nas:8765

Or just doesn't matter?
It doesn't need to be configurable, right? Just setting the value
should be enough

>  Maybe I should submit everything and let Joao decide what to
> keep/use.
>
> Joao - Do you have a preferred way to receive patches?  I have diffs
> against RC1 and can make patch files if necessary.

Because of word wrapping, the best is to attach the "diff -u" against
trunk or the last release, unless it is a couple of lines patch, in
which case you can just post it online

-If you use the "new Google Groups" interface,
https://groups.google.com/d/forum/alt-f?fromgroups you can attach
files,
-or you can send the message by email to the group, alt-
f...@googlegroups.com with the attach
-or you can add an issue report in http://code.google.com/p/alt-f/issues/list
and attach a file

Thanks,

> -Paul

Joao Cardoso

unread,
Feb 7, 2012, 9:58:44 PM2/7/12
to Alt-F


On Feb 7, 6:34 pm, Joao Cardoso <whoami.jc...@gmail.com> wrote:
> On Feb 7, 4:36 pm, Paul Medynski <p...@medynski.ca> wrote:
...
> > I have a patch for this and also the presentation_url, which is
> > required by the Xbox 360 to be the actual hostname or IP of the Alt-F
> > box.
>
> You mean that it should be
>    presentation_url=http://192.168.1.253:8765
>
> or could have the host name instead?
>    presentation_url=http://nas:8765

Instead of using the above configuration directive, do you mind to
verify if the command line -w option has the same effect?
Minidlna supports the following cmd line options:

# minidlna --help
Usage:
minidlna [-d] [-f config_file]
[-a listening_ip] [-p port]
[-s serial] [-m model_number]
[-t notify_interval] [-P pid_filename]
[-w url] [-R] [-V] [-h]

Notes:
Notify interval is in seconds. Default is 895 seconds.
Default pid file is /var/run/minidlna.pid.
With -d minidlna will run in debug mode (not daemonize).
-w sets the presentation url. Default is http address on port
80
-h displays this text
-R forces a full rescan
-V print the version number

To test this, stop minidlna, edit /etc/minidlna.conf and *comment* the
presentation_url line; then edit /etc/init.d/S80minidlna and edit the
MINIDLNA_ARGS line so it contains the presentation_url value, e.g.

MINIDLNA_ARGS="http://192.168.1.1:8200" # no spaces around the '='

then restart minidlna -- does it still works with the Xbox?

PS-To start or stop a service from the command line, use "rc<service>
start|stop|status", as in

rcminidlna start

To boot-enable/disable a service, use "rc<service> enable|disable", as
in

rcminidlna enable

Thanks

Joao Cardoso

unread,
Feb 7, 2012, 10:25:14 PM2/7/12
to Alt-F

> To test this, stop minidlna, edit /etc/minidlna.conf and *comment* the
> presentation_url line; then edit /etc/init.d/S80minidlna and edit the
> MINIDLNA_ARGS line so it contains the presentation_url value, e.g.
>
> MINIDLNA_ARGS="http://192.168.1.1:8200"  # no spaces around the '='

Oops, should be

MINIDLNA_ARGS="-w http://192.168.1.1:8200"  # no spaces around the
'='
Reply all
Reply to author
Forward
0 new messages