User Tools

Site Tools


Sidebar

Launch of Linino.org

wiki:lininominidlna

How to setup a Mediacenter based on minidlna

MiniDLNA is server software fully compliant with DLNA/UPnP clients. The MiniDNLA daemon is able to collect all the media files (music, pictures, and video) present on your mass-storage and to report to clients on a network.

Example clients include applications such as totem and xbmc, and devices such as portable media players, Smartphones, Televisions, and gaming systems (such as PS3 and Xbox 360).

Installation

opkg update
opkg install minidlna

this should be the output:

root@linino:/# opkg update
Downloading http://download.linino.org/linino_distro/master/latest/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/attitude_adjustment.
Downloading http://download.linino.org/linino_distro/master/latest/packages/Packages.sig.
Signature check passed.
 
root@linino:/# opkg install minidlna
Installing minidlna (1.0.24-1) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/minidlna_1.0.24-1_ar71xx.ipk.
Installing libexif (0.6.19-1) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/libexif_0.6.19-1_ar71xx.ipk.
Installing libjpeg (6b-1) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/libjpeg_6b-1_ar71xx.ipk.
Installing libsqlite3 (3071201-1) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/libsqlite3_3071201-1_ar71xx.ipk.
Installing libffmpeg-full (0.8.7-2) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/libffmpeg-full_0.8.7-2_ar71xx.ipk.
Installing alsa-lib (1.0.24.1-1) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/alsa-lib_1.0.24.1-1_ar71xx.ipk.
Installing kmod-sound-core (3.3.8-1) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/kmod-sound-core_3.3.8-1_ar71xx.ipk.
Installing kmod-input-core (3.3.8-1) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/kmod-input-core_3.3.8-1_ar71xx.ipk.
Installing libid3tag (0.15.1b-3) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/libid3tag_0.15.1b-3_ar71xx.ipk.
Installing libflac (1.2.1-1) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/libflac_1.2.1-1_ar71xx.ipk.
Installing libvorbis (1.2.3-1) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/libvorbis_1.2.3-1_ar71xx.ipk.
Installing libogg (1.1.4-2) to root...
Downloading http://download.linino.org/linino_distro/master/latest/packages/libogg_1.1.4-2_ar71xx.ipk.
Configuring libjpeg.
Configuring kmod-input-core.
Configuring kmod-sound-core.
Configuring alsa-lib.
Configuring libogg.
Configuring libexif.
Configuring libflac.
Configuring libvorbis.
Configuring libsqlite3.
Configuring libffmpeg-full.
Configuring libid3tag.
Configuring minidlna.

Configuration

Edit the configuration file placed in /etc/config/minidlna

config minidlna config
        option 'enabled' '**0**'
        option port '8200'
        option interface '**br-lan**'
        option friendly_name '**OpenWrt DLNA Server'**
        option db_dir '/var/run/minidlna'
        option log_dir '/var/log'
        option inotify '1'
        option enable_tivo '0'
        option strict_dlna '0'
        option presentation_url ''
        option notify_interval '900'
        option serial '12345678'
        option model_number '1'
        option root_container '.'
        list media_dir '/mnt'
        option 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/thu

here the explanation of all the fileds present on the configuration:

#------------------------------------------------------#
# port for HTTP (descriptions, SOAP, media transfer) traffic
#------------------------------------------------------#
port=8200
 
#------------------------------------------------------#
# network interfaces to serve, comma delimited
#------------------------------------------------------#
network_interface=br-lan
 
#------------------------------------------------------#
# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
#   can prepend the type, followed by a comma, to the directory:
#   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
#   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
#   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
#------------------------------------------------------#
# Directory of media is depend on your storage
#------------------------------------------------------#
media_dir=A,/mnt/sda1/music
media_dir=P,/mnt/sda1/picture
media_dir=V,/mnt/sda1/video
#------------------------------------------------------#
# set this if you want to customize the name that shows up on your clients
#------------------------------------------------------#
friendly_name=My DLNA Server
 
#------------------------------------------------------#
# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
#------------------------------------------------------#
db_dir=/mnt/sda1/minidlna/db
 
#------------------------------------------------------#
# set this if you would like to specify the directory where you want MiniDLNA to store its log file
#------------------------------------------------------#
log_dir=/mnt/sda1/minidlna/log
 
#------------------------------------------------------#
# this should be a list of file names to check for when searching for album art
# note: 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
 
#------------------------------------------------------#
# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
#------------------------------------------------------#
inotify=yes
 
#------------------------------------------------------#
# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
#------------------------------------------------------#
enable_tivo=no
 
#------------------------------------------------------#
# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
#   which may hurt JPEG serving performance on (at least) Sony DLNA products.
#------------------------------------------------------#
strict_dlna=no
 
#------------------------------------------------------#
# default presentation url is http address on port 80
#------------------------------------------------------#
presentation_url=http://192.168.1.1:8200/
 
#------------------------------------------------------#
# notify interval in seconds. default is 895 seconds.
#------------------------------------------------------#
notify_interval=900
 
#------------------------------------------------------#
# serial and model number the daemon will report to clients
# in its XML description
#------------------------------------------------------#
serial=12345678
model_number=1
 
#------------------------------------------------------#
# specify the path to the MiniSSDPd socket
#------------------------------------------------------#
#minissdpdsocket=/var/run/minissdpd.sock
 
#------------------------------------------------------#
# use different container as root of the tree
# possible values:
#   + "." - use standard container (this is the default)
#   + "B" - "Browse Directory"
#   + "M" - "Music"
#   + "V" - "Video"
#   + "P" - "Pictures"
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#------------------------------------------------------#
#root_container=.

Remember to change the field interface to change accordngly of the interfaces used, eth1 for wired connection or wlan0 for wireless, friendly_name for the dlnsa Server should appear on the DLNA client.

        option interface '**eth1,wlan0**'
        option friendly_name '**Linino DLNA Server'**
 

Execute the daemon

Enable the daemon and start it

/etc/init.d/minidlna enable
/etc/init.d/minidlna start

Now your Mediacenter is up and running!

/var/www/wiki.linino.org/data/pages/wiki/lininominidlna.txt · Last modified: 2014/07/11 10:41 by administrator

2014 © dog hunter llc and the Linino Community. Linino.org is a dog hunter sponsored community project. Credits