G
gcooper
Guest
NOTE: Here are complete semi-official directions for how to set things up with uPnP with minidlna (it will be added to the GUI eventually).
1. Login as root to FreeNAS box.
2. Execute the following commands:
3. Copy the following to /usr/local/etc/minidlna.conf (replace the parameters below with something more useful for your install.. see /usr/local/etc/minidlna.conf.sample for hints on what you can change):
4. Test out your settings
Things should be served up properly now -- otherwise, the console will output one or more relevant failure messages.
5. Making the change permanent
6. Cleanup
Notes:
1. Login as root to FreeNAS box.
2. Execute the following commands:
Code:
mount -wu / # There's a bug in either FreeNAS or the port that prevents this from being done automatically. pw user add dlna # Preserve the sample minidlna.conf file test -f /usr/local/etc/minidlna.conf.sample || cp /usr/local/etc/minidlna.conf.sample /usr/local/etc/minidlna.conf
3. Copy the following to /usr/local/etc/minidlna.conf (replace the parameters below with something more useful for your install.. see /usr/local/etc/minidlna.conf.sample for hints on what you can change):
Code:
port=8200 media_dir=/mnt/tank friendly_name=freenas db_dir=/var/db/minidlna 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 inotify=no enable_tivo=no strict_dlna=no notify_interval=300 serial=12345678 model_number=1
4. Test out your settings
Code:
minidlna -f /usr/local/etc/minidlna.conf
Things should be served up properly now -- otherwise, the console will output one or more relevant failure messages.
5. Making the change permanent
Code:
echo 'minidlna_enable="YES"' >> /conf/base/etc/rc.conf
6. Cleanup
Code:
# DO NOT FORGET THIS! mount -ru /
Notes:
- I've gotten things to play properly with my Xbox 360.
- minidlna crashes on VLC (is most likely a bug with VLC) under FreeBSD and OSX.
- This won't work with all Samsung TVs as noted by JoeSchmuck on the forums.
- Sony BlueRay/PS3s are picky and won't play certain MIME types under the "All Media" Section (you might have to pick the appropriate media section in order for this to work properly). I know this for a fact with my Sony BlueRay player (detects the share, but won't let me play media under all media); but I can't confirm with a PS3. MP3s work for sure, but m4as won't work with some Sony BlueRay players.
- Based on the above compatibility list, something seems fishy with the player support (I can play Xvid on my 360, but not one the Sony BlueRay player; I can't play non-copyright protected iTunes mp4 media on my Sony BlueRay player and Xbox 360; mp3s work on the BlueRay and the 360 after manually rescanning the directory).
- If one of the other media players plays your device better than minidlna -- please let me know and I'll see if I can port support to minidlna or fix support in FreeBSD! Please note what media type you're having issues with as well as what codec you're having issues with (GSpot is recommended if you're using Windows).
- Auto-rescanning seems broken because I have to issue minidlna with -R in order for it scan for new files.