Page 1 of 11 12345 ... LastLast
Results 1 to 10 of 109

Thread: Setting up uPnP with minidlna on the freenas nightlies post-09/25/2011

  1. #1
    Senior Member
    Join Date
    Sep 2011
    Posts
    416

    Setting up uPnP with minidlna on the freenas nightlies post-09/25/2011

    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:

    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.
    Last edited by gcooper; 09-27-2011 at 12:43 AM.

  2. #2
    Senior Moderator ProtoSD's Avatar
    Join Date
    Jul 2011
    Location
    San Diego, California
    Posts
    3,358
    On step 6, did you mean to say 'mount -ro /' ?
    Last edited by ProtoSD; 10-01-2011 at 06:16 PM.

  3. #3
    Senior Member
    Join Date
    Sep 2011
    Posts
    416
    Quote Originally Posted by protosd View Post
    On step 6, did you mean to say 'mount -ro /' ?
    Yeah.. thanks!

  4. #4
    Moderator
    Join Date
    May 2011
    Location
    New Zealand
    Posts
    81
    @gcooper: Any luck getting the nightly builds functioning again for the lazy users? Aka me.

  5. #5
    Senior Member
    Join Date
    Sep 2011
    Posts
    416
    Quote Originally Posted by cubix View Post
    @gcooper: Any luck getting the nightly builds functioning again for the lazy users? Aka me.
    I'll talk to jpaetzel about it. With any luck we will have something going by the end of the week.

  6. #6
    Where exactly this nightly build available? I cannot seems to find anywhere on sourceforge.

  7. #7
    Senior Member
    Join Date
    Sep 2011
    Posts
    416
    I'm going to add nightly images soon which can be downloaded via torrents, because getting the sourceforge infrastructure up and going again appears to have fallen a bit lower on the priority list here.

  8. #8
    Senior Member joeschmuck's Avatar
    Join Date
    May 2011
    Location
    Dark Side of the Moon
    Posts
    1,347
    EDIT: Deleted content because people were not reading the rest of this thread and missing the correct way to incorporate minidlna.
    Last edited by joeschmuck; 11-07-2011 at 01:23 AM.
    FreeNAS 8.3.1-Release-p1 w/MiniDLNA Plugin + MiniDLNA Automatic Scan Fix
    Gigabyte P45T-ES3G | Intel E8500 (3.2GHz) CPU | 16GB DDR3 1066 RAM
    Six WD Red WD20EFRX NAS Hard Drives (RAIDZ2, 7.3TB usable space)
    Adata PD7 USB Flash Drive (4GB) for OS | 1GB Patriot Xporter USB Flash Drive for Scripts & Plugins
    APC Back-UPS Pro BR1000G

  9. #9
    Junior Member
    Join Date
    Sep 2011
    Posts
    20
    see: http://forums.freenas.org/showthread...light=minidlna
    It points you to the proper file if you want to roll your own.

  10. #10
    Senior Member joeschmuck's Avatar
    Join Date
    May 2011
    Location
    Dark Side of the Moon
    Posts
    1,347
    Thanks, sure would be nice to consolidate all this into a single thread.
    FreeNAS 8.3.1-Release-p1 w/MiniDLNA Plugin + MiniDLNA Automatic Scan Fix
    Gigabyte P45T-ES3G | Intel E8500 (3.2GHz) CPU | 16GB DDR3 1066 RAM
    Six WD Red WD20EFRX NAS Hard Drives (RAIDZ2, 7.3TB usable space)
    Adata PD7 USB Flash Drive (4GB) for OS | 1GB Patriot Xporter USB Flash Drive for Scripts & Plugins
    APC Back-UPS Pro BR1000G

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •