zkyevolved
Posts: 14
Joined: Sat Apr 19, 2014 4:49 pm

Re: [TUTO] Install and SetUp minidlna media server

Tue May 05, 2015 10:12 am

Can anyone post the default minidlna.conf? Or even theirs, because I messed mine up :( I've tried uninstalling and reinstalling, but it didn't restore the original config file :( ... Thanks!

User avatar
DougieLawson
Posts: 29783
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: [TUTO] Install and SetUp minidlna media server

Tue May 05, 2015 10:20 am

I stripped the comments out to make it shorter

Code: Select all

media_dir=/var/lib/minidlna
db_dir=/var/lib/minidlna
log_dir=/var/log
log_level=warn
media_dir=A,/home/pi/audio # <=== CHANGE ME
port=8200
friendly_name=pi # <=== CHANGE ME
serial=12345678 # <=== CHANGE ME
model_number=1
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

zkyevolved
Posts: 14
Joined: Sat Apr 19, 2014 4:49 pm

Re: [TUTO] Install and SetUp minidlna media server

Tue May 05, 2015 10:52 am

DougieLawson wrote:I stripped the comments out to make it shorter

Code: Select all

media_dir=/var/lib/minidlna
db_dir=/var/lib/minidlna
log_dir=/var/log
log_level=warn
media_dir=A,/home/pi/audio # <=== CHANGE ME
port=8200
friendly_name=pi # <=== CHANGE ME
serial=12345678 # <=== CHANGE ME
model_number=1
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

Awesome, thank you.

Maybe you can help me solve this issue.

Code: Select all

media_dir=/var/lib/minidlna
db_dir=/var/lib/minidlna
log_dir=/var/log
log_level=warn
media_dir=V,/media/WD500GB/Movies
port=8200
friendly_name=MiniDLNA
serial=12345678
model_number=1
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
Is my code, it appears on the TV and on my Android device. As you can see, I didn't configure Audio or Pictures... yet this is what I see:

Image
Image

In fact, movies or video doesn't even appear in the list :(

Edit: I fixed it. Just by sudo service minidlna restart, that doesn't work. I also had to force-reload.

Awesome! Thanks for your help :)

Stev123
Posts: 23
Joined: Thu Jun 27, 2013 10:55 pm

Re: [TUTO] Install and SetUp minidlna media server

Tue Sep 15, 2015 10:50 pm

Hi All,

I can view files from my raspberry pi on my Samsung galaxy S3, but when I try to open/play them (videos, music or pictures), I get the error message: "Error downloading image from server". Can anyone help me to understand why this is happening? If more information is needed please let me know. I have spent hours trying to solve this but nothing I tried has worked.

Here is the log file /var/log/minidlna/log:

[2015/09/15 18:42:28] minidlna.c:898: warn: Starting MiniDLNA version 1.0.24 [SQLite 3.7.13].
[2015/09/15 18:42:28] minidlna.c:926: warn: Creating new database...
[2015/09/15 18:42:28] minidlna.c:132: error: bind(http): Address already in use
[2015/09/15 18:42:28] minidlna.c:1004: fatal: Failed to open socket for HTTP. EXITING
[2015/09/15 18:42:28] scanner.c:727: warn: Scanning /media/usbtest/music
[2015/09/15 18:42:28] scanner.c:798: warn: Scanning /media/usbtest/music finished (2 files)!
[2015/09/15 18:42:28] scanner.c:727: warn: Scanning /media/usbtest/pictures
[2015/09/15 18:42:29] scanner.c:798: warn: Scanning /media/usbtest/pictures finished (26 files)!
[2015/09/15 18:42:29] scanner.c:727: warn: Scanning /media/usbtest/videos
[2015/09/15 18:42:29] scanner.c:798: warn: Scanning /media/usbtest/videos finished (27 files)!
[2015/09/15 18:42:29] playlist.c:125: warn: Parsing playlists...


and here is my configuration file /etc/minidlna.conf:


# This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
# server.
#
# On Debian, you can also refer to the minidlna.conf(5) man page for
# documentation about this file.


# Path to the directory you want scanned for media files.
#
# This option can be specified more than once if you want multiple directories
# scanned.
#
# If you want to restrict a media_dir to a specific content type, you can
# prepend the directory name with a letter representing the type (A, P or V),
# followed by a comma, as so:
# * "A" for audio (eg. media_dir=A,/var/lib/minidlna/music)
# * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
# * "V" for video (eg. media_dir=V,/var/lib/minidlna/videos)
#
# WARNING: After changing this option, you need to rebuild the database. Either
# run minidlna with the '-R' option, or delete the 'files.db' file
# from the db_dir directory (see below).
# On Debian, you can run, as root, 'service minidlna force-reload' instead.
media_dir=A,/media/usbtest/music
media_dir=P,/media/usbtest/pictures
media_dir=V,/media/usbtest/videos

# Path to the directory that should hold the database and album art cache.
db_dir=/home/pi/minidlna

# Path to the directory that should hold the log file.
log_dir=/var/log

# Minimum level of importance of messages to be logged.
# Must be one of "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#log_level=warn
# Use a different container as the root of the directory tree presented to
# clients. The possible values are:
# * "." - standard container
# * "B" - "Browse Directory"
# * "M" - "Music"
# * "P" - "Pictures"
# * "V" - "Video"
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=.

# Network interface(s) to bind to (e.g. eth0), comma delimited.
#network_interface=

# IPv4 address to listen on (e.g. 192.0.2.1).
#listening_ip=

# Port number for HTTP traffic (descriptions, SOAP, media transfer).
port=8200

# URL presented to clients.
# The default is the IP address of the server on port 80.
#presentation_url=http://example.com:80

# Name that the DLNA server presents to clients.
friendly_name=RASPBERRYPI

# Serial number the server reports to clients.
serial=12345678

# Model name the server reports to clients.
#model_name=Windows Media Connect compatible (MiniDLNA)

# Model number the server reports to clients.
model_number=1

# Automatic discovery of new files in the media_dir directory.
inotify=yes

# List of file names to look for when searching for album art. Names should be
# delimited with a forward slash ("/").
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# Strictly adhere to DLNA standards.
# This allows server-side downscaling of very large JPEG images, which may
# decrease JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no

# Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
#enable_tivo=no

# Notify interval, in seconds.
notify_interval=895

# Path to the MiniSSDPd socket, for MiniSSDPd support.
#minissdpdsocket=/run/minissdpd.sock

Thanks
Stev

erroy
Posts: 1
Joined: Mon Mar 07, 2016 12:10 pm

Re: [TUTO] Install and SetUp minidlna media server

Mon Mar 07, 2016 12:16 pm

Hello!
Really nice guide!

But I think I have a problem with the scanner. Namely after setting the log level to debug i still don't see any entry of the scanner in the log file. force-reload only restarts the service.
Needless to say that the media folders are not scanned and minidlna has 0 files in the DB.
Any ideas how to debug the scanner?

Thanks!

NDR008
Posts: 4
Joined: Thu Dec 31, 2015 2:14 pm

Re: [TUTO] Install and SetUp minidlna media server

Sat Nov 12, 2016 1:15 pm

Hi guys, I had a minidlna server running well on my old pi with the 2015 release of Raspbian.

I now re-setup minidlna on a fresh install of the latest Raspbian Pixel build.
I have been scratching my head for ours...

the minidlna server shows up on my windows PC.
But it shows no media.
[2016/11/12 13:14:36] minidlna.c:1004: warn: Starting MiniDLNA version 1.1.2.
[2016/11/12 13:14:36] minidlna.c:1043: warn: HTTP listening on port 8200
[2016/11/12 13:14:36] inotify.c:92: error: inotify_add_watch(/media/pi/Ext1) [Permission denied]
[2016/11/12 13:14:36] inotify.c:92: error: inotify_add_watch(/media/pi/Ext1) [Permission denied]
[2016/11/12 13:14:36] inotify.c:198: warn: WARNING: Inotify max_user_watches [50000] is low or close to the number of used watches [2] and I do not have $

If I check minidlna's log:
[2016/11/12 13:12:16] scanner.c:702: warn: Scanning /media/pi/Ext1
[2016/11/12 13:12:16] scanner.c:732: warn: Error scanning /media/pi/Ext1
[2016/11/12 13:12:16] playlist.c:125: warn: Parsing playlists...
[2016/11/12 13:12:16] playlist.c:256: warn: Finished parsing playlists.
[2016/11/12 13:12:17] inotify.c:92: error: inotify_add_watch(/media/pi/Ext1) [Permission denied]
[2016/11/12 13:12:17] inotify.c:92: error: inotify_add_watch(/media/pi/Ext1) [Permission denied]
[2016/11/12 13:12:17] inotify.c:198: warn: WARNING: Inotify max_user_watches [50000] is low or close to the number of used watches [2] and I do not have $

Things I am doing differently. I have not manually mounted the external HDD using fstab - the drive is mounted automatically instead.

mount returns:
/dev/sda3 on /media/pi/Ext2 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
/dev/sda1 on /media/pi/Ext1 type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)


