Liaison DLNA TV PC

Demande d'aide : c'est ici.
Répondre
jandelalune
Membre
Membre
Messages : 157
Inscription : 29 janv. 2018, 19:01
Status : Hors-ligne

Bonjour à tous

Je dispose d'une TV DLNA et d'un PC sous Linux Debian
Ma TV est installée sur le réseau domestique par ma Box Miami
Je voudrai lire sur ma TV les fichiers videos qui se trouvent sur mon PC

Je comprends qu'il me manque quelque chose mais je ne sais trop quoi

Lorsque je me renseigne sur Internet, je trouve des infos relativement datées qui ne m'inspirent qu'une confiance limitée

Quelqu'un pour me conseiller ??

Merci d'avance

A+
Avatar de l’utilisateur
piratebab
Site Admin
Site Admin
Messages : 5924
Inscription : 24 avr. 2016, 18:41
Localisation : sud ouest
Status : En ligne

Bonjour,
tout d'abord, il te faut un serveur multimedia compatible DLNA installé sur ton PC (par ex minidlna, mais il y en a d'autres plus simples à configurer)
C'est ce serveur qui va mettre à disposition les fichiers multimedia (en fonction de ce que tu lui auras dit de partager)
Ta TV devrait détecter automatiquement ce serveur, sauf si tu as un parefeu qui le bloque.
Perso j'ai mis mes fichiers multimedia sur un NAS synology, et son serveur multimedia est vu par tous les appareils (PC, tablettes android, smartphones ...)
jandelalune
Membre
Membre
Messages : 157
Inscription : 29 janv. 2018, 19:01
Status : Hors-ligne

Bonjour piratebab, et merci pour ta réponse

Depuis je cherche à utiliser minidlna pour envoyer mes images sur ma TV Philips effectivement reliée au réseau domestique en filiaire Ethernet

Donc téléchargement des paquets et j’obtiens un fichier /etc/dlna.conf

Code : Tout sélectionner

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

# 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_c$
media_dir=/var/lib/minidlna

# Set this to merge all media_dir base contents into the root container
# (The default is 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.
#network_interface=

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

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

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

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


Que je configure avec les infos trouvées sur Internet

Code : Tout sélectionner

# This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
# server.
#
# Sauf précision les options affichent leur valeur par déffault.
#
# On Debian, you can also refer to the minidlna.conf(5) man page for
# documentation about this file.

# Précise le nom de l'utilisateur autorisé à lancer la commande 
user=minidlna

# Chemin du répertoire à scanner pour chercher les fichiers à lire
#
# Cette option peut être spécifiée + d'une fois si vous devez scanner
# plusieurs répertoires
#
# 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

# A faire pour fusionner tous les répertoires media_dir dans le containeur root 
# (The default is no.)
#merge_media_dirs=no

# Path to the directory that should hold the database and album art cache.
# Chemin du répertoire qui contient .. sans doute les pochettes
#db_dir=/var/cache/minidlna

# Chemin du fichier journal.
#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

# Utliser un container différent tel que l'arborescence de l'arbre des répertoires 
# les présente
# 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=.

# Interface Réseau   (e.g. eth0), délimité par des virgules.
# Cette option peut être précisée +sieurs fois.
network_interface=eth0

# N° de port Réseau pour traffic HTTP (descriptions, SOAP, media transfer).
# Cette Option est obligatoire mais elle peut être spécifiée  (or it must be specified on the command-line
 # sur la ligne de commande en précisant "-p"
port=49200

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

# Nom du Serveur Dlna présenté aux périphériques clients.
# Par défault "hostname:username".
friendly_name=Mon Satellite

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

# Reconnaissance automatique de nouveaux fichiers dans le répertoirs media_dir.
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=5

# 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=no
le fichier /etc/default/minidlna installé :

Code : Tout sélectionner

# 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 même après configuration :

Code : Tout sélectionner

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

Bien que ma TV soit bien connectée au réseau, je n’arrive pas à y obtenir d’affichage, et je ne comprends pas ,malgré une journée d’essais et de recherches pour comprendre si cela vient de minidlna ou de mon poste : en particulier, j’ai lu que minidlna est un service automatiquement lancé à l’ouverture de l’ordinateur , j’en déduis que dès qu’il est lancé je devrai avoir un début d’affichage

Est-ce correct ?? Et si oui qu’elle est mon erreur puisque je n’ai pas le résultat ??

Par contre, je ne sais pas vérifier si oui ou non j'ai un parefeu : je sais seulement que je n'en ai pas installé ou configuré un volontairement ??

Merci d’avance à ceux qui pourront me proposer des pistes pour avancer ou des solutions
Avatar de l’utilisateur
piratebab
Site Admin
Site Admin
Messages : 5924
Inscription : 24 avr. 2016, 18:41
Localisation : sud ouest
Status : En ligne

Tout d'abord, une chose surprenante dans ta config:
media_dir=/var/lib/minidlna
Est ce là que tu as tes fichiers à partager ?
Ce n'est pas l'endroit approprié, il est préférable de les mettre dans un répertoire de ton user standard.
Pour vérifier si le serveur dlna est bien lancé:

Code : Tout sélectionner

#ps -ax |grep dlna
Ensuite,pour voir si ce n'est pas un pb sur la TV, essaie avec un autre appareil connecté au réseau local (smartphone, tablette, autre PC), et lance un client dlna (par ex VLC), et fait une recherche des serveurs DLNA sur le réseau.
Répondre