Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (74)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (7144)

  • 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('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" && 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');
  • Raspberry Pi ffmpeg live camera stream over 4g

    31 juillet 2014, par rickster

    I’m planning on connecting a camera to a Raspberry Pi and streaming video over 4G internet to control a quad copter. I will be using ffmpeg to stream the video, so far it looks like you need to use ffserver to do this. The problem is most 4G providers (I use AT&T) block all ports from hosting. Would something like FreedomPop (http://www.freedompop.com) work ? Can I stream with ffmpeg as the client ? What kind of latency can I expect ?

  • bambuser ffmpeg on Android

    31 mai 2013, par Andy Developer

    Basically, I need to combine(append) audio files in android. This is required to perform pause / resume function for a voice recorder.

    I have successfully compiled bambuser ffmpeg on Android with the following.

    1. Oracle Virtual Box
    2. Ubuntu 12.04 x86
    3. android-ndk r8
    4. Archive for client versions 1.3.7 to 1.6.6

    (from bambuser http://bambuser.com/opensource)

    I have changed the package name in build.sh to suit my package name.
    After building, I have got the ffmpeg from build folder with the following structure

    ffmpeg

    -armeabi
    -armeabi-v7a

    I have copied the ffmpeg folder into my project/jni folder in my windows machine.

    Created a native.c file to include the necessary libs.
    Made ndk-build. Got the .so file.
    When I try to do this in android activity,

               try {
           System.loadLibrary("FFmpegTest");  
       } catch (Exception e) {
           // TODO: handle exception
           e.printStackTrace();
       }
             File dir = new File("/mnt/sdcard");
      Process p=Runtime.getRuntime().exec("ffmpeg -i test.wav test1.wav",null,dir);
    try {
        p.waitFor();
    }  catch (InterruptedException e) {
         e.printStackTrace();
    }

    I get the following error.

    05-31 11:57:53.532: D/dalvikvm(278): Trying to load lib /data/data/com.example.ffmpegtest/lib/libFFmpegTest.so 0x43e37a88

    05-31 11:57:53.532: D/dalvikvm(278): Added shared lib /data/data/com.example.ffmpegtest/lib/libFFmpegTest.so 0x43e37a88

    05-31 11:57:53.532: D/dalvikvm(278): No JNI_OnLoad found in /data/data/com.example.ffmpegtest/lib/libFFmpegTest.so 0x43e37a88, skipping init

    05-31 11:57:53.562: W/System.err(278): java.io.IOException: Error running exec(). Command: [ffmpeg, -i, test.wav test1.wav] Working Directory: /mnt/sdcard Environment: null

    Can anyone guide me the procedure ?