minidlna und xbmc

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
beacherpille88
Beiträge: 5
Registriert: 03.02.2014 10:28:15

minidlna und xbmc

Beitrag von beacherpille88 » 08.02.2014 14:45:12

Hallo liebe Forengemeinde,

ich habe ein Problem bezüglich minidlna und xbmc.

miniDLNA wurde auf meinem Debian-Server installiert. Hier die config:

Code: Alles auswählen

# 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=V,/home/flipl/Videos
media_dir=A,/home/flipl/Musik
media_dir=p,/home/flipl/Bilder

# 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
Und hier das Log-File:

Code: Alles auswählen

[2014/02/08 14:03:27] minidlna.c:898: warn: Starting MiniDLNA version 1.0.24 [SQLite 3.7.13].
[2014/02/08 14:03:27] minidlna.c:926: warn: Creating new database...
[2014/02/08 14:03:27] minidlna.c:1006: warn: HTTP listening on port 8200
[2014/02/08 14:03:27] scanner.c:727: warn: Scanning /var/lib/minidlna
[2014/02/08 14:03:27] scanner.c:798: warn: Scanning /var/lib/minidlna finished (0 files)!
[2014/02/08 14:03:27] playlist.c:125: warn: Parsing playlists...
[2014/02/08 14:07:47] minidlna.c:898: warn: Starting MiniDLNA version 1.0.24 [SQLite 3.7.13].
[2014/02/08 14:07:47] minidlna.c:926: warn: Creating new database...
[2014/02/08 14:07:47] minidlna.c:132: error: bind(http): Die Adresse wird bereits verwendet
[2014/02/08 14:07:47] minidlna.c:1004: fatal: Failed to open socket for HTTP. EXITING
[2014/02/08 14:07:47] scanner.c:727: warn: Scanning /home/flipl/Videos
[2014/02/08 14:07:48] scanner.c:798: warn: Scanning /home/flipl/Videos finished (8 files)!
[2014/02/08 14:07:48] scanner.c:727: warn: Scanning /home/flipl/Musik
[2014/02/08 14:08:11] scanner.c:798: warn: Scanning /home/flipl/Musik finished (555 files)!
[2014/02/08 14:08:11] scanner.c:727: warn: Scanning /home/flipl/Bilder
[2014/02/08 14:08:11] scanner.c:798: warn: Scanning /home/flipl/Bilder finished (555 files)!
[2014/02/08 14:08:11] playlist.c:125: warn: Parsing playlists...
[2014/02/08 14:08:12] playlist.c:258: warn: Finished parsing playlists.
Sieht für mich eigentlich ganz normal aus.

Auf meinem Laptop mit Arch Linux habe ich xbmc installiert und versucht, UPNP-Quellen hinzuzufügen. Er findet auch den Server, zeigt aber leider keine Ordner oder Dateien an.

Leider weiß ich nicht recht, ob es ein Problem mit der Konfiguration am Server oder am Client zusammenhängt. :(

Könnt Ihr mir vielleicht einen Schubs in die richtige Richtung geben?

beacherpille88
Beiträge: 5
Registriert: 03.02.2014 10:28:15

Re: minidlna und xbmc

Beitrag von beacherpille88 » 08.02.2014 15:48:29

Habs sselber gelöst:

Es waren einige falsche Standardeinstellungen in der minidlna.conf.

Hier die funktionierende im Vergleich:

Code: Alles auswählen

# 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=V,/home/flipl/Videos
media_dir=A,/home/flipl/Musik
media_dir=P,/home/flipl/Bilder

# 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=debug

# 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=eth0

# IPv4 address to listen on (e.g. 192.0.2.1).
listening_ip=192.168.0.7

# 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=Debian-MiniDLNA

# 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

Cae
Beiträge: 6349
Registriert: 17.07.2011 23:36:39
Wohnort: 2130706433

Re: minidlna und xbmc

Beitrag von Cae » 09.02.2014 03:29:37

Ich bin mal so frei, ein Diff daraus dazuzupacken:

Code: Alles auswählen

--- /tmp/foo	2014-02-09 03:26:49.545433202 +0100
+++ /tmp/bar	2014-02-09 03:27:05.489293314 +0100
@@ -27,3 +27,3 @@
 media_dir=A,/home/flipl/Musik
-media_dir=p,/home/flipl/Bilder
+media_dir=P,/home/flipl/Bilder
 
@@ -39,3 +39,3 @@
 # and "debug" the lowest.
-#log_level=warn
+log_level=debug
 
@@ -52,6 +52,6 @@
 # Network interface(s) to bind to (e.g. eth0), comma delimited.
-#network_interface=
+network_interface=eth0
 
 # IPv4 address to listen on (e.g. 192.0.2.1).
-#listening_ip=
+listening_ip=192.168.0.7
 
@@ -62,6 +62,6 @@
 # The default is the IP address of the server on port 80.
-#presentation_url=http://example.com:80
+presentation_url=http://example.com:80
 
 # Name that the DLNA server presents to clients.
-#friendly_name=
+friendly_name=Debian-MiniDLNA
 
@@ -77,3 +77,3 @@
 # Automatic discovery of new files in the media_dir directory.
-#inotify=yes
+inotify=yes
Das ist vermutlich hilfreicher, wenn man nicht die komplette Config uebernehmen will.

Willkomme im Forum!

Gruss Cae
If universal surveillance were the answer, lots of us would have moved to the former East Germany. If surveillance cameras were the answer, camera-happy London, with something like 500,000 of them at a cost of $700 million, would be the safest city on the planet.

—Bruce Schneier

Antworten