Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (101)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (11688)

  • fate : Add HDCD filter tests for false positive and error detection

    14 juillet 2016, par Burt P
    fate : Add HDCD filter tests for false positive and error detection
    

    Signed-off-by : Burt P <pburt0@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] tests/fate-run.sh
    • [DH] tests/fate/filter-audio.mak
  • NodeJS - How to pipe same video stream to multiple clients ?

    6 mai 2019, par SergioBR

    We have a situation trying to serve a video stream.

    Since HTML5 video tag does not support udp to multicast, we are trying to re-use an already converted ffmpeg stream and send it to more than one response. But that does not work.

    The first response gets the stream alright, but the second one does not.
    It seems that the stream cannot be piped out to another response, neither can it be cloned.

    Has anyone done that before ? Any ideas ?

    Thanks in advance !

    Here’s the code :

    var request = require('request');
    var http = require('http');
    var child_process = require("child_process");
    var n = 1;
    var stdouts = {};

    http.createServer(function (req, resp) {

    console.log("***** url ["+req.url+"], call "+n);

    if (req.url != "/favicon.ico" &amp;&amp; req.url != "/")
    {
    var params = req.url.substring(1).split("/");

    switch (params[0])
    {
     case "VIEW":
       if (params[1] == "C2FLOOR1" || params[1] == "C2FLOOR2" || params[1] == "C2PORFUN" || params[1] == "C2TESTCAM")
         var camera = "rtsp://192.168.16.19:554/Inter/Cameras/Stream?Camera="+params[1];
       else
         var camera = "http://192.168.16.19:8609/Inter/Cameras/GetStream?Camera="+params[1];

       // Write header
       resp.writeHead(200, {'Content-Type': 'video/ogg', 'Connection': 'keep-alive'});

       if (stdouts.hasOwnProperty(params[1]))
       {
         console.log("Getting stream already created for camera "+params[1]);

         var newStdout = Object.create(stdouts[params[1]]);

         newStdout.pipe(resp);
       }
       else
       {
           // Start ffmpeg
           var ffmpeg = child_process.spawn("ffmpeg",[
           "-i",camera,
           "-vcodec","libtheora",
           "-qscale:v","7",        // video quality
           "-f","ogg",             // File format
           "-g","1",               // GOP (Group Of Pictures) size
           "-"                     // Output to STDOUT
           ]);

           stdouts[params[1]] = ffmpeg.stdout;

           // Pipe the video output to the client response
           ffmpeg.stdout.pipe(resp);

       console.log("Initializing camera at "+camera);
       }

       // Kill the subprocesses when client disconnects
    /*
       resp.on("close",function(){
         ffmpegs[params[1]].kill();
         console.log("FIM!");
       });
    */
       break;
    }
    }
    else
    {
    resp.writeHeader(200, {"Content-Type": "text/html"});
    resp.write("WRONG CALL");
    resp.end();
    }
    n++;

    }).listen(8088);

    console.log('Server running at port 8088');
  • NodeJS - How to pipe same video stream to multiple clients ?

    30 août 2013, par SergioBR

    We have a situation trying to serve a video stream.

    Since HTML5 video tag does not support udp to multicast, we are trying to re-use an already converted ffmpeg stream and send it to more than one response. But that does not work.

    The first response gets the stream alright, but the second one does not.
    It seems that the stream cannot be piped out to another response, neither can it be cloned.

    Has anyone done that before ? Any ideas ?

    Thanks in advance !

    Here's the code :

    var request = require(&#39;request&#39;);
    var http = require(&#39;http&#39;);
    var child_process = require("child_process");
    var n = 1;
    var stdouts = {};

    http.createServer(function (req, resp) {

    console.log("***** url ["+req.url+"], call "+n);

    if (req.url != "/favicon.ico" &amp;&amp; req.url != "/")
    {
    var params = req.url.substring(1).split("/");

    switch (params[0])
    {
     case "VIEW":
       if (params[1] == "C2FLOOR1" || params[1] == "C2FLOOR2" || params[1] == "C2PORFUN" || params[1] == "C2TESTCAM")
         var camera = "rtsp://192.168.16.19:554/Inter/Cameras/Stream?Camera="+params[1];
       else
         var camera = "http://192.168.16.19:8609/Inter/Cameras/GetStream?Camera="+params[1];

       // Write header
       resp.writeHead(200, {&#39;Content-Type&#39;: &#39;video/ogg&#39;, &#39;Connection&#39;: &#39;keep-alive&#39;});

       if (stdouts.hasOwnProperty(params[1]))
       {
         console.log("Getting stream already created for camera "+params[1]);

         var newStdout = Object.create(stdouts[params[1]]);

         newStdout.pipe(resp);
       }
       else
       {
           // Start ffmpeg
           var ffmpeg = child_process.spawn("ffmpeg",[
           "-i",camera,
           "-vcodec","libtheora",
           "-qscale:v","7",        // video quality
           "-f","ogg",             // File format
           "-g","1",               // GOP (Group Of Pictures) size
           "-"                     // Output to STDOUT
           ]);

           stdouts[params[1]] = ffmpeg.stdout;

           // Pipe the video output to the client response
           ffmpeg.stdout.pipe(resp);

       console.log("Initializing camera at "+camera);
       }

       // Kill the subprocesses when client disconnects
    /*
       resp.on("close",function(){
         ffmpegs[params[1]].kill();
         console.log("FIM!");
       });
    */
       break;
    }
    }
    else
    {
    resp.writeHeader(200, {"Content-Type": "text/html"});
    resp.write("WRONG CALL");
    resp.end();
    }
    n++;

    }).listen(8088);

    console.log(&#39;Server running at port 8088&#39;);