Recherche avancée

Médias (91)

Autres articles (66)

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

  • Speed up FFmpeg processing time

    14 février 2020, par ahmed galal

    I’m using FFmpeg on android to :

    1- merge 3 videos

    2- add audio

    3- add logo

    4- trim one of the 3 videos

    5- change fps for the output

    I have implemented the right code but it took 30 min. for (120 fps, 1:17 min) video.
    I added the flag ( -preset ultrafast ) and time decreased to 6 min.
    I need the time to be shorter than 6min. (2-3 min). Is this possible ? Is there any better alternatives to ffmpeg ?

    This is my code for ffmpeg :

    String command2 = "-y -i " + logo + " -i " + intro + " -ss " + start + " -t " + (end-start) +
               " -async 1 -i " + inputFile + " -i " + outro + " -i " + audio
               + " -filter_complex [0]scale=1280*0.15:-1,colorchannelmixer=aa=0.5[o];" +
               "[1]fifo[v1];[2]fifo[v2];[3]fifo[v3];" +
               "[v1][v2][v3]concat=3[v];" +
               "[v][o]overlay=5:5[o3]" +
               " -map [o3] -map 4:a" +
               " -r " + fps + " -shortest -preset ultrafast -threads 8 -cpu-used 3 -c:a copy " + outFile;
  • Synchronize RTSP with computer time

    4 novembre 2014, par Dídac Pérez

    I am successfully using libav to receive the video stream from an RTSP network source. The point is that I need to syncronize my computer’s time with the video capturing, meaning that I need to know which datetime of my computer corresponds to the first frame (pts = 0). My API calls are the following ones :

    av_register_all()
    avcodec_register_all()
    avformat_network_init()
    avformat_open_input()
    avformat_find_stream_info()
    av_read_play()
    loop
     av_init_packet()
     av_read_frame()
     [...]
     av_free_packet
    end loop

    With the calls above, I successfully read frames, but I do need to know how can I know the exact absolute datetime that corresponds to the first frame, since it has a pts of 0. Maybe I can use a time() function or GetSystemTime (I am using Windows) between two calls of the above, but do not really know how libav works.

  • 2>&1 and log file at the same time

    14 mai 2018, par Bruno Andrade

    I’m using this code to run ffmpeg and return when it succeeded or failed using 2> & 1 and $var. The problem is that I would also like to generate a log.txt with the current ffmpeg process. I know it does using 2> log.txt but how do I use both options at the same time ?

    <?php
    $ffmpeg = '"D:\FFMPEG\bin\ffmpeg.exe"' . " -loglevel verbose -n -i https://URLVIDEO -map p:0 -acodec copy -bsf:a aac_adtstoasc -vcodec copy video.mp4 2>&1";

       exec($ffmpeg, $output, $var);

       if($var){
          echo 'error';
       }else{

         echo 'success';

       }
    ?>