(Example TV, Media player, PS3, Xbox etc.)
Install minidlna package
$ sudo apt-get install minidlna
Add pi user to minidlna group
$ sudo usermod -a -G minidlna pi
Create Directory for store media file
Example:
$ mkdir -p /home/pi/minidlna/music
$ mkdir -p /home/pi/minidlna/pictures
$ mkdir -p /home/pi/minidlna/videos
$ mkdir -p /home/pi/.minidlna
Change Mode of /home/pi/minidlna and /home/pi/.minidlna
$ sudo chmod 777 /home/pi/minidlna
$ sudo chmod 777 /home/pi/.minidlna
Config MiniDLNA
$ sudo nano /etc/minidlna.conf
Modify this file
...
db_dir=/home/pi/.minidlna/data
log_dir=/home/pi/.minidlna/data/log
# * "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)
media_dir=A,/home/pi/minidlna/music
media_dir=P,/home/pi/minidlna/pictures
media_dir=V,/home/pi/minidlna/videos
# Name that the DLNA server presents to clients.
friendly_name=RASPBERRY DLNA
# Automatic discovery of new files in the media_dir directory.
inotify=yes
# Notify interval, in seconds.
notify_interval=895
...
Restart MiniDLNA Service
$ sudo /etc/init.d/minidlna restart
Or re-indexing all of media files
$ sudo /etc/init.d/minidlan force-reload
Test on Device supported with DLNA/UPnP to play media.
Reference:
Digital Living Network Alliance https://en.wikipedia.org/wiki/Digital_Living_Network_Alliance
ReadyMedia (MiniDLNA Source Code)
http://sourceforge.net/projects/minidlna/
ReadyMedia (Wiki of Archlinux)
https://wiki.archlinux.org/index.php/ReadyMedia
No comments:
Post a Comment