J'essai de capturer le flux video de ma caméra depuis mon serveur raspbian en utilisant mplayer, mais je n'arrive pas à le faire, je dois me louper quelque part mais je sais pas trop ou :s
Voici la commande et le log :
mplayer -dumpstream http://192.168.0.23/img/stream.m3u8 -dumpfile stream_video_name -user freeboxcam -passwd ***** -v
===========================================================
MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team
CPU: ARM
get_path('codecs.conf') -> '/root/.mplayer/codecs.conf'
Reading optional codecs config file /root/.mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /etc/mplayer/codecs.conf: No such file or directory
Using built-in default codecs.conf.
init_freetype
Using Unoptimized OnScreenDisplay
get_path('fonts') -> '/root/.mplayer/fonts'
Configuration: --prefix=/usr --confdir=/etc/mplayer --enable-debug --enable-xvmc --enable-menu --disable-arts --language=all --disable-libmpeg2-internal --disable-ffmpeg_a --disable-esd --extra-cflags=-g -O2 -fdebug-prefix-map=/build/mplayer-EhGBwz/mplayer-1.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 --extra-ldflags=-Wl,-z,relro -Wl,-z,now -Wl,--as-needed --enable-joystick --enable-radio --enable-radio-capture --disable-gui
CommandLine: '-dumpstream' 'http://192.168.0.23/img/stream.m3u8' '-dumpfile' 'stream_video_name' '-user' 'freeboxcam' '-passwd' '******' '-v'
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Reading optional input config file /root/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 92 binds
Setting up LIRC support...
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.
get_path('stream.m3u8.conf') -> '/root/.mplayer/stream.m3u8.conf'
Playing http://192.168.0.23/img/stream.m3u8.
get_path('sub/') -> '/root/.mplayer/sub/'
Filename for url is now http://192.168.0.23/img/stream.m3u8
Filename for url is now http://192.168.0.23/img/stream.m3u8
STREAM_HTTP(1), URL: http://192.168.0.23/img/stream.m3u8
Connecting to server 192.168.0.23[192.168.0.23]: 80...
--- HTTP DEBUG HEADER --- START ---
protocol: [HTTP/1.0]
http minor version: [0]
uri: [(null)]
method: [(null)]
status code: [401]
reason phrase: [Unauthorized]
body size: [351]
Fields:
0 - WWW-Authenticate: Basic realm="Authorization"
1 - Content-Type: text/html
2 - Content-Length: 351
3 - Connection: close
4 - Date: Thu, 19 Sep 2019 13:25:27 GMT
5 - Server: ip-camera
--- HTTP DEBUG HEADER --- END ---
Authentication required for "Authorization"
Connecting to server 192.168.0.23[192.168.0.23]: 80...
--- HTTP DEBUG HEADER --- START ---
protocol: [HTTP/1.0]
http minor version: [0]
uri: [(null)]
method: [(null)]
status code: [200]
reason phrase: [OK]
body size: [149]
Fields:
0 - Content-Type: application/octet-stream
1 - Content-Length: 149
2 - Connection: close
3 - Date: Thu, 19 Sep 2019 13:25:28 GMT
4 - Server: ip-camera
--- HTTP DEBUG HEADER --- END ---
Content-Length: [149]
Content-Type: [application/octet-stream]
Cache size set to 320 KBytes
STREAM: [null] http://192.168.0.23/img/stream.m3u8
STREAM: Description: http streaming
STREAM: Author: Bertrand, Albeau, Reimar Doeffinger, Arpi?
STREAM: Comment: plain http
dump: 149 bytes written to 'stream_video_name'.
Core dumped
vo: x11 uninit called but X11 not initialized..
Exiting... (End of file)
===========================================================
Ca me genere un fichier au bout de quelques secondes, qui contient :
"#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2000000
stream.m3u8?channel=1"
Une idée ?
Ou un autre moyen de récupérer le flux video sur un serveur linux ?
SSD WD_Black SanDisk 1To à
183.45
Adaptateur USB-C RJ45 2.5G à
24.22
Prépayée avec appels illimités à
12.99
Switch 2.5G pour ton réseau
Amazon Fire TV Stick HD
La manette Amazon Luna
Carte SIM Free Mobile 200Go 5G
Carte SIM Free Mobile 300Go 5G
Livre sur l'épopée Free
La chaine Canal+ offerte 12 mois !