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 ta fibre, voici quelques astuces simples et rapides, classées selon ton modèle de Freebox :

    🚀 1. Débloquer le débit 2,5 Gb/s en filaire
    - Freebox Pop et Ultra : Ça marche direct ! Double ton débit avec cet adaptateur USB-C RJ45 (ou USB-A si tu n'as pas d'USB-C).
    - Freebox Delta : Opte pour le combo avec ce switch 2.5Gb/s (qui inclut l'adaptateur), à relier à ta box avec ce câble 10Gb/s.

    💾 2. Ajouter du stockage réseau ultra-rapide
    - Freebox Ultra : Glisse un SSD comme celui-ci. Abordable, reconnu direct, idéal pour transférer tes fichiers ou sauvegarder automatiquement tes photos avec l'appli Freebox Files.
    - Freebox Delta : Tu peux insérer jusqu'à 4 disques-durs 7mm comme le Seagate BarraCuda. Astuce : tu peux aussi lui ajouter 16 Go de RAM !

    💻 Mettre à jour ton équipement
    Si tu réfléchis à changer d'ordi, regarde un modèle comme ce Mini PC GMKtec (deux ports 2,5Gb/s), ou cette nouveauté, ce Mini PC Beelink qui dispose d'un port 10Gb/s !

    ⚡ Tu veux carrément du 10Gb/s ? Regarde ce guide : Créer un réseau 10G chez soi.

    Pour participer au forum, connecte-toi ou crée un compte, tu seras le/la bienvenu(e) 👍