Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (104)

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

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

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

  • how to remove PTS gap within a file when transcoding with ffmpeg ?

    18 juillet 2017, par jsBaek

    i have a video which is from rtmp streaming.

    Since the broadcasting is on and off frequently,

    the archived file has PTS like below

    (assume that this is sec)

    0—10—20—30—40 120—130—140

    there’s discontinuity between 40 and 120 sec.

    duration of this file must be 60sec since there’s 80sec gap between 40 120.

    but when i transcoded this file, final duration became 140sec with 80sec of pausing parts.

    how can i transcode this file without "not existing" 80 sec so that output file became 60sec without redundant pausing 80 sec.

    i tried "+getpts" or "+igndts" options but they don’t work at all.

  • Setting duration is not working in ffmpeg

    7 mai 2014, par Stepan

    Have problem with creating video from 50 png files in ffmpeg in shell.
    Setting duration -t 5 and fps -r 10

    ffmpeg -i image%d.png -y -pix_fmt yuv444p -r 10 -t 5 -s 1920:1080 out.mp4

    Final duration is 2 seconds and fps is 25.

    How to set it correctly ?

    I’m running at elementaryOS, ffmpeg version 0.8.10-4

    Thanks

  • Why a batch processing of ffmpeg is freezing the system ?

    3 septembre 2019, par Krishna Chebrolu

    I have a requirement of splitting smaller chunks of videos from 50+ mp4 source files for 5000+ records. Each record may result in 2 or 3 smaller chunks from as many source files out of those 50+.

    The logic to determine which source file to be picked up is written in Java and then fed to ffmpeg on Runtime.getRuntime().exec() using ExecutorService with newFixedThreadPool as below :

    private static boolean processqueue(ArrayList<string> cmds) {
       final ExecutorService pool;
       int threadsnum = Runtime.getRuntime().availableProcessors()-2;
       pool = Executors.newFixedThreadPool(threadsnum);

       for(final String cmd: cmds){
           pool.execute(new Runnable() {
               public void run() {
                   System.out.println(cmd);
                   try {
                       Runtime.getRuntime().exec(cmd);
                   } catch (IOException e) {
                       e.printStackTrace();
                       pool.shutdown();
                   }
               }
           });
       }                  
       pool.shutdown();

       // wait for them to finish for up to one minute.
       try {
           if(!pool.awaitTermination(1, TimeUnit.MINUTES)) {
               pool.shutdownNow();
           }

           //Wait a while for tasks to respond to being cancelled
           if(!pool.awaitTermination(1, TimeUnit.MINUTES))
               System.err.println("Pool did not shutdown properly");

       } catch (InterruptedException e) {
           e.printStackTrace();
           pool.shutdownNow();
           //Preserve interrupt status
           Thread.currentThread().interrupt();
           return false;
       }                  

       return true;
    }
    </string>

    the String cmd value is one of these based on split or merge requirement :

    for split :

    ffmpeg -y -ss 00:00:00 -t 00:08 -i E:/tmp/fin12.mp4 -acodec copy -vcodec copy E:/tmp/Intermed/0136f.mp4

    or

    for merge :

    ffmpeg -y -i E:/tmp/Inter/0136c0.mp4 -i E:/tmp/Inter/0136c1.mp4 -i E:/tmp/Inter/0136f.mp4 -i E:/tmp/Jingle.mp4 -i E:/tmp/wm1280.png -filter_complex "[0:v][0:a][1:v][1:a][2:v][2:a][3:v][3:a]concat=n=4:v=1:a=1[vv][a];[vv][4:v]overlay=x=0:y=H-overlay_h[v]" -map "[v]" -map "[a]" E:/tmp/final/0136.mp4

    On first attempt, only 250 records were processed. And, on subsequent attempt of balance records processing, it threw below exception ; but, processed another 300 records :

    java.io.IOException: Cannot run program "ffmpeg": CreateProcess error=1455, The paging file is too small for this operation to complete
    at java.lang.ProcessBuilder.start(Unknown Source)

    And, this code freezes often. Why is ExecutorService not holding up the queue to process all the records and exit gracefully ? What am I doing wrong ?

    Note : I’m calling Java class from windows batch script by passing relevant arguments which is executed from command line.