Recherche avancée

Médias (91)

Autres articles (103)

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

  • getting video duration with ffmpeg, php function

    17 novembre 2014, par keithp

    I have FFMpeg installed and I know it’s functional, but i’m trying to get the duration time from a flv video through PHP but when I use this code :

    function mbmGetFLVDuration($file)

    /*  
    * Determine video duration with ffmpeg  
    * ffmpeg should be installed on your server.  
    */  

    //$time = 00:00:00.000 format  
    $ffmpeg = "../ffmpeg/ffmpeg";

    $time =  exec("$ffmpeg -i $file 2>&1 | grep 'Duration' | cut -d ' ' -f 4 | sed s/,//");  

    $duration = explode(":",$time);  
    $duration_in_seconds = $duration[0]*3600 + $duration[1]*60+ round($duration[2]);  

    return $duration_in_seconds;  

    and :

    $duration = mbmGetFLVDuration(’http://www.videoaddsite.com/videos/intro.flv’) ;
    echo $duration ;

    I get an output of 220. THe video is 3:40. Can any help me on what i’m doing wrong, or if there’s something else I can use ?

  • Song name under video

    2 septembre 2020, par ottpeter

    I'm trying to write the song name under the video with ffmpeg. My mp3 files are running in a loop like this :
-stream_loop -1 -i music.txt
My workaround would be to write an SRT file with timecodes, a script would determine when next song is comming, and I would repeat this, let's say, a 1000 times (time codes adjusted), then I would get song names for a month for example. (this would be done before ffmpeg is started)
Obviously this is not optimal, especially because I can't loop the SRT file as well, because of the timecode. It would be better to do this with a filter complex.

    


    Is there a way to know the name of the mp3 that is currently playing, in ffmpeg ?

    


  • Grab (all) audio samples with ffmpeg, C/C++ [closed]

    28 août 2020, par nji9

    For further analysis I need to access/ collect all samples of
audio files with ffmpeg.
There are lot of code examples around, but all of them are either out-of-date
(using deprecated or non-existing ffmpeg API),
or are buggy (multiple frames in packets etc), or are incomplete...

    


    So, could some of the profs please present a simple working code ?

    


    In : Just filename, Out : Just error code, Within : Determine properties and access audio samples.

    


    Would probably be of great help not only for me ;-)

    


    Thankyou in advance.