Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (94)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (9782)

  • Anomalie #4506 (En cours) : Supprimer les CSS inline des modèles de documents

    9 juin 2020

    Ce ticket ressemble à ce vieux ticket #2763

    Je ne comprends pas pourquoi les modèles d’insertion d’images et de vidéos conservent des styles en ligne :
    Exemple : https://git.spip.net/spip/medias/src/commit/5df7ada7115bb6c4a2b5ed149b2effa8fc5cb141/modeles/image.html#L13

    <span class="CodeRay"> [ style='width:(#GET{largeur})px;']
    </span>

    Avec le style en dur, on perd la main pour intervenir via des CSS externes
    Cela crée aussi des problèmes en responsive, le media sort des grilles ou des conteneurs imposés à cause du style en dur.

    A la limite, on pourrait proposer des classes sur la balise

    pour indiquer la taille approximation des images (taille-s, taille-m, taille-xl)
  • It’s Piwik Analytics Survey time : Your Opinion Matters !

    8 janvier 2017, par Piwik Core Team — Community

    It’s been almost two years since our last survey. We were so happy to get the participation we did from the community last time and hope that you will once again share your thoughts !

    Piwik Survey

    Fill in the survey

    Looking back on the previous survey, several features were implemented as a direct result :

    • New modern and beautiful app design in Piwik 3.0 !
    • Responsive Piwik User Interface
    • Custom Dimensions plugin
    • User ID for accurate cross device tracking
    • No more Referrer Spam in Piwik
    • Glossary of all terms used in Piwik
    • Huge performance improvements across the board
    • And much more…

    Now it is time to ask for your opinion again. Sure it’s only 15 short questions, but your time you take and energy you place in this endeavour will shape Piwik development and features for the near future. We really look forward to your ideas, your opinions and your suggestions. To get started click the box (or link) below :

    Piwik Survey

    Fill in the survey !

    By the way, if you haven’t already make sure you sign up for our newsletter to make sure you get the latest Piwik news and information to your inbox ! You can subscribe here.
  • How to convert mp4 files into mp3 on button click using ffmpeg/php ?

    4 juin 2019, par flash

    I am working on a php code as shown below where I am converting mp4 files into mp3 using system command ffmpeg (in the case statement below).

    &lt;?php

    $mp4_files = preg_grep('~\.(mp4)$~', scandir($src_dir));

    foreach ($mp4_files as $f)
    {

        $parts = pathinfo($f);
        switch ($parts['extension'])
        {
            case 'mp4' :
                $filePath = $src_dir . DS . $f;
                system('ffmpeg -i ' . $filePath . ' -map 0:2 -ac 1 ' . $destination_dir . DS . $parts['filename'] . '.mp3', $result);  // Through this command conversion happens.
        }
    }

    $mp3_files = preg_grep('/^([^.])/', scandir($destination_dir));

    ?>

    After conversion, mp3 files goes into destination_dir. If new mp4 file arrives in $src_dir, the conversion usually happen on refresh of a page.

    Once the conversion is complete, I am parsing everything into table as shown below :

    <table>
      <tr>
         <th style="width:8%; text-align:center;">House Number</th>
         <th style="width:8%; text-align:center;">MP4 Name</th>
         <th style="width:8%; text-align:center;">Action/Status</th>
      </tr>
      &lt;?php
         $mp4_files = array_values($mp4_files);
         $mp3_files = array_values($mp3_files);
         foreach ($programs as $key => $program)    {
            $file = $mp4_files[$key];    
            $file2 = $mp3_files[$key];   // file2 is in mp3 folder
         ?>
      <tr>
         <td style="width:5%; text-align:center;"><span style="border: 1px solid black; padding:5px;">&lt;?php echo basename($file, ".mp4"); ?></span></td>
         <td style="width:5%; text-align:center;"><span style="border: 1px solid black; padding:5px;">&lt;?php echo basename($file); ?></span></td>              
         <td style="width:5%; text-align:center;"><button style="width:90px;" type="button" class="btn btn-outline-primary">Gotd>  
      </button></td></tr>
      &lt;?php } ?>
    </table>

    Problem Statement :

    I am wondering what changes I should make in the php code above that on click of a Go button, conversion of individual mp4 into mp3 happen.

    On clicking of Go button, individual mp3 file (from an mp4) belonging to an individual row should go inside destination directory ($destination_dir).

    enter image description here