Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (95)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

Sur d’autres sites (17258)

  • Parsing the STDERR output of node.js child_process line by line

    3 janvier 2012, par primer

    I'm writing a simple online conversion tool using FFMPEG and Node.js. I'm trying to figure out how to parse each line of the conversion output received from FFMPEG and only display pertinent results client side in the browser. In my case I want the encoding time counter that FFMPEG spits out on the command line.

    My function thus far is :

    function metric(ffmpeg, res) {

     ffmpeg.stdout.on('data', function(data) {
        res.writeHead(200, {'content-type': 'text/html'});
        res.write('received upload:\n\n');
        console.log(data);
     });

     ffmpeg.stderr.on('data', function (data) {
        var temp += data.toString();
               var lines = temp.split('\n');

               //for debugging purposes
               for(var i = 0;icode>

    What this ends up returning is multiple arrays, each of which includes the data from the previous array as well as the next data chunk. For example, the function returns array 1 :0=>A, 1=>B, array 2 :0=>A, 1=>B, 2=>C, array 3 :0=>A, 1=>B, 2=>C, 3=>D, and so on.

    I'm quite new to Node so I'm probably missing something simple. Any guidance would be much appreciated !

  • Ffmpeg compression cron cutting video to 1 second

    6 août 2022, par BlackThorn

    I have a cron setup to take locally uploaded videos, create a screengrab, compress the video and upload to online storage. I am using ffmpeg with php and have tried a few different ways but though it does compress the file size I keep getting a saved file of just the first second of the video. I tried delaying the process in case it just didn't have enough time to do the video and that was the cause but it didn't seem to do much. Here are some of the examples of the code I've tried all together (commented out as tried each but you can see the different ways) :

    


    try {
    // compress video if needed
    $bitrate = "5000k";
    // $command = "ffmpeg -i ".($temp_dir."/".$folder."/".$sub_file)." -b:v $bitrate -bufsize $bitrate ".$temp_dir."/".$folder."/edit-".$sub_file;
    // $command = "ffmpeg -i $temp_video -qscale 0 ".$temp_dir."/".$folder."/edit-".$sub_file;
    $command = "ffmpeg -i ".($temp_dir."/".$folder."/".$sub_file)." -vf scale=1280:-1 -c:v libx264 -preset veryslow -crf 24 ".$temp_dir."/".$folder."/edit-".$sub_file;
    //system($command);
    $output=null;
    $retval=null;
    exec($command, $output, $retval);
    $temp_video = $temp_dir."/".$folder."/edit-".$sub_file."";
} catch (Exception $e) {
    // log output
}


    


    Is there a known issue with this or something I'm missing ?

    


    Thanks

    


  • Announcement of a new Translation platform for Piwik translators : Transifex

    21 avril 2015, par Piwik Core Team

    To our dear Translators community,

    Thank you for helping us to translate Piwik into one of the many languages Piwik is available in.

    In this blog post, we are happy to announce a new and better way for you to contribute translations to Piwik.

    From today onwards, all the translations for the Piwik platform, plugins and for the Piwik Mobile app are managed in the public Piwik Transifex project.

    As part of a community request, we decided to switch to a more modern translation tool in order to provide everyone with an easier and better way to contribute to translations. Transifex provides us with a powerful and flexible online translation platform.

    It’s easy to contribute to Piwik translations : sign up to our Transifex project at https://www.transifex.com/projects/p/piwik/ to get started.

    If you have any questions, feel free to come back to us.

    Happy translating !