minidlna.conf:
media_dir=/media/pi/Ext1

What user does minidlna run as and how can I give it full permission to the Ext1 and Ext2?

jawedsoft
Posts: 15
Joined: Tue Dec 10, 2013 8:04 am

Re: [TUTO] Install and SetUp minidlna media server

Thu Mar 09, 2017 1:29 am

Excellent Tutorial!.
I got it right the very first time..and every time I need to set this up this is the only place I come to .

Thank you

regards,
jawed , India.

Bigdinner
Posts: 1
Joined: Thu Mar 16, 2017 2:51 pm

Re: [TUTO] Install and SetUp minidlna media server

Thu Mar 16, 2017 3:07 pm

Massively noob questions ahead I'm afraid.

Everything seems to be working and I can see the minidlna server with it's sub folders from my TV/iPhone/Windows 10 etc.

Image

I have one huge problem though as I can't upload content to these folders from my Windows PC. When I try to copy content from my nas to the minidlna server, I get this:

Image

My minidlna setup is called "Touran Server" as it's in my car and will be for the purpose of serving up films etc to my kids tablets when we're on long journey's etc.

Thanks in advance

KingPinCA
Posts: 1
Joined: Wed May 10, 2017 2:08 pm

Re: [TUTO] Install and SetUp minidlna media server

