Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (74)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Les images

    15 mai 2013

Sur d’autres sites (7846)

  • How to compare audio channel differences with FFmpeg ?

    30 septembre 2021, par Deivedux

    I'm making a little script for myself to quickly go through a large volume of video and audio files to compress audio for extra space, but for extra efficiency, I also don't want to waste space by keeping both channels if they're identical.

    


    My issue is that I don't know how to, let's say, check if their decoded versions are at least a 99.99% match, in which case I'd only encode the left channel into mono.

    


    How would I go about doing this ?

    


  • copy processed mp3 files from one directory to another directory in php

    17 mai 2019, par flash

    I am working on a php code as shown below which is converting mp4 files into mp3 using ffmpeg. After conversion, everything goes into outgoing_folder.

    <?php
    const DS = '/';
    $src_dir    = 'incoming_folder';   /* Place where mp4 file is present */

    $destination = 'outgoing_folder';  /* Place where mp3 files come after conversion from mp4 */

    $mp3_processed = 'podcast_mp3_processed'; /* Place where I also want mp3 files */

    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 . DS . $parts['filename'] . '.mp3', $result);    /** Place where mp3 file goes after conversion from mp4 **/

               if ($result)
               {
                   // Do something with result if you want
                   // log for example
               }
               break;

           case 'mp3' :
               // copy($f, $destination. DS . $parts['filename']. '.' . $parts['extension']);
               copy($f, $destination . DS . $parts['filename'] . '.mp3');
               copy('outgoing_folder', 'podcast_mp3_processed');               /* Line #A */
               break;
       }
    }
    ?>

    Problem Statement :

    I am wondering what changes I need to make in the php code above so that when all mp4 files have been converted to mp3 then it should also go to podcast_mp3_processed folder.

    At this moment it is going outgoing_folder but I also want it to go to podcast_mp3_processed folder. I tried with the code at Line#A but it doesn’t seem to work.

  • Automatically assign a name to a file being saved

    13 janvier 2017, par J.D Alford

    I"m using ffmpeg to create video clips. I want to automate the process and save the clips without manually giving names to each file being saved. Here is the code I have. It will create and save the clip but only with an extension and not a name.

    @echo off
    cd /d % dp0

    set /p place="Enter location : " %=%

    set /p time="Enter time : " %=%

    for /F %%a in (’dir /b *.mp4’) do set FileName=%% na

    ffmpeg -i "%place%" -ss %time% -codec copy -t 10 %FileName%.mp4

    I’m sure there’s a simple solution but I can’t figure it out. Any help would be appreciated