Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 03/12/2017, à 11:54

arieugon

[Résolu] Serveur multimédia Upnp MiniDlna pas vu par mes équipements.

Bonjour à tous

J'ai installé un serveur minidlna sur ma machine selon les indications trouvé sur le site Ubuntu. J'ai également donné des droits d'accès au port 49200 de mon PC, et ceux permettant d'accéder aux fichiers. Malgré tout ça le serveur n'est pas vu de ma tablette, via VLC qui normalement trouve ce service mis en place de lui même, sans paramétrage spéciale. 

Je vous donne toutes les informations que je récupère en console en mode admin.

Ce qui est installé concernant upnp

# dpkg -l | grep [Uu][Pp][Nn][Pp]
ii  libgupnp-1.0-4:amd64                        0.20.16-1                                    amd64        GObject-based library for UPnP
ii  libgupnp-igd-1.0-4:amd64                    0.2.4-1                                      amd64        library to handle UPnP IGD port mapping
ii  libminiupnpc10:amd64                        1.9.20140610-2ubuntu2.16.04.1                amd64        UPnP IGD client lightweight library
ii  libupnp6                                    1:1.6.19+git20160116-1                       amd64        Portable SDK for UPnP Devices, version 1.6 (shared libraries)
ii  linux-igd                                   1.0+cvs20070630-5                            amd64        Linux UPnP Internet Gateway Device
rc  mediatomb-daemon                            0.12.1-47-g7ab7616-1ubuntu2                  all          UPnP MediaServer (daemon package)
ii  minidlna                                    1.1.5+dfsg-2                                 amd64        lightweight DLNA/UPnP-AV server targeted at embedded systems

Ce qui est installé concernant minidlna

# dpkg -l | grep minidlna
ii  minidlna                                    1.1.5+dfsg-2                                 amd64        lightweight DLNA/UPnP-AV server targeted at embedded systems

Les processus actifs concernant minidlna

# ps -aef | grep mini
root      1519     1  0 11:12 ?        00:00:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
jean-lo+  2282     1  0 11:12 ?        00:00:00 /usr/sbin/minidlnad -f /etc/minidlna.conf
jean-lo+  2712     1  0 11:13 ?        00:00:10 xed /home/jean-louis/Données/Bureau/minidlna/install.txt
root      5687  4614  0 11:46 pts/0    00:00:00 grep --color=auto mini

Ma configuration réseau

# ifconfig
enp3s0    Link encap:Ethernet  HWaddr 54:04:a6:14:44:fe  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          Packets reçus:1479 erreurs:0 :0 overruns:0 frame:0
          TX packets:1479 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:124251 (124.2 KB) Octets transmis:124251 (124.2 KB)

wlp2s0    Link encap:Ethernet  HWaddr 74:2f:68:95:bb:ff  
          inet adr:192.168.1.55  Bcast:192.168.1.255  Masque:255.255.255.0
          adr inet6: fe80::205a:2acf:bb28:64c7/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:7613 erreurs:0 :0 overruns:0 frame:0
          TX packets:9164 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:6910421 (6.9 MB) Octets transmis:2045042 (2.0 MB)

L'état du service minidlna

# service --status-all | grep minidlna
 [ + ]  minidlna

Le fichier /etc/default/minidlna

# cat /etc/default/minidlna
# Defaults for minidlna initscript
# sourced by /etc/init.d/minidlna
# installed at /etc/default/minidlna by the maintainer scripts

# These options can be set to modify the behavior of the minidlna init script.
# The options commented out show the default values.

# Start the daemon if set to "yes"
START_DAEMON="yes"

# Path to the configuration file
#CONFIGFILE="/etc/minidlna.conf"

# Path to the log file
#LOGFILE="/var/log/minidlna.log"

# User and group the daemon should run as
USER="minidlna"
GROUP="minidlna"

# Additional options that are passed to the daemon
DAEMON_OPTS=""

le fichier /etc/minidlna.conf

# cat /etc/minidlna.conf
# 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.

# Specify the user name or uid to run as.
user=minidlna


# 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)
#   * "PV" for pictures and video (eg. media_dir=PV,/var/lib/minidlna/digital_camera)
media_dir=/var/lib/minidlna
#media_dir=P,/mnt/sda5/jean-louis/Images/DLNA
#media_dir=V,/mnt/sda5/jean-louis/Musique
media_dir=V,/mnt/sda5/jean-louis/Vidéos/DLNA

# Set this to merge all media_dir base contents into the root container
# (The default is no.)
#merge_media_dirs=no

# Path to the directory that should hold the database and album art cache.
db_dir=/var/cache/minidlna

# Path to the directory that should hold the log file.
log_dir=/var/log

# Type and minimum level of importance of messages to be logged.
#
# The types are "artwork", "database", "general", "http", "inotify",
# "metadata", "scanner", "ssdp" and "tivo".
#
# The levels are "off", "fatal", "error", "warn", "info" or "debug".
# "off" turns of logging entirely, "fatal" is the highest level of importance
# and "debug" the lowest.
#
# The types are comma-separated, followed by an equal sign ("="), followed by a
# level that applies to the preceding types. This can be repeated, separating
# each of these constructs with a comma.
#
# The default is to log all types of messages at the "warn" level.
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=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"
#   * Or, you can specify the ObjectID of your desired root container
#     (eg. 1$F for Music/Playlists)
# If you specify "B" and the 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.
# This option can be specified more than once.
# Autre interface trouvée = enp3s0
network_interface=wlp2s0

