Recherche avancée

Médias (91)

Autres articles (70)

  • 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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (10360)

  • Node.js, stream pipe output data to client with socket io-stream

    22 mai 2018, par Empha

    Sorry for a repeating topic, but i’ve searched and experimented for 2 days now and i haven’t been able to solve the problem.

    I am trying to live stream pictures every 1 second to a client via socket.io-stream using the following code :

    var args = [
       "-i",
       "/dev/video0",
       "-s",
       "1280x720",
       "-qscale",
       1,
       "-vf",
       "fps=1",
       config.imagePath,
       "-s",
       config.imageStream.resolution[0],
       "-f",
       "image2pipe",
       "-qscale",
       1,
       "-vf",
       "fps=1",
       "pipe:1"
    ];
    camera = spawn("avconv", args);    // avconv = ffmpeg

    The settings are good, and the process writes to stdout successfully. I capture all outgoing image data using this simplified code :

    var ss = require("socket.io-stream");
    camera.stdout.on("data", function(data) {
       var stream = ss.createStream();
       ss(socket).emit("img", stream, "newImg");
       // how do i write the data-object to the stream?
       // fs.createReadStream(imagePath).pipe(stream);
    });

    "socket" comes from the client using the socket.io-package, no problem there. So what i am doing is that i listen to the stdout-pipe for the "data" event. That data gets passed to the function above. That means that at this stage "data" is not a stream, its a "<buffer></buffer>code>"-object, and therefore i cannot stream it like i could previously using the commented createReadStream-statement where i read the image from disk. <strong>How do i stream the data (Buffer at this stage) to the client? Can i do this differently, perhaps not using socket.io-stream?</strong> "data" is just one part of the whole image, so perhaps two or three "data"-objects need to be put together to form the complete image.

    I tried using "stream.write(data, "binary") ;" which did transfer the Buffer-objects, problem is that there is not end of stream-event and therefore i do not know when an image is complete. I tried registering to stdout.on "close", "end", "finish", nothing triggers. Am i missing something ? Am i making it overly complex ? The reasoning behind my implementation is that i need a new stream for each complete image, is that right ?

    Thanks alot !

  • RTSP Client for H264 Audio/Video Stream

    10 juin, par Jean-Philippe Encausse

    I'm looking for a simple way to get data of an IP Camera RTSP Stream (using H264 Audio/Video) and get on the other side

    &#xA;&#xA;

      &#xA;
    • a frame by frame byte[]
    • &#xA;

    • a stream of the audio
    • &#xA;

    &#xA;&#xA;

    After many research

    &#xA;&#xA;

      &#xA;
    • EmguCV Capture seems hanging forever (no answer from forum)
    • &#xA;

    • There is many (too big) RTSP Server few decode H264
    • &#xA;

    • There is "slow" ffmpeg wrapper
    • &#xA;

    • There is some managed DirectShow wrapper
    • &#xA;

    &#xA;&#xA;

    So I don't know where to go ? And how to do this ?

    &#xA;&#xA;

    It seems iSpyCamera is doing the job but it's a big project not a little library to query ip cameras.

    &#xA;

  • RTSP Client for H264 Audio/Video Stream

    1er avril 2015, par Jean-Philippe Encausse

    I’m looking for a simple way to get data of an IP Camera RTSP Stream (using H264 Audio/Video) and get on the other side

    • a frame by frame byte[]
    • a stream of the audio

    After many research

    • EmguCV Capture seems hanging forever (no answer from forum)
    • There is many (too big) RTSP Server few decode H264
    • There is "slow" ffmpeg wrapper
    • There is some managed DirectShow wrapper

    So I don’t know where to go ? And how to do this ?

    It seems iSpyCamera is doing the job but it’s a big project not a little library to query ip cameras.