I’ve made some progress on the RPi Streaming Server.
To replicate this you’ll need to do the following:
1. Install miniDLNA
1 |
sudo apt-get install minidlna |
2. Edit the config file to how you want it. Edit it using vim
1 |
sudo vi /etc/minidlna.conf |
3. Here’s what I’m working with, and it works.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media # server. # # Unless otherwise noted, the commented out options show their default value. # # 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,/home/pi/stream_files/media/audio media_dir=P,/home/pi/stream_files/media/pictures media_dir=V,/home/pi/stream_files/media/video media_dir=/home/pi/stream_files/media # Path to the directory that should hold the database and album art cache. db_dir=/var/lib/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= # 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 |
You can grab the file itself here. The only thing that’s different is where I put the media directories. The rest of the instructions are still in the .conf, it’s much simpler than mediatomb for example.
Here’s a video of the whole thing working on 3 devices!
hello for me everything is working but I have mal ne ask you nUnable the well (puplich / publicly) if so how
Thank you
Would something like this work too from one Pi to another Pi ?
I have one Pi (wired connection) in the living room running RaspBMC, another Pi (wireless connection) in the bedroom running RaspBMC too.
Yesterday I tried without special settings to “read” a movie file from the living room Pi on the Pi in the bedroom. I used the uPNP library sharing feature to reach the file, but it was crappy slow, hardly watchable.
A smart streaming server on the Livingroom Pi might prevent the hickups during the watch, that’s why I’m asking.
What do you think ?
Michael
this would work great! I have done it myself a few times. You can even mount the dlna server as a local drive. Here’s a link on that approach http://askubuntu.com/questions/88754/upnp-dlna-client-player-recommendations. Report back when you’ve got everything all set up! Thanks for the comment!