# Port number for HTTP traffic (descriptions, SOAP, media transfer).
# This option is mandatory (or it must be specified on the command-line using
# "-p").
port=49200

# URL presented to clients (e.g. http://example.com:80).
#presentation_url=/

# Name that the DLNA server presents to clients.
# Defaults to "hostname: username".
friendly_name=Debian MiniDlna

# Serial number the server reports to clients.
# Defaults to the MAC address of nework interface.
#serial=

# Model name the server reports to clients.
#model_name=Windows Media Connect compatible (MiniDLNA)

# Model number the server reports to clients.
# Defaults to the version number of minidlna.
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 ("/").
# This option can be specified more than once.
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=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

# SSDP notify interval, in seconds.
notify_interval=895

# Path to the MiniSSDPd socket, for MiniSSDPd support.
#minissdpdsocket=/run/minissdpd.sock

# Always set SortCriteria to this value, regardless of the SortCriteria
# passed by the client
# e.g. force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
#force_sort_criteria=

# maximum number of simultaneous connections
# note: many clients open several simultaneous connections while streaming
max_connections=50

# set this to yes to allow symlinks that point outside user-defined media_dirs.
wide_links=yes

Les autorisations du pare feu

# ufw status
État : actif

Vers                       Action      De
----                       ------      --
49200/tcp                  ALLOW       Anywhere                  
49200/udp                  ALLOW       Anywhere                  
49200/tcp (v6)             ALLOW       Anywhere (v6)             
49200/udp (v6)             ALLOW       Anywhere (v6)          

Si besoin d'autres informations je vous les donne. Merci d'avance de votre aide.

Dernière modification par arieugon (Le 07/12/2017, à 12:44)


Portable ASUS K73E :  Ubuntu XFCE 20.04 / Ubuntu DDE 20.04 / Debian 10 /Debian 11 (testing) / Devuan 3
Le tout en multi-boot Grub Legacy.

Hors ligne

#2 Le 04/12/2017, à 11:31

bruno

Re : [Résolu] Serveur multimédia Upnp MiniDlna pas vu par mes équipements.

Bonjour,

Tu devrais désinstaller mediatomb qui est un autre serveur UPnP.

Tu devrais renseigner correctement la directive media_dir dans ton fichier minidlna.conf. Je doute que ce soit /var/lib/minidlna qui contient tes fichiers multimédia.

Tu devrais, au moins temporairement, désactiver le pare-feu.

En ligne

#3 Le 04/12/2017, à 12:33

arieugon

Re : [Résolu] Serveur multimédia Upnp MiniDlna pas vu par mes équipements.

Merci Bruno d'avoir répondu

J'ai effectivement fait la modif dans /etc/default/minidlna. J'ai supprimé le service mediatomb et j'ai arrêté le firewall. Et j'ai relancé la machine. J'ai vérifié que tout était correcte. Mais l'accès ne se fait toujours pas à partir de VLC sur ma tablette. C'est un grand mystère ... hmm

Si tu as d'autres pistes ...


Portable ASUS K73E :  Ubuntu XFCE 20.04 / Ubuntu DDE 20.04 / Debian 10 /Debian 11 (testing) / Devuan 3
Le tout en multi-boot Grub Legacy.

Hors ligne

#4 Le 07/12/2017, à 12:43

arieugon

Re : [Résolu] Serveur multimédia Upnp MiniDlna pas vu par mes équipements.

Puisqu'il en est ainsi j'ai regardé le fichier /var/log/minidlna.log. Je me demande pourquoi je n'ai pas été le voir avant. Bref !!!
Il m'indiquait des problèmes de droit d'accès. Et c'est vrai que ce n'est pas très limpide, il n'y a pas vraiment d'indication sur ce sujet. J'ai vue un post ou la personne donnait les droits root en ce qui concerne les accès à l'ensemble de ses données, ce qui n'est pas recommandé du tout. l

Donc dans le fichier /etc/default/minidlna :

# User and group the daemon should run as
USER="minidlna"
GROUP="mon_groupe"

Dans le fichier /etc/minidlna.conf

# Specify the user name or uid to run as.
user=minidlna
group=mon_groupe

Il faut donner les droits aux dossiers où se trouvent les fichiers multimédia :
1) Ne rien changer au propriétaire des fichiers : mon_nom_de_user:mon_nom_de_groupe
2) Donner les droits en lecture au groupe mon_nom_de_groupe au répertoire où se trouvent les fichiers multimédias

 # chmod -R 755 /chemin/mes/fichiers/multimédia

Voilà.

Comme VLC n'accède pas au serveur directement, j'ai installé l'application AirWire (qui lui fera appel à un logiciel de lecteure (VLC ou un autre) sur ma tablette qui elle voit bien mon serveur miniDlna).

Ça fonctionne super bien. J'espère que ça servira à quelqu'un. Je clôt le problème.


Portable ASUS K73E :  Ubuntu XFCE 20.04 / Ubuntu DDE 20.04 / Debian 10 /Debian 11 (testing) / Devuan 3
Le tout en multi-boot Grub Legacy.

Hors ligne

#5 Le 07/12/2017, à 13:32

LukePerp

Re : [Résolu] Serveur multimédia Upnp MiniDlna pas vu par mes équipements.

@arieugon : si un jour t'en as assez de passer par les lignes de commande pour ton serveur dlna, alors jette un oeil à ums dlna > interface graphique moderne


Desktop & Laptop - Ubuntu Mate dernière LTS - Intel i5 - 16 Go - Dual boot Windows offline

Hors ligne