Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (106)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (12646)

  • ffmpeg on android : playing MPEG2 TS udp multicast stream

    27 août 2013, par user1513822

    I want to make android media player using ffmpeg.
    (catch MPEG2 TS multicast stream via WIFI network and decode it)
    I checked followings :

    • My iptime AP supports WIFI multicast protocol.
      (send multicast stream in wired PC, and wifi connected PC can receive it)
    • My Android phone can receive multicast stream via WIFI.
      I coded NDK socket programming which is join udp multicast group and receive packets
      (I added multicast access grant to AndroidManifest.xml)
    • FFMPEG library is ported to android and it can play local media file.

    But when I try to open network stream using FFMPEG library, avformat_open_input() function returns fail.

    gFormatCtx = avformat_alloc_context();
    av_register_all();
    avcodec_register_all();
    avformat_network_init();
    if(avformat_open_input(&gFormatCtx,"udp://@239.100.100.100:4000",NULL,NULL) != 0)
       return -2;

    this code always return "-2".
    If I use "av_dict_set()" api, which option should I use ?

    av_dict_set(&options, "udp_multicast", "mpegtsraw", 0);

    please let me know what should I check for avformat_open_input error ?

    thanks.

  • 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');
  • pcm_dvd : consolidate pieces from pcm.c and mpeg.c

    30 août 2013, par Christian Schmidt
    pcm_dvd : consolidate pieces from pcm.c and mpeg.c
    

    Remove the header decoding for PCM audio from mpeg.c and the
    20/24bit parts from pcm.c and merge them into a new decoder in
    pcm-dvd.c.

    The decoder has added support for samples that span multiple
    packets and modified 20/24bit group decoding. Both is needed to
    decode samples that have been generated with DVD-Lab Pro 2. The
    decoding of 16bit PCM and two channel 24bit is identical to
    before. No other samples are known to verify the correctness of
    the encoding this software does.
    The complete list of tested formats is
    48kHz/16bit/2-8 channels
    48kHz/24bit/2-5 channels
    96kHz/16bit/2-4 channels
    96kHz/24bit/2 channels

    Signed-off-by : Luca Barbato <lu_zero@gentoo.org>

    • [DH] libavcodec/Makefile
    • [DH] libavcodec/pcm-dvd.c
    • [DH] libavcodec/pcm.c
    • [DH] libavcodec/version.h
    • [DH] libavformat/mpeg.c