Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (68)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (8945)

  • sdp : Simplify parsing/conversion of H264 extradata

    3 octobre 2014, par Martin Storsjö
    sdp : Simplify parsing/conversion of H264 extradata
    

    By using ff_avc_write_annexb_extradata instead of the h264_mp4toannexb
    BSF, the code for doing the conversion itself is kept much shorter,
    there’s less state to restore at the end, we don’t risk leaving the
    AVCodecContext in an inconsistent state if returning early due to
    errors, etc.

    Also add a missing free if the base64 encoding fails.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavformat/sdp.c
  • Spawned ffmpeg process in nodejs Transform stream with flow control doesn't process input stream

    30 septembre 2022, par user1832894

    I have implemented a node.js Transform stream class that spawns ffmpeg and streams out the transformed stream at a controlled realtime rate. Below is my _transform() method.

    &#xA;

    this.rcvd &#x2B;= chunk.length&#xA;console.log(&#x27;received bytes %d&#x27;, this.rcvd)&#xA;const ready = this.ffmpeg.stdin.write(chunk, encoding, err => err&#xA;  ? cb(err)&#xA;  : ready&#xA;    ? cb&#xA;    : this.ffmpeg.stdin.once(&#x27;drain&#x27;, cb))&#xA;

    &#xA;

    I want to write to ffmpeg's stdin stream till it returns false, at which point I wait for the drain event to write more data.

    &#xA;

    Concurrently, I have a timer that fires every 40 milliseconds that reads ffmpeg's stdout and pushes it to the Transform stream's output (the readable side). Code not complete, but the folllowing describes it well.

    &#xA;

    const now = Date.now()&#xA;const bytesToTransmit = (now - this.lastTx) * 32&#xA;&#xA;const buf = this.ffmpeg.stdout.read()&#xA;&#xA;if (buf == null) return&#xA;&#xA;if (buf.length &lt;= bytesToTransmit) {&#xA;  this.push(buf)&#xA;  this.lastTx &#x2B;= buf.length * 32&#xA;  return&#xA;}&#xA;&#xA;this.push(buf.slice(0, bytesToTransmit))&#xA;this.lastTx = now&#xA;&#xA;// todo(handle pending buffer)&#xA;this.pending = buf.slice(bytesToTransmit)&#xA;

    &#xA;

    The issue I am facing is that the first write (of 65k bytes) returns false, and after that I never receive the drain event. FFMpeg doesn't start processing the data until certain amount of data (256k bytes in my case) has been written, and once I start waiting for the drain event, I never recover control.

    &#xA;

    I've tried a few ffmpeg options like nobuffer but to no avail. What am I doing wrong ? Any ideas would be super helpful.

    &#xA;

    Thanks !

    &#xA;

  • Merge pull request #253 from zeroclipboard/origins-array-bug

    17 octobre 2013, par jonrohan
    Merge pull request #253 from zeroclipboard/origins-array-bug
    

    Array.push returns a number, not an array.