Recherche avancée

Médias (0)

Mot : - Tags -/configuration

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (61)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (9286)

  • Anomalie #3811 (Nouveau) : Sur le Wiki de Contrib = versionning apparent incorrect !

    24 juillet 2016, par YannX DYX

    Bonsoir,
    au passage /je rajoutais une suggestion sur le Carnet/ j’ai aperçu un soulignement pas exact lors de l’examen de versionning d’article :
    https://contrib.spip.net/ecrire/?exec=article&id_article=4088

    Voici le texte exact qui avait été rajouté :

    viser l’intégration de http://www.templatemo.com/tm-455-vi... (avec une sous-couche de mapping &lt ;code&gt ;.less&lt ;/code&gt ; pour faire correspondre les styles spipr/Z-core aux styles de Visual Admin)..
    

    L’image d’extrait prend en fait deux modifications : voir piece jointe...
    pour le lien [1]

    Serait-ce dû à la présence de la balise cachée .less!! dans le texte inséré ??

  • JS Create a queue for fluent-ffmpeg with max 5 convertions

    25 juin 2022, par John L.

    I use ffmpeg to convert my songs from webm to mp3 but ffmpeg uses resources and I really need to make a FIFO queue that will be converting max 5 songs at the same time and make all the others wait.

    


    I am using nodejs. Could anyone help me with that fifo queue and how would fluent ffmpeg work ?

    


    I've seen some other questions here on StackOverflow about a queue for ffmpeg but they were asking in other languages, not javascript and they were using the ffmepg cli tool while I use fluent ffmepg

    


    My code :

    


    ffmpeg(stream)
    .format("mp3")
    .audioBitrate(req.query.quality ? req.query.quality : 256)
    .on("end", () => {
        console.log("finished:)
    })
    .pipe(res, { end: true });


    


  • PHP readfile on a file which is increasing in size

    13 février 2013, par Sathiya Sundaram

    Is it possible to use PHP readfile function on a remote file whose size is unknown and is increasing in size ? Here is the scenario :

    I'm developing a script which downloads a video from a third party website and simultaneously trans-codes the video into MP3 format. This MP3 is then transferred to the user via readfile.

    The query used for the above process is like this :

    wget -q -O- "VideoURLHere" | ffmpeg -i - "Output.mp3" > /dev/null 2>&1 &

    So the file is fetched and encoded at the same time.
    Now when the above process is in progress I begin sending the output mp3 to the user via readfile. The problem is that the encoding process takes some time and therefore depending on the users download speed readfile reaches an assumed EoF before the whole file is encoded, resulting in the user receiving partial content/incomplete files.

    My first attempt to fix this was to apply a speed limit on the users download, but this is not foolproof as the encoding time and speed vary with load and this still led to partial downloads.

    So is there a way to implement this system in such a way that I can serve the downloads simultaneously along with the encoding and also guarantee sending the complete file to the end user ?

    Any help is appreciated.

    EDIT :
    In response to Peter, I'm actually using fread(read readfile_chunked) :

    <?php
    function readfile_chunked($filename,$retbytes=true) {
               $chunksize = 1*(1024*1024); // how many bytes per chunk
               $totChunk = 0;
               $buffer = '';
               $cnt =0;
               $handle = fopen($filename, 'rb');
               if ($handle === false) {
                   return false;
               }
               while (!feof($handle)) {
                   //usleep(120000); //Used to impose an artificial speed limit
                   $buffer = fread($handle, $chunksize);
                   echo $buffer;
                   ob_flush();
                   flush();
                   if ($retbytes) {
                       $cnt += strlen($buffer);
                   }
               }
                   $status = fclose($handle);
               if ($retbytes && $status) {
                   return $cnt;        // return num. bytes delivered like readfile() does.
               }
               return $status;
           }
           readfile_chunked($linkToMp3);
       ?>

    This still does not guarantee complete downloads as depending on the users download speed and the encoding speed, the EOF() may be reached prematurely.

    Also in response to theJeztah's comment, I'm trying to achieve this without having to make the user wait..so that's not an option.