Recherche avancée

Médias (91)

Autres articles (56)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

Sur d’autres sites (7570)

  • How to generate only 10 thumbnails irrespective of video duration with ffmpeg

    15 août 2022, par EaBengaluru

    Hi i want to generate only 10 thumbnails irrespective of video duration with ffmpeg

    


    I have followed this thread Create multiple thumbnails from a video at equal times / intervals

    


    here is the command i'm using

    


    ffmpeg -i input.mp4 -vf "select='not(mod(t,60/12))'" -vsync vfr output_%04d.jpg


    


    for 14.4 duration video it is generating only 3 thumbnails , i want always 10 with equal interval.

    


    For example if i have 120 duration video i must get thumbnails at

    


    [0 or 12, 24,36,48,60,72,84,96,108,120]


    


    Question : i want to generate always 10 thumbnails with equal interval as shown in example for duration of 120

    


  • How to apply complex filters more than once with different parameters while avoiding "too many inputs" errors in ffmpeg ?

    15 mai 2019, par Hugh Walxet

    I’m trying to apply the displace complex filter more than once in a video, at specific intervals with no proportional relationship. In each instance, I want to apply the displace filter with slightly different parameters. If I list it twice in the commands for the complex_filter, I get an error saying I have too many inputs.

    I might as well ask, separately, how I could apply the same filter with the same parameters more than once in a video, without re-iterating the same filter more than once in the command line. Put differently, how do I run a filter as specific times without writing the command several times sequentially, each with a different trigger time ?

    C :\Users\Me>ffmpeg -i c :\users\Me\desktop\house2.mp4 -i c :\users\Me\desktop\house3.mp4 -i c:users\Me\desktop\house4.mp4 -filter_complex "shuffleframes=enable=’between(t,21,27)’:mapping=0 9 2 1 10 5 8 6 7 4 3, shuffleframes=enable=’between(t,3,7)’:mapping=0 4 9 1 10 5 8 6 2 7 4 3, shuffleframes=enable=’between(t,15,19)’:mapping=0 6 2 1 10 5 8 3 7 4 9, [0][1][2] displace=enable=’between(t,9,10)’:edge=wrap, [0][1][2] displace=enable=’between(t,20,21)’:edge=smear" c :\users\Me\desktop\houseglitch.mp4

  • upload video with display and upon submit that video by post method to PHP file where FFMPEG command execute

    30 avril 2019, par Asfand Yar

    Main Task
    Video -> Audio (Wav or mp3)
    Procedure :
    User select video and its display and upload in video player thats fine but when i try to upload via the form tag and post method to php file (Bash.php) where that video have to be converted into the audio (mp3 or wav) i am using FFMPEG library (THat command work perfectly into the Command line) I am trying to do it in php (exec) but didn’t find fruitful results

    I try FFMPEG command to convert uploaded mp4 video to audio because i need audio to transcription
    HTML CODE

    <video width="500" controls="controls" preload="none">

    </video>



    <div class="container d-flex justify-content-center">
    <input type="file" accept="video/*" />

    </div>

       <code class="echappe-js">&lt;script type=&quot;text/javascript&quot;&gt;<br />
       video_file.onchange = function(){<br />
    <br />
       var files = this.files;<br />
    <br />
       var file = URL.createObjectURL(files[0]); <br />
    <br />
       video_player.src = file; <br />
    <br />
       video_player.load();};  <br />
    <br />
    &lt;/script&gt;

    &lt;?php  
       if(isset($_FILES['video'])){                                                                              
       $errors = array();    
           $file_name = $_FILES['video']['name'];                                                                
           $file_size = $_FILES['video']['size'];                                                                
           $file_tmp = $_FILES['video']['tmp_name'];                                                            
           $file_type = $_FILES['video']['type'];                                                                
           $file_ext = strtolower(end(explode('.',$_FILES['video']['name'])));  


       $expensions = array("mp4","avi");                                                                                                  


           if(in_array($file_ext, $expensions[0])===false){                  
               $errors[]="Extension not allowed, please choose a Mp4 or Avi file video";
           }                                                                                                              
       $convertedFile='fine.mp3';                                              
           if(empty($errors)==true){  
           move_uploaded_file($file_tmp, './'.$file_name);
           exec("ffmpeg -i $file_name -vn fine.mp3");

           }else{                                                                                                
               print_r($errors);                                                                                
           }
       $target = "http://localhost:8888/client/dynamic/recognize";
       sleep(3);

       if($file_ext == "mp4" or $file_ext == "avi"){
           exec("python /path/client2.py fine.mp3 > output.txt 2> output2.txt");

           $output = exec("cat output.txt");   }
       echo $output;
       }
    ?>