Wed May 10, 2017 7:09 pm

I'm not sure if you have a reply to your question yet but the best way that I've found to transfer files to the Pi from Windows is via SFTP (SSH / FTP). Just needs the Pi and the Windows box on the same network and it should work.

I'm currently investigating at doing something similar to what you are describing. Our new minivan came without a dvd system and using the Pi with a cheap router plugged all together seemed the right idea. What are you using currently? Have you had any issues with playback to devices from the Pi or have you put it into your vehicle yet?
Bigdinner wrote:Massively noob questions ahead I'm afraid.

Everything seems to be working and I can see the minidlna server with it's sub folders from my TV/iPhone/Windows 10 etc.

Image

I have one huge problem though as I can't upload content to these folders from my Windows PC. When I try to copy content from my nas to the minidlna server, I get this:

Image

My minidlna setup is called "Touran Server" as it's in my car and will be for the purpose of serving up films etc to my kids tablets when we're on long journey's etc.

Thanks in advance

sam9s
Posts: 22
Joined: Wed Jan 30, 2013 3:04 pm

Re: [TUTO] Install and SetUp minidlna media server

Thu Jul 06, 2017 5:50 pm

sudo service minidlna force-reload is NOT reloading NEW songs added. I followed the tut and all went super cool, minidlna started reading all the songs and within minutes I had like 500 songs ready and the webinterface also showed 500 songs, then after new hours I added like 100 new songs and then ran sudo service minidlna force-reload, but it did nothing .... restarting minidlna via sudo service minidlna start also did nothing sudo service minidlna status shows miniDLNA running .. I have no idea what to do now ???

4trgbfo09aks
Posts: 1
Joined: Wed Jul 05, 2017 5:48 am

Re: [TUTO] Install and SetUp minidlna media server - more than one harddisk

Thu Jul 27, 2017 8:30 am

Is it possible to use more than one harddisk as multimedia storage for minidlna?

The db should be stored on the external harddisk, automatic scanning for new media is deactivated. If you attach harddisk1 it'll be manual scanned for new media. If you detach harddisk1 and attach another new harddisk2 it will be scanned too, so that the db is saved on each harddisk.
If you attach harddisk1 again the db should be recognized. If you detach harddisk1 and attach harddisk2 the db should be recognized too.
Is this possible and if yes, how should I set this up? (i.e. fstab and minidlna.conf)

p26grinz
Posts: 14
Joined: Mon Jun 08, 2015 9:49 pm

Re: [TUTO] Install and SetUp minidlna media server

Thu Sep 28, 2017 10:06 am

uname -a
Linux RaspberryPi2 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
New minidlna install on RPI2. I have no media files installed.

The log contains:

Code: Select all

[2017/09/28 05:43:17] inotify.c:198: warn: WARNING: Inotify max_user_watches [10000] is low or close to the number of used watches [0] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
The value of 10000 was raised from the original 8192.

What should be a good working value for max_user_watches with no media files?

Thanks, Morris

Return to “Media centres”

Who is online

Users browsing this forum: No registered users and 5 guests