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 19/01/2023, à 17:16

BSO

mplayer : flux rtsp

Bonjour a tous,

J'utilise Ubuntu mate 22.04 et je n'arrive pas à lire un flux rtsp avec mplayer.
Il s'agit d'un flux qui vient d'une camera IP TP Link tapo 320cw. Selon le mode d'emploi de maplayer et les recommandation de tp link, j'ai tapé "mplayer rtsp://adresse_ip/stream1" dans la console e j'obtiens le message d'erreur ci-dessous, pourriez-vous m'aider à l'interpréter ? Merci beaucoup !!!

mplayer rtsp://192.168.1.4/stream1
MPlayer 1.4 (Debian), built with gcc-11 (C) 2000-2019 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://192.168.1.4/stream1.
Resolving 192.168.1.4 for AF_INET6...

Couldn't resolve name for AF_INET6: 192.168.1.4
Connecting to server 192.168.1.4[192.168.1.4]: 554...

librtsp: server responds: 'RTSP/1.0 401 Unauthorized'
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
libavformat version 58.76.100 (external)
libavformat file format detected.
[rtsp @ 0x7f915364e8e0]method DESCRIBE failed: 401 Unauthorized
LAVF_header: av_open_input_stream() failed


Exiting... (End of file)

Dernière modification par BSO (Le 20/01/2023, à 15:00)

Hors ligne

#2 Le 20/01/2023, à 01:01

Vobul

Re : mplayer : flux rtsp

Est-ce que tu peux essayer avec vlc ?

cvlc --no-one-instance -vv rtsp://192.168.1.4/stream1

Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM

Hors ligne

#3 Le 20/01/2023, à 09:20

BSO

Re : mplayer : flux rtsp

Merci beaucoup Vobul pour ta réponse.
Voici ci-dessous ce que j'obtiens :

