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 01/04/2017, à 19:33

Seb@stien

[RESOLU] Minidlna : problème de configuration

Bonsoir à tous !

Je viens de me lancer dans l'installation de Minidlna afin de lire les vidéos de mon ordinateur ( Lenovo / Ubuntu 16.10 ) sur mon lecteur BluRay et/ou TV ( Sony dans les 2 cas ) le tout relié en ethernet.
J'ai consulté la documentation de Minidlna ainsi que le forum et je n'arrive pas à configurer correctement mon serveur.
A force d'éditer les différents fichiers et modifier le user en "root" puis en "monuser" puis re en "root" au fil de mes lectures, j'avoue m'être perdu en route ( root ! big_smile Désolé ! )
J'imagine que mon problème est une banale histoire de droit mais toujours est il que mon serveur apparaît bien sous son "friendly user name" sur mon écran de TV mais dès que je navigue dans l'arborescence : " il n'y a aucun fichier lisible"

Voici une copie de mon fichier de configuration, vous y verrez sûrement plus clair que moi

# 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

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

# 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=Serveur DLNA Sebastien

# Serial number the server reports to clients.
# Defaults to 00000000.
serial=681019810597110

# 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

# 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

J'ajoute que ces histoires de serveur sont nouvelles pour moi, ( mon ancienne Freebox faisait cela très bien toute seule mais pas ma nouvelle Box Orange ) alors merci pour votre indulgence et votre aide

Dernière modification par Seb@stien (Le 02/04/2017, à 11:01)

Hors ligne

#2 Le 01/04/2017, à 20:44

ar barzh paour

Re : [RESOLU] Minidlna : problème de configuration

d'après mes souvenirs , mais je n'en suis pas sur
media_dir=xxxxxxx où xxxxx est le répertoire qui contient les vidéos , ou images
et
db_dir=/var/cache/minidlna , c'est l'endroit où minidlna ira stocker sa base de données

je vois que tu as mis media_dir=/var/lib/minidlna , pourquoi pas mais ça m'étonne
il faut aussi enlever le commentaire à la ligne
db=/varcache/minidlna


PC          : B760M DS3H DDR4,  12th Gen Intel(R) Core(TM) i3-12100, RAM DDR4 8GiB -2400 Ubuntu 22.04, 22.04, 23.04
Portable1 : Intel(R) Core(TM)2 Duo CPU     T6570  @ 2.10GHz RAM 4GiB DDR2 667 MHz Ubuntu 23.04 ( en voyage )
Portable2 : T5750  @ 2.00GHz RAM 1GiB DDR2 667 Mhz Ubuntu 20.04 ( batterie HS )
stourm a ran war bep tachenn (Angela Duval) ( Je combats sur tous les fronts )

Hors ligne

#3 Le 01/04/2017, à 21:43

Lulux3

Re : [RESOLU] Minidlna : problème de configuration

Bonsoir
J'ai utilisé minidlna pendant un certain temps, et je me souviens d'avoir un peu galéré avec ces histoires de droits.
Je me rapelle qu'à la fin, je m'étais aperçu que le fait de passer en root avait modifié les droits sur les fichiers et répertoires (normal), mais que, si on change d'utilisateur après cela, le nouvel utilisateur ne peut pas se donner les droits (toujours normal..).
J'avais donc modifié "à la main' les droits par un

sudo chmod etc..

, et après tout allait bien.
Cela dit, j'utilise maintenant Plex Media Server, qui ajoute une fonctionalité de gestion de médiathèque, et qui est capable de transcoder à la volée les fichiers que ta box ne peut pas lire.

Hors ligne

#4 Le 01/04/2017, à 22:19

eric63

Re : [RESOLU] Minidlna : problème de configuration

