Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (65)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • 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 ) (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (6571)

  • Anomalie #1701 (Fermé) : mauvais tri dans boucles de forum

    27 juin 2011, par cedric -

    Produit la requete normale SELECT forum.date_thread, id_thread, forum.id_thread, forum.id_forum FROM spip_forum AS ’forum’ WHERE (forum.statut = ’publie’) AND (forum.id_parent = 0) GROUP BY id_thread ORDER BY forum.date_thread DESC Je ne vois pas de bug, et si je test j’ai bien une date_thread (...)

  • How to stop perl buffering ffmpeg output

    4 février 2017, par Sebastian King

    I am trying to have a Perl program process the output of an ffmpeg encode, however my test program only seems to receive the output of ffmpeg in periodic chunks, thus I am assuming there is some sort of buffering going on. How can I make it process it in real-time ?

    My test program (the tr command is there because I thought maybe ffmpeg’s carriage returns were causing perl to see one big long line or something) :

    #!/usr/bin/perl

    $i = "test.mkv"; # big file, long encode time
    $o = "test.mp4";

    open(F, "-|", "ffmpeg -y -i '$i' '$o' 2>&1 | tr '\r' '\n'")
           or die "oh no";

    while(<f>) {
           print "A12345: $_"; # some random text so i know the output was processed in perl
    }
    </f>

    Everything works fine when I replace the ffmpeg command with this script :

    #!/bin/bash

    echo "hello";

    for i in `seq 1 10`; do
           sleep 1;
           echo "hello $i";
    done

    echo "bye";

    When using the above script I see the output each second as it happens. With ffmpeg it is some 5-10 seconds or so until it outputs and will output sometimes 100 lines each output.

    I have tried using the program unbuffer ahead of ffmpeg in the command call but it seems to have no effect. Is it perhaps the 2>&amp;1 that might be buffering ?
    Any help is much appreciated.

    If you are unfamiliar with ffmpeg’s output, it outputs a bunch of file information and stuff to STDOUT and then during encoding it outputs lines like

    frame=  332 fps= 93 q=28.0 size=     528kB time=00:00:13.33 bitrate= 324.2kbits/s speed=3.75x

    which begin with carriage returns instead of new lines (hence tr) on STDERR (hence 2>&amp;1).

  • Ffmpeg output stream closed

    29 novembre 2023, par excalibur

    There is one problem in my code that uses ffmpeg to convert webm videos to mp4 and set duration to 10 seconds, it works well but, sometimes returns "output Stream closed" error. What can be a reason of this problem, and how can i solve it ?

    &#xA;

    My code :

    &#xA;

    async convertWebmVideoToMp4(buffer: any) {&#xA;    try {&#xA;        return new Promise((resolve, reject) => {&#xA;            const videoMp4Buffer = Buffer.from(buffer);&#xA;&#xA;            const readable = Readable.from(videoMp4Buffer);&#xA;&#xA;            const outputBuffer = [];&#xA;&#xA;            const outputStream = new Writable({&#xA;                write(chunk, encoding, callback) {&#xA;                    outputBuffer.push(chunk);&#xA;                    callback();&#xA;                },&#xA;            });&#xA;&#xA;            const ffmpegProcess = ffmpeg()&#xA;                .input(readable)&#xA;                .outputFormat(&#x27;mp4&#x27;)&#xA;                .videoCodec(&#x27;libx264&#x27;)&#xA;                .audioCodec(&#x27;aac&#x27;)&#xA;                .duration(10)&#xA;                .outputOptions([&#xA;                    &#x27;-movflags frag_keyframe&#x2B;empty_moov&#x27;,&#xA;                    &#x27;-preset ultrafast&#x27;,&#xA;                    &#x27;-c:a aac&#x27;,&#xA;                    &#x27;-r 30&#x27;,&#xA;                    &#x27;-tune fastdecode&#x27;,&#xA;                ])&#xA;                .on(&#x27;end&#x27;, () => {&#xA;                    outputStream.end();&#xA;                    const finalOutputBuffer = Buffer.concat(outputBuffer);&#xA;                    resolve(finalOutputBuffer);&#xA;                })&#xA;                .on(&#x27;error&#x27;, (err, stdout, stderr) => {&#xA;                    console.error(err);&#xA;                    reject(err);&#xA;                });&#xA;&#xA;            outputStream.on(&#x27;error&#x27;, err => {&#xA;                this.logger.error(err);&#xA;            });&#xA;&#xA;            ffmpegProcess.pipe(outputStream, { end: true });&#xA;        });&#xA;    } catch (error) {&#xA;        throw error;&#xA;    }&#xA;}&#xA;

    &#xA;

    My code should return the buffer of video that type is mp4 and length is 10 seconds, but it returns "output stream closed" error.

    &#xA;