logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 03-09-2023 12:52:42

Alainmichel
Membre
Distrib. : Debian stable
Noyau : Linux 3.16.0-4-amd64
(G)UI : Gnome 3
Inscription : 15-12-2015

Résolu-minidlna

Bonjour,
je ne suis pas sûr d'être au bon endroit, mais voilà mon pb :
J'ai installé minidlna, paramétré minidlna.conf, essayé plusieurs paramètres, rien n'y fait, je ne diffuse pas (je ne suis pas visible dans les appareils upnp (portable et télé).
Le service marche, sans erreur (je dis cela, car quand j'ai essayé un autre media_dir, j'avais le message comme quoi il n'avait pas l'autorisation de lire.
J'ai (systemctl status minidlna) :
---------------------------------------------------------------------------------------------------------------------

minidlna.service - MiniDLNA lightweight DLNA/UPnP-AV server
     Loaded: loaded (/lib/systemd/system/minidlna.service; enabled; preset: enabled)
     Active: active (running) since Sun 2023-09-03 13:04:53 CEST; 36min ago
       Docs: man:minidlnad(1)
             man:minidlna.conf(5)
   Main PID: 17986 (minidlnad)
      Tasks: 2 (limit: 4485)
     Memory: 6.9M
        CPU: 85ms
     CGroup: /system.slice/minidlna.service
             └─17986 /usr/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid -S -r

sept. 03 13:04:53 pc110 systemd[1]: Started minidlna.service - MiniDLNA lightweight DLNA/UPnP-AV server.


-----------------------------------------------------------------------------------------------------------------------

Mon fichier minidnla.con est le suivant (j'ai enlevé les commentaires inutiles ici :

----------------------------------------------------------------------------------------------------------------------------
# Specify the user name or uid to run as (root by default).
# On Debian system command line option (from /etc/default/minidlna) overrides this.
user=root
#group=root

# Path to the directory you want scanned for media files.
#
media_dir=/media/bib/mini-dlna/Films

# 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/minidlna

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

# 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

# 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

# Which method to use for registering in TiVo: 'bonjour' (default) or
# legacy 'beacon'
#tivo_discovery=bonjour

# SSDP notify interval, in seconds.
notify_interval=120

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



J'ai essayé le port 8200, pas de résultat.
Merci d'avance si quelqu'un a une idée.
Alain

Dernière modification par Alainmichel (05-09-2023 12:46:34)

Hors ligne

#2 03-09-2023 13:06:43

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : Résolu-minidlna

hello
perso pour upnp j'utilise kodi
tu défini dans kodi les dossiers qui doivent faire parti de ta bibliothèque, tu actives la prise en charge upnp
A activer dans paramètre (roue cranté) puis service --->UPNP/DLNA
et puis du coup tu le vois sur la télé, si ton décodeur sait lire le codec
(chez moi avec le x265 pas d'image sad)

Dernière modification par Croutons (03-09-2023 16:26:30)


-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#3 03-09-2023 16:12:15

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : Résolu-minidlna

Croutons a écrit :

# Network interface(s) to bind to (e.g. eth0), comma delimited.
# This option can be specified more than once.
network_interface=eth0


tu es sur eth0?
regarde se que te renvoie

ip addr


y'a bien une page dédié sur le wiki ça date un peu, a tester
https://debian-facile.org/doc:reseau:minidlna

Dernière modification par Croutons (03-09-2023 17:29:35)


-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#4 04-09-2023 17:02:43

Alainmichel
Membre
Distrib. : Debian stable
Noyau : Linux 3.16.0-4-amd64
(G)UI : Gnome 3
Inscription : 15-12-2015

Re : Résolu-minidlna

Avant d'installer Kodi, qui est une grosse bête, j'aimerais faire fonctionner minidlna, que j'ai utilisé pendant des années.
Pour ip addr, voila la réponse :

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether e0:d5:5e:e0:16:a6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.14/24 brd 192.168.1.255 scope global dynamic noprefixroute enp2s0
       valid_lft 82102sec preferred_lft 82102sec
    inet6 fe80::e2d5:5eff:fee0:16a6/64 scope link noprefixroute
       valid_lft forever preferred_lft forever



J'ai utilisé le tuto, c'est pour cela que je suis perdu.

Hors ligne

#5 04-09-2023 17:28:10

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : Résolu-minidlna

donc il faut que tu changes ta ligne

# Network interface(s) to bind to (e.g. eth0), comma delimited.
# This option can be specified more than once.
network_interface=enp2s0



Alainmichel a écrit :

Mon fichier minidnla.con est le suivant


c'est sûrement un truc a la con qui bloque mais le fichier c'est minidnla.conf lol

Dernière modification par Croutons (04-09-2023 19:02:12)


-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#6 04-09-2023 19:53:27

Alainmichel
Membre
Distrib. : Debian stable
Noyau : Linux 3.16.0-4-amd64
(G)UI : Gnome 3
Inscription : 15-12-2015

Re : Résolu-minidlna

Merci pour la rectif, qui est logique, mais cela ne marche toujours pas.
(Je vérifie avec VLC sur un PC portable, il ne trouve pas d'appareil upnp, et la télé non plus)

J'ai vérifié que le port 49200 était ouvert :

alain@pc110:~$ telnet 192.168.1.14 49200
Trying 192.168.1.14...
Connected to 192.168.1.14.
Escape character is '^]'.
^]

HTTP/1.1 501 Not Implemented
Content-Type: text/html
Connection: close
Content-Length: 149
Server: Debian DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.3.0
Date: Mon, 04 Sep 2023 18:46:39 GMT
EXT:

<HTML><HEAD><TITLE>501 Not Implemented</TITLE></HEAD><BODY><H1>Not Implemented</H1>The HTTP Method is not implemented by this server.</BODY></HTML>
Connection closed by foreign host.



Le fait que minidlna n'a pas implémenté HTTP est normal, non ?

Hors ligne

#7 04-09-2023 20:00:50

captnfab
Admin-Girafe
Lieu : /dev/random
Distrib. : Debian
Noyau : Dur
(G)UI : gui gui, je zuis un doiseau
Inscription : 07-07-2008
Site Web

Re : Résolu-minidlna

Ce n'est pas HTTP qui n'est pas implémenté, c'est la commande que tu lui as donnée.

Si tu l'interroges avec curl par exemple:

curl -D http://192.168.1.14:49200/

tu devrais avoir un autre message :-)


captnfab,
Association Debian-Facile, bépo.
TheDoctor: Your wish is my command… But be careful what you wish for.

Hors ligne

#8 05-09-2023 08:43:44

Alainmichel
Membre
Distrib. : Debian stable
Noyau : Linux 3.16.0-4-amd64
(G)UI : Gnome 3
Inscription : 15-12-2015

Re : Résolu-minidlna

Ça marche !
J'avais dû mal faire la mise à jour de enp2s0.

Merci beaucoup.
Alain

Hors ligne

#9 05-09-2023 11:20:44

captnfab
Admin-Girafe
Lieu : /dev/random
Distrib. : Debian
Noyau : Dur
(G)UI : gui gui, je zuis un doiseau
Inscription : 07-07-2008
Site Web

Re : Résolu-minidlna


captnfab,
Association Debian-Facile, bépo.
TheDoctor: Your wish is my command… But be careful what you wish for.

Hors ligne

Pied de page des forums