Recherche avancée

Médias (91)

Autres articles (99)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (4853)

  • FFMPEG does HTTP range request only once (HTML5 MediaStream/WebM)

    17 décembre 2018, par Youssef Gamil

    The Issue

    I am trying to pass HTML5 MediaStream coming from a browser’s webcam to a Socket.IO namespace which is buffered and be accessible to FFMPEG through HTTP endpoint in form of HTTP partial/range requests. Although, it works on perfectly on Firefox/Chrome.

    Here, I have wrapped a sample and pushed it to a GitHub repo

    Environment

    Install

    • npm i from the project directory

    Run

    • npm start : to start the express server
    • Open http://localhost:3000 in Firefox or Chrome, and accept the webcam access dialog.
    • npm run ffmpeg -i http://localhost:3000/view output.webm : TODO : this doesn’t output the full stream
      • http://localhost:3000/view will be visible once it was opened in Firefox/Chrome and they’ll keep requesting till the end of stream or server down.
      • note, npm run ffmpeg ... is a just a shortcut to ffmpeg executable dependency which should be installed at startup in node_modules/@ffmpeg-installer/linux-x64/ffmpeg (which may differ depending on your OS)

    FFMPEG Log

    What I get after running ffmpeg -v trace -i http://localhost:3000/view -y tmp.mp4 :

    Reading option '-v' ... matched as option 'v' (set logging level) with argument 'trace'.
    Reading option '-i' ... matched as input url with argument 'http://localhost:3000/view'.
    Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
    Reading option 'tmp.mp4' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option v (set logging level) with argument trace.
    Applying option y (overwrite output files) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url http://localhost:3000/view.
    Successfully parsed a group of options.
    Opening an input file: http://localhost:3000/view.
    [NULL @ 0x65f1c40] Opening 'http://localhost:3000/view' for reading
    [http @ 0x65f2540] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
    [tcp @ 0x65f4000] Original list of addresses:
    [tcp @ 0x65f4000] Address 127.0.0.1 port 3000
    [tcp @ 0x65f4000] Interleaved list of addresses:
    [tcp @ 0x65f4000] Address 127.0.0.1 port 3000
    [tcp @ 0x65f4000] Starting connection attempt to 127.0.0.1 port 3000
    [tcp @ 0x65f4000] Successfully connected to 127.0.0.1 port 3000
    [http @ 0x65f2540] request: GET /view HTTP/1.1
    User-Agent: Lavf/58.18.104
    Accept: */*
    Range: bytes=0-
    Connection: close
    Host: localhost:3000
    Icy-MetaData: 1


    [http @ 0x65f2540] header='HTTP/1.1 206 Partial Content'
    [http @ 0x65f2540] http_code=206
    [http @ 0x65f2540] header='X-Powered-By: Express'
    [http @ 0x65f2540] header='Access-Control-Allow-Origin: *'
    [http @ 0x65f2540] header='Content-Range: bytes 0-1391616/1073741824'
    [http @ 0x65f2540] header='Accept-Ranges: bytes'
    [http @ 0x65f2540] header='Content-Length: 1391616'
    [http @ 0x65f2540] header='Connection: close'
    [http @ 0x65f2540] header='Content-Type: video/webm'
    [http @ 0x65f2540] header='Date: Mon, 17 Dec 2018 10:15:14 GMT'
    [http @ 0x65f2540] header=''
    Probing matroska,webm score:100 size:2048
    Probing mp3 score:1 size:2048
    [matroska,webm @ 0x65f1c40] Format matroska,webm probed with size=2048 and score=100
    st:0 removing common factor 1000000 from timebase
    st:1 removing common factor 1000000 from timebase
    [matroska,webm @ 0x65f1c40] Before avformat_find_stream_info() pos: 317 bytes read:3837 seeks:0 nb_streams:2
    [matroska,webm @ 0x65f1c40] All info found
    [matroska,webm @ 0x65f1c40] rfps: 29.750000 0.016025
    [matroska,webm @ 0x65f1c40] rfps: 29.833333 0.013167
    [matroska,webm @ 0x65f1c40] rfps: 29.916667 0.012378
    [matroska,webm @ 0x65f1c40] rfps: 30.000000 0.013659
    [matroska,webm @ 0x65f1c40] rfps: 29.970030 0.012960
    [matroska,webm @ 0x65f1c40] stream 0: start_time: 0.000 duration: -9223372036854776.000
    [matroska,webm @ 0x65f1c40] stream 1: start_time: -0.001 duration: -9223372036854776.000
    [matroska,webm @ 0x65f1c40] format: start_time: -0.001 duration: -9223372036854.775 bitrate=0 kb/s
    [matroska,webm @ 0x65f1c40] After avformat_find_stream_info() pos: 467388 bytes read:469955 seeks:0 frames:115
    Input #0, matroska,webm, from 'http://localhost:3000/view':
     Metadata:
       encoder         : QTmuxingAppLibWebM-0.0.1
     Duration: N/A, start: -0.001000, bitrate: N/A
       Stream #0:0(eng), 41, 1/1000: Video: vp8, 1 reference frame, yuv420p(progressive), 640x480, 0/1, SAR 1:1 DAR 4:3, 1k tbr, 1k tbn, 1k tbc (default)
       Stream #0:1(eng), 74, 1/1000: Audio: opus, 48000 Hz, stereo, fltp, delay 312 (default)
    Successfully opened the file.
    Parsing a group of options: output url tmp.mp4.
  • avformat/http: simplify chained_options copying

    15 novembre 2014, par Michael Niedermayer
    avformat/http: simplify chained_options copying
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/http.c
  • avformat/http: support auto reconnect

    12 mars 2015, par Zhang Rui
    avformat/http: support auto reconnect
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/http.c