Recherche avancée

Médias (91)

Autres articles (32)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (7090)

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

    <?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

  • playback speed of ffmpeg-stitched python video plots

    30 juin 2012, par user1211129

    I've been generating videos out of plots made with matplotlib using a line of ffmpeg code. The output is in .mp4 format. However, when I tried to heighten the resolution of each individual plot to dpi=800, the resultant video (at 140 MB) lags severely when played back with quicktime. Is there a way around this ? I do wonder, if the file's too large to play efficiently, why does a movie of 6 GB play flawlessly ?

  • How do I convert image frames into a video using ffmpeg ? [closed]

    15 décembre 2023, par user123

    I have a bunch of individual frames and I was wondering if I could use something like FFMpeg to convert it to an mp4 ? Here is what all my files look like

    &#xA;

    They start off exportsequence_ then a string of numbers in order of frame. The video is in 30 fps and I believe it to be around 12 or so minutes. Is there a command I can use to do this ?

    &#xA;