salut
pour avoir subit l'expérience il y a quelques jours
après une réinstalle ou je suis revenu à kubuntu 16,04 j'avais suivi le fichier fournit par la doc et cela ne fonctionnait pas je ne voyais même pas mon serveur (attention je dis pas que la doc est fausse je dis juste que cela n'a pas marché pour moi sur ma machine)
et je suis tombé sur un autre tuto sur le forum (j'ai perdu la trace)
ou il fallait modifier les droits des utilisateurs
j'ai donc rajouté le groupe minidlna aux utilisateurs
comme ça je n'ais même pas à ouvrir une session pour accéder a monserveur sur ma freebox
et modifié le fichier /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=V,/home/kubu/Downloads

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

# Serial number the server reports to clients.
# Defaults to 00000000.
serial=681019810597110

# 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

# 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

comme tu peux le voir j'ai laissé beaucoup de choses intact sauf
media_dir=V,/home/kubu/Downloads
pour indiquer à minidlna où chercher les fichiers vidéos
port=8200
le port 49200 ne semble pas obligatoire ?
inotify=yes
c'est pour activer la mise à jour des derniers films (recent add)


Kubuntu 23.10 - WAYLAND- 64 bits + backports bêta = plasma 5.27.10 KDE 5.112.0 Qt 5.15.10 et noyau 6.5.0-27  4x intel i5-4570 3.2Ghz 12Go nvidia GTX 1060 6GB 3écrans
Comment installer une brother avec le script de demonipuch

J’utilise le clavier french AFNOR de chez LDLC c‘est fort

Hors ligne

#5 Le 02/04/2017, à 10:40

Seb@stien

Re : [RESOLU] Minidlna : problème de configuration

ar barzh paour a écrit :

je vois que tu as mis media_dir=/var/lib/minidlna , pourquoi pas mais ça m'étonne

Heu, non m'ssieur c'est pas moi ! Enfin je ne crois pas avoir modifié ça !
Je vais donc m'atteler à ces quelques menues modifications.

Merci pour l'aide !

Hors ligne

#6 Le 02/04/2017, à 10:45

Seb@stien

Re : [RESOLU] Minidlna : problème de configuration

Lulux3 a écrit :

Cela dit, j'utilise maintenant Plex Media Server, qui ajoute une fonctionalité de gestion de médiathèque, et qui est capable de transcoder à la volée les fichiers que ta box ne peut pas lire.

Un ami, bien geek sur les bords, m'a parlé de ce logiciel mais le connaissant j'ai eu un peu peur de ne pas m'en sortir !
Je vais tester Minidlna quelques temps et passer sur Plex si besoin.
D'ailleurs, pour le moment, mon souci est de lire des fichiers mkv encodés en DTS HD Master ( soit le format du Blu-Ray ). Je soupçonne un problème de débit dans mes liaisons pour le faire car les films en Dolby Digital ou DTS tout cours passent tout seuls !

Plex sait il faire cela ???

Merci pour les infos en tout cas

Hors ligne

#7 Le 02/04/2017, à 10:47

Seb@stien

Re : [RESOLU] Minidlna : problème de configuration

eric63 a écrit :

comme tu peux le voir j'ai laissé beaucoup de choses intact sauf
media_dir=V,/home/kubu/Downloads
pour indiquer à minidlna où chercher les fichiers vidéos
port=8200
le port 49200 ne semble pas obligatoire ?
inotify=yes
c'est pour activer la mise à jour des derniers films (recent add)

Merci à nouveau pour les modifications à apporter !
Je vais m'y mettre et advienne que pourra !!!

Encore merci et bon dimanche

Hors ligne

#8 Le 02/04/2017, à 11:01

Seb@stien

Re : [RESOLU] Minidlna : problème de configuration

YEEEEEEESSSSSSSSSS
Merci à tous pour ces infos !
Je peux voir et lire mes vidéos sur ma TV !
En revanche, pour le DTS HD Master, il y a bien un problème car la lecture s'arrête au bout de quelques secondes !!!

Je vais peut être tenter l'expérience Plex pour zapper le lecteur DLNA de ma platine Blu-Ray qui est peut être le maillon faible de la chaîne.

Encore merci pour les infos, je passe le sujet en Résolu !

Hors ligne