Recherche avancée

Médias (1)

Mot : - Tags -/berlin

Autres articles (64)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

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

Sur d’autres sites (5567)

  • 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(&#39;data&#39;, function(data) {
        res.writeHead(200, {&#39;content-type&#39;: &#39;text/html&#39;});
        res.write(&#39;received upload:\n\n&#39;);
        console.log(data);
     });

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

               //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) :

    &#xA;

    try {&#xA;    // compress video if needed&#xA;    $bitrate = "5000k";&#xA;    // $command = "ffmpeg -i ".($temp_dir."/".$folder."/".$sub_file)." -b:v $bitrate -bufsize $bitrate ".$temp_dir."/".$folder."/edit-".$sub_file;&#xA;    // $command = "ffmpeg -i $temp_video -qscale 0 ".$temp_dir."/".$folder."/edit-".$sub_file;&#xA;    $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;&#xA;    //system($command);&#xA;    $output=null;&#xA;    $retval=null;&#xA;    exec($command, $output, $retval);&#xA;    $temp_video = $temp_dir."/".$folder."/edit-".$sub_file."";&#xA;} catch (Exception $e) {&#xA;    // log output&#xA;}&#xA;

    &#xA;

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

    &#xA;

    Thanks

    &#xA;

  • 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 !