Skip to content

chrdev/minidlna

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

873 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiniDLNA with sonos support

## Usage

Set minidlna port to 10243. In sonos app, turn on "System -> Media Servers -> Show Media Servers".

This fork doesn't affect other already supported devices.

Tip 1: Sonos S2 dropped DLNA functionality, so use S1.

Tip 2: There is a "Show UPnP servers" in the sonos app, it doesn't matter.

#### Album art

The original minidlna serves 160x160 album arts. It's blurry on Sonos App. So this fork sends raw art files to sonos. Arts are searched in this order:

1. audiofilename.ext.cover.jpg

2. audiofilename.jpg

3. file names specified by album_art_names - minidlna.conf.

960x960 is recommended for optimal visuals, and 480x480 for limited bandwidth.

As a protective measure, art file size can not exceed 512KB.

## Development

Sonos support only a limited number of DLNA servers, namely Windows Media Player and reportedly a few other proprietary software.

So we can mimic Windows Media Player.

1. Model name must be "Windows Media Player Sharing", model number be "12.0". Then the server is listed and browsable.

2. Port number must be 10243. This is the port that "Windows Media Player Network Sharing Service" uses. Actually, description, control and event can use any port, but media files must use 10243.

3. Media files must reside in /WMPNSSv4/ so that sonos will request for arts. The requsting syntax is "/WMPNSSv4/.../audiofile.ext?albumArt=true".

4. Metadata in SOAP: album artist is 'upnp:artist role="AlbumArtist"', track artist is 'upnp:artist role="Performer"'. See upnpsoap.c for details.

## Original README:

MiniDLNA project
(c) 2009 Justin Maggard
Portions (c) 2006-2007 Thomas Bernard
webpage: http://sourceforge.net/projects/minidlna/

This directory contains the MiniDLNA daemon software.
This software is subject to the conditions detailed in
the LICENCE file provided with this distribution.

Parts of the software including the discovery code are
licensed under the BSD revised license which is detailed
in the LICENSE.miniupnpd file provided with the distribution.
More information on MiniUPnPd can be found at http://miniupnp.free.fr.


The MiniDLNA daemon is an UPnP-A/V and DLNA service which
serves multimedia content to compatible clients on the network.
See http://www.upnp.org/ for more details on UPnP
and http://www.dlna.org/ for mode details on DLNA.

Prerequisites
==================

- libexif
- libjpeg
- libid3tag
- libFLAC
- libvorbis
- libsqlite3
- libavformat (the ffmpeg libraries)


Justin Maggard

About

A minidlna supports sonos

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 96.5%
  • M4 2.1%
  • Other 1.4%