Captuer flux video sur raspberry

  • Bonjour,

    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 ?
  • Hello ! Si tu veux profiter au max de la fibre, 2 trucs simples, mais qui changent tout :

    1– passe tout de suite à 2,5Gb/s avec cet adaptateur USB-C RJ45 (ou USB-A si tu n'as pas d'USB-C) : tu auras une connexion filaire rapide et stable, avec une Freebox Pop ou Ultra ça marche direct. Si tu as une Freebox Delta, ajoute un switch 2.5Gb/s entre les deux.

    2– ajoute dans ta Freebox Ultra un SSD comme celui-ci : facile à insérer, reconnu directement, fiable... C'est super rapide pour les transferts (quasiment comme un disque local), idéal pour transférer photos, vidéos... Même hors de chez toi avec l'appli Freebox Files, pour sauvegarder automatiquement tes photos par exemple 👍 Si tu as une Freebox Delta, tu peux ajouter jusqu’à 4 disques-durs Seagate BarraCuda (et aussi 16 Go de RAM !).

    Et si tu réfléchis à changer d'ordi, prends-en un comme ce Mini PC, avec un port RJ45 en 2,5Gb/s.