abbaye_donezan@Infirmerie:~$ cvlc --no-one-instance -vv rtsp://192.168.1.4/stream1
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055c0d9da8580] main libvlc debug: VLC media player - 3.0.16 Vetinari
[000055c0d9da8580] main libvlc debug: Copyright © 1996-2021 the VideoLAN team
[000055c0d9da8580] main libvlc debug: revision 3.0.13-8-g41878ff4f2
[000055c0d9da8580] main libvlc debug: configured with ./configure  '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-debug' '--config-cache' '--disable-update-check' '--enable-fast-install' '--docdir=/usr/share/doc/vlc' '--with-binary-version=3.0.16-1build7' '--enable-a52' '--enable-aa' '--enable-aribsub' '--enable-avahi' '--enable-bluray' '--enable-caca' '--enable-chromaprint' '--enable-chromecast' '--enable-dav1d' '--enable-dbus' '--enable-dca' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gles2' '--enable-gnutls' '--enable-harfbuzz' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-mad' '--enable-matroska' '--enable-mod' '--enable-mpc' '--enable-mpg123' '--enable-mtp' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-sdl-image' '--enable-sftp' '--enable-shine' '--enable-shout' '--enable-skins2' '--enable-sndio' '--enable-soxr' '--enable-spatialaudio' '--enable-speex' '--enable-svg' '--enable-svgdec' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vdpau' '--enable-vnc' '--enable-vorbis' '--enable-x264' '--enable-x265' '--enable-zvbi' '--with-kde-solid=/usr/share/solid/actions/' '--disable-aom' '--disable-crystalhd' '--disable-d3d11va' '--disable-decklink' '--disable-directx' '--disable-dsm' '--disable-dxva2' '--disable-fdkaac' '--disable-fluidlite' '--disable-freerdp' '--disable-goom' '--disable-gst-decode' '--disable-libtar' '--disable-live555' '--disable-macosx' '--disable-macosx-avfoundation' '--disable-macosx-qtkit' '--disable-mfx' '--disable-microdns' '--disable-opencv' '--disable-projectm' '--disable-schroedinger' '--disable-sparkle' '--disable-srt' '--disable-telx' '--disable-vpx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-dc1394' '--enable-dv1394' '--enable-libplacebo' '--enable-linsys' '--enable-nfs' '--enable-udev' '--enable-v4l2' '--enable-wayland' '--enable-libva' '--enable-vcd' '--enable-smbclient' '--disable-oss' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' '--disable-omxil' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -ffile-prefix-map=/build/vlc-hoXXw1/vlc-3.0.16=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security ' 'LDFLAGS=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -ffile-prefix-map=/build/vlc-hoXXw1/vlc-3.0.16=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security ' 'OBJCFLAGS=-g -O2 -ffile-prefix-map=/build/vlc-hoXXw1/vlc-3.0.16=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security'
[000055c0d9da8580] main libvlc debug: searching plug-in modules
[000055c0d9da8580] main libvlc debug: loading plugins cache file /usr/lib/x86_64-linux-gnu/vlc/plugins/plugins.dat
[000055c0d9da8580] main libvlc debug: recursively browsing `/usr/lib/x86_64-linux-gnu/vlc/plugins'
[000055c0d9da8580] main libvlc debug: plug-ins loaded: 508 modules
[000055c0d9da8580] main libvlc debug: opening config file (/home/abbaye_donezan/.config/vlc/vlcrc)
[000055c0d9da88d0] main logger debug: looking for logger module matching "any": 4 candidates
[000055c0d9da88d0] main logger debug: using logger module "console"
[000055c0d9da8580] main libvlc debug: translation test: code is "C"
[000055c0d9e420c0] main keystore debug: looking for keystore module matching "memory": 4 candidates
[000055c0d9e420c0] main keystore debug: using keystore module "memory"
[000055c0d9da8580] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU 
[000055c0d9e462e0] main input debug: Creating an input for 'Media Library'
[000055c0d9e462e0] main input debug: Input is a meta file: disabling unneeded options
[000055c0d9e462e0] main input debug: using timeshift granularity of 50 MiB
[000055c0d9e462e0] main input debug: using default timeshift path
[000055c0d9e462e0] main input debug: `file/directory:///home/abbaye_donezan/.local/share/vlc/ml.xspf' gives access `file' demux `directory' path `/home/abbaye_donezan/.local/share/vlc/ml.xspf'
[000055c0d9e41640] main input source debug: creating demux: access='file' demux='directory' location='/home/abbaye_donezan/.local/share/vlc/ml.xspf' file='/home/abbaye_donezan/.local/share/vlc/ml.xspf'
[000055c0d9e3e950] main demux debug: looking for access_demux module matching "file": 16 candidates
[000055c0d9e3e950] main demux debug: no access_demux modules matched
[000055c0d9e54b40] main stream debug: creating access: file:///home/abbaye_donezan/.local/share/vlc/ml.xspf
[000055c0d9e54b40] main stream debug:  (path: /home/abbaye_donezan/.local/share/vlc/ml.xspf)
[000055c0d9e54b40] main stream debug: looking for access module matching "file": 28 candidates
[000055c0d9e54b40] main stream debug: using access module "filesystem"
[000055c0d9e55d20] main stream debug: looking for stream_filter module matching "prefetch,cache_read": 26 candidates
[000055c0d9e55d20] cache_read stream debug: Using stream method for AStream*
[000055c0d9e55d20] cache_read stream debug: starting pre-buffering
[000055c0d9e55d20] cache_read stream debug: received first data after 0 ms
[000055c0d9e55d20] cache_read stream debug: pre-buffering done 296 bytes in 0s - 6150 KiB/s
[000055c0d9e55d20] main stream debug: using stream_filter module "cache_read"
[000055c0d9e56c50] main stream debug: looking for stream_filter module matching "any": 26 candidates
[000055c0d9e56c50] playlist stream debug: using XSPF playlist reader
[000055c0d9e56c50] main stream debug: using stream_filter module "playlist"
[000055c0d9e56c50] main stream debug: stream filter added to 0x55c0d9e55d20
[000055c0d9e5a1e0] main stream debug: looking for stream_filter module matching "any": 26 candidates
[000055c0d9e5a1e0] main stream debug: no stream_filter modules matched
[000055c0d9e41a20] main stream_directory debug: looking for stream_directory module matching "any": 1 candidates
[000055c0d9e41a20] main stream_directory debug: no stream_directory modules matched
[000055c0d9e41640] main input source debug: attachment of directory-extractor failed for file:///home/abbaye_donezan/.local/share/vlc/ml.xspf
[000055c0d9e5a1e0] main stream debug: looking for stream_filter module matching "record": 26 candidates
[000055c0d9e5a1e0] main stream debug: using stream_filter module "record"
[000055c0d9e41640] main input source debug: creating demux: access='file' demux='directory' location='/home/abbaye_donezan/.local/share/vlc/ml.xspf' file='/home/abbaye_donezan/.local/share/vlc/ml.xspf'
[000055c0d9e3e950] main demux debug: looking for demux module matching "directory": 54 candidates
[000055c0d9e3e950] main demux debug: using demux module "directory"
[000055c0d9e3dd30] main demux meta debug: looking for meta reader module matching "any": 2 candidates
[000055c0d9e3dd30] lua demux meta debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/reader
[000055c0d9e3dd30] lua demux meta debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/reader
[000055c0d9e3dd30] lua demux meta debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/reader/filename.luac
[000055c0d9e3dd30] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[000055c0d9e3dd30] main demux meta debug: no meta reader modules matched
[000055c0d9e462e0] main input debug: `file/directory:///home/abbaye_donezan/.local/share/vlc/ml.xspf' successfully opened
[000055c0d9e62bb0] main xml reader debug: looking for xml reader module matching "any": 1 candidates
[000055c0d9e62bb0] main xml reader debug: using xml reader module "xml"
[000055c0d9e462e0] main input debug: EOF reached
[000055c0d9e3e950] main demux debug: removing module "directory"
[000055c0d9e5a1e0] main stream debug: removing module "record"
[000055c0d9e56c50] main stream debug: removing module "playlist"
[000055c0d9e55d20] main stream debug: removing module "cache_read"
[000055c0d9e54b40] main stream debug: removing module "filesystem"
[000055c0d9e43cc0] main playlist debug: creating audio output
[000055c0d9e630f0] main audio output debug: looking for audio output module matching "any": 6 candidates
[000055c0d9e630f0] vlcpulse audio output debug: using library version 15.99.0
[000055c0d9e630f0] vlcpulse audio output debug:  (compiled with version 15.99.0, protocol 35)
[000055c0d9e630f0] vlcpulse audio output debug: connected locally to /run/user/1000/pulse/native as client #39
[000055c0d9e630f0] vlcpulse audio output debug: using protocol 35, server protocol 35
[000055c0d9e630f0] pulse audio output debug: adding sink 0: auto_null (Sortie fictive)
[000055c0d9e630f0] main audio output debug: using audio output module "pulse"
[000055c0d9e43cc0] main playlist debug: keeping audio output
[000055c0d9e414b0] main interface debug: looking for interface module matching "dbus,none": 17 candidates
[000055c0d9e414b0] dbus interface debug: listening on dbus as: org.mpris.MediaPlayer2.vlc
[000055c0d9e414b0] main interface debug: using interface module "dbus"
[000055c0d9e3df20] main interface debug: looking for interface module matching "hotkeys,none": 17 candidates
[000055c0d9e3df20] main interface debug: using interface module "hotkeys"
[000055c0d9e8a640] main interface debug: looking for interface module matching "globalhotkeys,none": 17 candidates
[000055c0d9e8a640] main interface debug: using interface module "xcb_hotkeys"
[000055c0d9e8c790] main interface debug: looking for interface module matching "dummy": 17 candidates
[000055c0d9e8c790] dummy interface: using the dummy interface module...
[000055c0d9e8c790] main interface debug: using interface module "dummy"
[000055c0d9e43cc0] main playlist debug: processing request item: null, node: Playlist, skip: 0
[000055c0d9e43cc0] main playlist debug: rebuilding array of current - root Playlist
[000055c0d9e43cc0] main playlist debug: rebuild done - 1 items, index -1
[000055c0d9e43cc0] main playlist debug: starting playback of new item
[000055c0d9e43cc0] main playlist debug: resyncing on rtsp://192.168.1.4/stream1
[000055c0d9e43cc0] main playlist debug: rtsp://192.168.1.4/stream1 is at 0
[000055c0d9e43cc0] main playlist debug: creating new input thread
[000055c0d9e414b0] dbus interface debug: Getting All properties
[00007fc2ac000c90] main input debug: Creating an input for 'rtsp://192.168.1.4/stream1'
[000055c0d9e43cc0] main playlist debug: requesting art for new input thread
[00007fc2ac000c90] main input debug: using timeshift granularity of 50 MiB
[00007fc2ac000c90] main input debug: using default timeshift path
[00007fc2ac000c90] main input debug: `rtsp://192.168.1.4/stream1' gives access `rtsp' demux `any' path `192.168.1.4/stream1'
[00007fc2a4000fb0] main input source debug: creating demux: access='rtsp' demux='any' location='192.168.1.4/stream1' file='(null)'
[00007fc2a4001140] main demux debug: looking for access_demux module matching "rtsp": 16 candidates
[00007fc2a4001140] main demux debug: no access_demux modules matched
[00007fc2a40015e0] main stream debug: creating access: rtsp://192.168.1.4/stream1
[00007fc2a40015e0] main stream debug: looking for access module matching "rtsp": 28 candidates
[00007fc298000c30] main meta fetcher debug: looking for meta fetcher module matching "any": 1 candidates
[00007fc298000c30] lua meta fetcher debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/fetcher
[00007fc298000c30] lua meta fetcher debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/fetcher
[00007fc298000c30] lua meta fetcher debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
[00007fc298000c30] main meta fetcher debug: no meta fetcher modules matched
[00007fc298000c30] main art finder debug: looking for art finder module matching "any": 2 candidates
[00007fc2a40015e0] satip stream debug: try to open 'rtsp://192.168.1.4/stream1'
[00007fc2a40015e0] satip stream debug: connect to host '192.168.1.4'
[00007fc2a40015e0] main stream debug: net: connecting to 192.168.1.4 port 554
[00007fc298000c30] lua art finder debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/art
[00007fc298000c30] lua art finder debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art
[00007fc298000c30] lua art finder debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
[00007fc298000c30] lua art finder debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
[00007fc298000c30] lua art finder debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
[00007fc298000c30] lua art finder debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
[00007fc298000c30] lua art finder debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
[00007fc298000c30] lua art finder debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
[00007fc298000c30] lua art finder debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
[00007fc298000c30] lua art finder debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
[00007fc298000c30] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
[00007fc298000c30] main art finder debug: no art finder modules matched
[00007fc29c000c30] main meta fetcher debug: looking for meta fetcher module matching "any": 1 candidates
[00007fc29c000c30] lua meta fetcher debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/fetcher
[00007fc29c000c30] lua meta fetcher debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/fetcher
[00007fc29c000c30] lua meta fetcher debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
[00007fc2a40015e0] main stream debug: connection succeeded (socket = 11)
[00007fc2a40015e0] main stream debug: net: opening 0.0.0.0 datagram port 9112
[00007fc2a40015e0] main stream debug: net: opening 0.0.0.0 datagram port 9113
[00007fc29c000c30] main meta fetcher debug: no meta fetcher modules matched
[00007fc29c000c30] main art finder debug: looking for art finder module matching "any": 2 candidates
[00007fc29c000c30] lua art finder debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/art
[00007fc29c000c30] lua art finder debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art
[00007fc29c000c30] lua art finder debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
[00007fc29c000c30] lua art finder debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
[00007fc29c000c30] lua art finder debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
[00007fc29c000c30] lua art finder debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
[00007fc29c000c30] lua art finder debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
[00007fc29c000c30] main art finder debug: no art finder modules matched
[000055c0d9e414b0] dbus interface debug: Getting All properties
[00007fc2a40015e0] satip stream error: Failed to setup RTSP session
[00007fc2a40015e0] main stream debug: net: connecting to 192.168.1.4 port 554
[00007fc2a40015e0] main stream debug: connection succeeded (socket = 11)
[00007fc2a40015e0] access_realrtsp stream warning: Cseq mismatch, got 1, assumed 0
[00007fc2a40015e0] access_realrtsp stream debug: rtsp connected
[00007fc2a40015e0] access_realrtsp stream warning: only real/helix rtsp servers supported for now
[00007fc2a40015e0] main stream debug: no access modules matched
[00007fc2ac000c90] main input error: Your input can't be opened
[00007fc2ac000c90] main input error: VLC is unable to open the MRL 'rtsp://192.168.1.4/stream1'. Check the log for details.
[000055c0d9e43cc0] main playlist debug: dead input
[000055c0d9e43cc0] main playlist debug: changing item without a request (current 0/1)
[000055c0d9e43cc0] main playlist debug: nothing to play
^C[000055c0d9da8580] main libvlc debug: exiting
[000055c0d9da8580] main libvlc debug: removing all interfaces
[000055c0d9e8c790] main interface debug: removing module "dummy"
[000055c0d9e8a640] main interface debug: removing module "xcb_hotkeys"
[000055c0d9e3df20] main interface debug: removing module "hotkeys"
[000055c0d9e414b0] main interface debug: removing module "dbus"
[000055c0d9e43cc0] main playlist debug: destroying
[000055c0d9e43cc0] main playlist debug: deactivating the playlist
[000055c0d9e630f0] main audio output debug: removing module "pulse"
[000055c0d9e86f10] main playlist export debug: saving media library to file /home/abbaye_donezan/.local/share/vlc/ml.xspf.tmp9389
[000055c0d9e86f10] main playlist export debug: looking for playlist export module matching "export-xspf": 4 candidates
[000055c0d9e86f10] main playlist export debug: using playlist export module "export"
[000055c0d9e86f10] main playlist export debug: removing module "export"
[000055c0d9e43cc0] main playlist debug: deleting item `Media Library'
[000055c0d9e43cc0] main playlist debug: deleting item `rtsp://192.168.1.4/stream1'
[000055c0d9e43cc0] main playlist debug: deleting item `Playlist'
[000055c0d9e420c0] main keystore debug: removing module "memory"

Dernière modification par BSO (Le 20/01/2023, à 12:35)

Hors ligne

#4 Le 20/01/2023, à 11:39

cqfd93

Re : mplayer : flux rtsp

Modération

Bonjour,

Pour ajouter toi-même les balises code à tes messages #1 et #3 :

  • Cliquer sur le lien « Modifier » en bas à droite du message

  • Sélectionner le texte

  • Cliquer sur le <> de l'éditeur de message
    1530289742.png


cqfd93

Hors ligne

#5 Le 20/01/2023, à 12:36

BSO

Re : mplayer : flux rtsp

Merci beaucoup cqfd93, c'est fait !

Hors ligne

#6 Le 20/01/2023, à 12:44

cqfd93

Re : mplayer : flux rtsp

C"est bien pour le #3 mais tu peux faire la même chose pour le #1.


cqfd93

Hors ligne

#7 Le 20/01/2023, à 13:49

Vobul

Re : mplayer : flux rtsp

J'ai l'impression qu'il s'y connecte bien mais qu'il n'y a aucun flux à lire ! Donc regarde plutôt du côté de la cam.


Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM

Hors ligne

#8 Le 20/01/2023, à 17:45

BSO

Re : mplayer : flux rtsp

j'ai fait un essai avec vlc sous windows 10 et ça marche...

Hors ligne

#9 Le 20/01/2023, à 18:05

Vobul

Re : mplayer : flux rtsp

Ah il semble que ubuntu a retiré le rtsp de son build vlc, voir : https://forum.videolan.org/viewtopic.ph … 86#p533668

Donc pour une fois, la version snap semble plus indiquée !


Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM

Hors ligne

#10 Le 21/01/2023, à 09:40

BSO

Re : mplayer : flux rtsp

Bonjour Vobul,
2 points :
    1 -  Ubuntu a fait une mise à jour et le message d'erreur à la commande

cvlc --no -one-instance -vv rtsp://192.168.1.4/stream1

est désormais ;

-- logger module started --
main debug: VLC media player - 3.0.16 Vetinari
main debug: Copyright © 1996-2021 the VideoLAN team
main debug: revision 3.0.13-8-g41878ff4f2
main debug: configured with ./configure  '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-debug' '--config-cache' '--disable-update-check' '--enable-fast-install' '--docdir=/usr/share/doc/vlc' '--with-binary-version=3.0.16-1build7' '--enable-a52' '--enable-aa' '--enable-aribsub' '--enable-avahi' '--enable-bluray' '--enable-caca' '--enable-chromaprint' '--enable-chromecast' '--enable-dav1d' '--enable-dbus' '--enable-dca' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gles2' '--enable-gnutls' '--enable-harfbuzz' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libxml2' '--enable-lirc' '--enable-mad' '--enable-matroska' '--enable-mod' '--enable-mpc' '--enable-mpg123' '--enable-mtp' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-opus' '--enable-pulse' '--enable-qt' '--enable-realrtsp' '--enable-samplerate' '--enable-sdl-image' '--enable-sftp' '--enable-shine' '--enable-shout' '--enable-skins2' '--enable-sndio' '--enable-soxr' '--enable-spatialaudio' '--enable-speex' '--enable-svg' '--enable-svgdec' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vdpau' '--enable-vnc' '--enable-vorbis' '--enable-x264' '--enable-x265' '--enable-zvbi' '--with-kde-solid=/usr/share/solid/actions/' '--disable-aom' '--disable-crystalhd' '--disable-d3d11va' '--disable-decklink' '--disable-directx' '--disable-dsm' '--disable-dxva2' '--disable-fdkaac' '--disable-fluidlite' '--disable-freerdp' '--disable-goom' '--disable-gst-decode' '--disable-libtar' '--disable-live555' '--disable-macosx' '--disable-macosx-avfoundation' '--disable-macosx-qtkit' '--disable-mfx' '--disable-microdns' '--disable-opencv' '--disable-projectm' '--disable-schroedinger' '--disable-sparkle' '--disable-srt' '--disable-telx' '--disable-vpx' '--disable-vsxu' '--disable-wasapi' '--enable-alsa' '--enable-dc1394' '--enable-dv1394' '--enable-libplacebo' '--enable-linsys' '--enable-nfs' '--enable-udev' '--enable-v4l2' '--enable-wayland' '--enable-libva' '--enable-vcd' '--enable-smbclient' '--disable-oss' '--enable-mmx' '--enable-sse' '--disable-neon' '--disable-altivec' '--disable-omxil' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -ffile-prefix-map=/build/vlc-hoXXw1/vlc-3.0.16=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security ' 'LDFLAGS=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -ffile-prefix-map=/build/vlc-hoXXw1/vlc-3.0.16=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security ' 'OBJCFLAGS=-g -O2 -ffile-prefix-map=/build/vlc-hoXXw1/vlc-3.0.16=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security'
main debug: searching plug-in modules
main debug: loading plugins cache file /usr/lib/x86_64-linux-gnu/vlc/plugins/plugins.dat
main debug: recursively browsing `/usr/lib/x86_64-linux-gnu/vlc/plugins'
main debug: plug-ins loaded: 508 modules
main debug: opening config file (/home/abbaye_donezan/.config/vlc/vlcrc)
main debug: looking for logger module matching "any": 4 candidates
file debug: opening logfile `/home/abbaye_donezan/Bureau/debug'
main debug: using logger module "file"
main debug: translation test: code is "C"
main debug: looking for keystore module matching "memory": 4 candidates
main debug: using keystore module "memory"
main debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU 
main debug: Creating an input for 'Media Library'
main debug: Input is a meta file: disabling unneeded options
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `file/directory:///home/abbaye_donezan/.local/share/vlc/ml.xspf' gives access `file' demux `directory' path `/home/abbaye_donezan/.local/share/vlc/ml.xspf'
main debug: creating demux: access='file' demux='directory' location='/home/abbaye_donezan/.local/share/vlc/ml.xspf' file='/home/abbaye_donezan/.local/share/vlc/ml.xspf'
main debug: looking for access_demux module matching "file": 16 candidates
main debug: no access_demux modules matched
main debug: creating access: file:///home/abbaye_donezan/.local/share/vlc/ml.xspf
main debug:  (path: /home/abbaye_donezan/.local/share/vlc/ml.xspf)
main debug: looking for access module matching "file": 28 candidates
main debug: using access module "filesystem"
main debug: looking for stream_filter module matching "prefetch,cache_read": 26 candidates
cache_read debug: Using stream method for AStream*
cache_read debug: starting pre-buffering
cache_read debug: received first data after 0 ms
cache_read debug: pre-buffering done 296 bytes in 0s - 7606 KiB/s
main debug: using stream_filter module "cache_read"
main debug: looking for stream_filter module matching "any": 26 candidates
playlist debug: using XSPF playlist reader
main debug: using stream_filter module "playlist"
main debug: stream filter added to 0x565239058ff0
main debug: looking for stream_filter module matching "any": 26 candidates
main debug: no stream_filter modules matched
main debug: looking for stream_directory module matching "any": 1 candidates
main debug: no stream_directory modules matched
main debug: attachment of directory-extractor failed for file:///home/abbaye_donezan/.local/share/vlc/ml.xspf
main debug: looking for stream_filter module matching "record": 26 candidates
main debug: using stream_filter module "record"
main debug: creating demux: access='file' demux='directory' location='/home/abbaye_donezan/.local/share/vlc/ml.xspf' file='/home/abbaye_donezan/.local/share/vlc/ml.xspf'
main debug: looking for demux module matching "directory": 54 candidates
main debug: using demux module "directory"
main debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/reader
lua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/reader
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/reader/filename.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
main debug: no meta reader modules matched
main debug: `file/directory:///home/abbaye_donezan/.local/share/vlc/ml.xspf' successfully opened
main debug: looking for xml reader module matching "any": 1 candidates
main debug: using xml reader module "xml"
main debug: EOF reached
main debug: removing module "directory"
main debug: removing module "record"
main debug: removing module "playlist"
main debug: removing module "cache_read"
main debug: removing module "filesystem"
main debug: creating audio output
main debug: looking for audio output module matching "any": 6 candidates
vlcpulse debug: using library version 15.99.0
vlcpulse debug:  (compiled with version 15.99.0, protocol 35)
vlcpulse debug: connected locally to /run/user/1000/pulse/native as client #37
vlcpulse debug: using protocol 35, server protocol 35
pulse debug: adding sink 0: auto_null (Sortie fictive)
main debug: using audio output module "pulse"
main debug: keeping audio output
main debug: looking for interface module matching "dbus,none": 17 candidates
dbus debug: listening on dbus as: org.mpris.MediaPlayer2.vlc.instance5336
main debug: using interface module "dbus"
main debug: looking for interface module matching "hotkeys,none": 17 candidates
main debug: using interface module "hotkeys"
main debug: looking for interface module matching "globalhotkeys,none": 17 candidates
main debug: Creating an input for preparsing 'rtsp'
main debug: using interface module "xcb_hotkeys"
main debug: looking for interface module matching "dummy": 17 candidates
dummy: using the dummy interface module...
main debug: using interface module "dummy"
main debug: processing request item: null, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: starting playback of new item
main debug: resyncing on rtsp
main debug: rtsp is at 0
main debug: creating new input thread
main debug: Creating an input for 'rtsp'
dbus debug: Getting All properties
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `file:///home/abbaye_donezan/rtsp' gives access `file' demux `any' path `/home/abbaye_donezan/rtsp'
main debug: creating demux: access='file' demux='any' location='/home/abbaye_donezan/rtsp' file='/home/abbaye_donezan/rtsp'
main debug: looking for access_demux module matching "file": 16 candidates
main debug: no access_demux modules matched
main debug: creating access: file:///home/abbaye_donezan/rtsp
main debug:  (path: /home/abbaye_donezan/rtsp)
main debug: looking for access module matching "file": 28 candidates
filesystem error: cannot open file /home/abbaye_donezan/rtsp (No such file or directory)
main debug: no access modules matched
main error: Your input can't be opened
main error: VLC is unable to open the MRL 'file:///home/abbaye_donezan/rtsp'. Check the log for details.
main debug: dead input
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
lua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
lua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
lua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: looking for meta fetcher module matching "any": 1 candidates
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
lua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
lua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
lua debug: skipping script (unmatched scope) /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in /home/abbaye_donezan/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib/x86_64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
main debug: changing item without a request (current 0/1)
main debug: nothing to play
main debug: exiting
main debug: removing all interfaces
main debug: removing module "dummy"
main debug: removing module "xcb_hotkeys"
main debug: removing module "hotkeys"
main debug: removing module "dbus"
main debug: destroying
main debug: deactivating the playlist
main debug: removing module "pulse"
main debug: saving media library to file /home/abbaye_donezan/.local/share/vlc/ml.xspf.tmp5336
main debug: looking for playlist export module matching "export-xspf": 4 candidates
main debug: using playlist export module "export"
main debug: removing module "export"
main debug: deleting item `Media Library'
main debug: deleting item `rtsp'
main debug: deleting item `Playlist'
main debug: removing module "memory"
-- logger module stopped --

  2-  J'ai consulté le lien que tu m'as indiqué. malheureusement je suis encore néophyte... j'ai noté que " The configure flag is --enable-live555 ", mais quelle commande faut-il entrer ? Merci beaucoup !

Dernière modification par BSO (Le 21/01/2023, à 09:41)

Hors ligne

#11 Le 21/01/2023, à 09:57

soshy

Re : mplayer : flux rtsp

mplayer te dit :
librtsp: server responds: 'RTSP/1.0 401 Unauthorized'

A priori, il y a besoin de s'authentifier pour accéder au flux. Donc si tu as un login/password, je commencerai par essayer ça :

mplayer rtsp://login:password@192.168.1.4/stream1

(évidemment en remplaçant login et password par les bonnes valeurs)

D'ailleurs, en fouillant un peu sur le net j'ai trouvé ça et sur les images du point 4, on voit bien qu'il y a un utilisateur et mdp spécifiés dans les URL.

Dernière modification par soshy (Le 21/01/2023, à 10:03)

Hors ligne

#12 Le 21/01/2023, à 12:31

BSO

Re : mplayer : flux rtsp

Merci beaucoup !
Voici la réponse de mplayer:

abbaye_donezan@Infirmerie:~$ mplayer rtsp://xxxxxxxx:xxxxxxxx@192.168.1.4/stream1
MPlayer 1.4 (Debian), built with gcc-11 (C) 2000-2019 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://xxxxxxxxxx:xxxxxxxx@192.168.1.4/stream1.
Resolving donezan.fr for AF_INET6...

Couldn't resolve name for AF_INET6: donezan.fr
Resolving donezan.fr for AF_INET...
Connecting to server donezan.fr[213.186.33.3]: 554...

MPlayer interrupted by signal 2 in module: open_stream
rtsp: read error.
librtsp: buffer overflow in rtsp_get

J'ai fait un essai avec cvlc :

-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
-- logger module stopped --
-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
satip error: Failed to setup RTSP session
main error: read error: Interrupted system call
main error: read error: Connection timed out
-- logger module stopped --
-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
satip error: Failed to setup RTSP session
main error: read error: Interrupted system call
-- logger module started --
dummy: using the dummy interface module...
satip error: Failed to setup RTSP session

Merci pour ton aide

Dernière modification par BSO (Le 21/01/2023, à 13:56)

Hors ligne

#13 Le 21/01/2023, à 12:38

soshy

Re : mplayer : flux rtsp

Bonne idée de mettre des xxx mais faut aussi le faire sur la ligne un peu en dessous big_smile

Playing rtsp://xxx:xxx@192.168.1.4/stream1.

D'un autre coté, ça aide à comprendre, avec une adresse mail comme login, il pense que tu lui donnes :
rtps://login@serveur

Dans la partie login et password, remplace @ par %20
Il faudra aussi peut être remplacer les + par %2B

Dernière modification par soshy (Le 21/01/2023, à 12:46)

Hors ligne

#14 Le 21/01/2023, à 15:38

BSO

Re : mplayer : flux rtsp

Ce n'est pas encore ça :

abbaye_donezan@Infirmerie:~$ mplayer rtsp://ateliers%2Odonezan.fr:%2BSpes07%2B@192.168.1.4/stream1
MPlayer 1.4 (Debian), built with gcc-11 (C) 2000-2019 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://ateliers%2Odonezan.fr:%2BSpes07%2B@192.168.1.4/stream1.
Resolving 192.168.1.4 for AF_INET6...

Couldn't resolve name for AF_INET6: 192.168.1.4
Connecting to server 192.168.1.4[192.168.1.4]: 554...

librtsp: server responds: 'RTSP/1.0 401 Unauthorized'
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
libavformat version 58.76.100 (external)
libavformat file format detected.
[rtsp @ 0x7f505c98d8e0]method DESCRIBE failed: 401 Unauthorized
LAVF_header: av_open_input_stream() failed


Exiting... (End of file)

Hors ligne

#15 Le 22/01/2023, à 12:56

soshy

Re : mplayer : flux rtsp

C'est déjà mieux parce que ce coup ci on a

Connecting to server 192.168.1.4[192.168.1.4]: 554...

Pour moi, la seule raison pour laquelle ça ne fonctionne pas c'est que c'est pas le bon login/pw, ou qu'il a un soucis avec les caractères spéciaux et l'encodage... Je ne vais pas pouvoir aider plus que ça.

Hors ligne

#16 Le 22/01/2023, à 14:46

Vobul

Re : mplayer : flux rtsp

Oui, commence déjà par mettre un mot de passe/login sans caractères spéciaux, ça ne sert à rien de s'ajouter des problèmes.


Vobul
Utilisez le retour utilisable de commandes !!!
J'aime la langue française, mais je parle franglais, deal with it.
RTFM

Hors ligne

#17 Le 22/01/2023, à 18:39

BSO

Re : mplayer : flux rtsp

Merci beaucoup Soshy pour ton aide !
Je vais changer le login et le pw et je revient.

Hors ligne