Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (103)

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

  • PHP code not proceeding to the line after exec ffmpeg

    5 avril 2014, par Sel

    I have this PHP snippet that I call through curl, in order to perform an ffmpeg encoding. I also have another line afterwards that marks this as having been done, using a database. I want this to trigger after the exec finished, which would imply that the file has finished encoding. However, the database is never actually changed (works if I try commenting out the exec) and I can't get a good gauge of when the file is done encoding. The database only changes when you run ANOTHER request on top of this one. Code below.

    $ID=$_POST['ID'];

    exec("/usr/local/bin/ffmpeg -i stockvideos/Intro2.m2v -f image2 -loop 1 -r 24 -i temppics/Intro2pic".$ID.".png -filter_complex \
    '[1:v]fade=in:st=0:d=1:alpha=1,fade=out:st=3:d=1:alpha=1[2wm];
    [0:v][wm]overlay=10:10[outv]' \
    -map [outv] -q 0 tempvideos/Intro2-".$ID.".m2v  >> 1.log 2>&1");

    $query_CreditVideoDone  =sprintf("Update Messages SET CreditTitlesDone=%s WHERE ID=%s", GetSQLValueString(1, "boolean"),GetSQLValueString($ID, "text"));

    $result = mysql_query($query_CreditVideoDone, $MMixer) or die(mysql_error());

    UPDATE : When I check the log (>2), it seems FFMPEG continues running even after the process is finished.

    frame= 4 fps=0.0 q=0.0 size= 103kB time=00:00:00.06 bitrate=12619.2kbits/s
    frame= 12 fps= 12 q=0.0 size= 562kB time=00:00:00.33 bitrate=13806.6kbits/s
    frame= 21 fps= 14 q=0.0 size= 1339kB time=00:00:00.63 bitrate=17307.1kbits/s
    frame= 29 fps= 14 q=0.0 size= 1682kB time=00:00:00.90 bitrate=15291.9kbits/s
    frame= 38 fps= 15 q=0.0 size= 2081kB time=00:00:01.20 bitrate=14192.5kbits/s
    frame= 51 fps= 16 q=0.0 size= 2677kB time=00:00:01.63 bitrate=13415.4kbits/s
    frame= 58 fps= 16 q=0.0 size= 2939kB time=00:00:01.86 bitrate=12884.0kbits/s
    frame= 66 fps= 16 q=0.0 size= 3338kB time=00:00:02.13 bitrate=12803.8kbits/s
    frame= 74 fps= 16 q=0.0 size= 3724kB time=00:00:02.40 bitrate=12700.2kbits/s
    frame= 82 fps= 16 q=0.0 size= 4012kB time=00:00:02.66 bitrate=12311.5kbits/s
    frame= 92 fps= 16 q=0.0 size= 4483kB time=00:00:03.00 bitrate=12229.7kbits/s
    frame= 102 fps= 16 q=0.0 size= 4951kB time=00:00:03.33 bitrate=12154.5kbits/s
    frame= 111 fps= 16 q=0.0 size= 5384kB time=00:00:03.63 bitrate=12126.7kbits/s
    frame= 118 fps= 16 q=0.0 size= 5622kB time=00:00:03.87 bitrate=11900.0kbits/s
    frame= 127 fps= 16 q=0.0 size= 6042kB time=00:00:04.17 bitrate=11867.2kbits/s
    frame= 138 fps= 16 q=0.0 size= 6550kB time=00:00:04.53 bitrate=11823.8kbits/s
    frame= 149 fps= 17 q=0.0 size= 7043kB time=00:00:04.90 bitrate=11763.8kbits/s
    frame= 157 fps= 17 q=0.0 size= 7338kB time=00:00:05.17 bitrate=11622.8kbits/s
    frame= 167 fps= 17 q=0.0 size= 7807kB time=00:00:05.50 bitrate=11616.5kbits/s
    frame= 176 fps= 17 q=0.0 size= 8215kB time=00:00:05.80 bitrate=11591.7kbits/s
    frame= 186 fps= 17 q=0.0 size= 8667kB time=00:00:06.13 bitrate=11564.4kbits/s
    frame= 196 fps= 17 q=0.0 size= 9254kB time=00:00:06.47 bitrate=11710.7kbits/s
    frame= 203 fps= 17 q=0.0 size= 9794kB time=00:00:06.70 bitrate=11962.6kbits/s
    frame= 211 fps= 17 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=3
    frame= 211 fps= 16 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=13
    frame= 211 fps= 15 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=28
    frame= 211 fps= 15 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=41
    frame= 211 fps= 14 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=57
    frame= 211 fps= 14 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=73
    frame= 211 fps= 13 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=89
    frame= 211 fps= 13 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=98
    frame= 211 fps= 13 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=107
    frame= 211 fps= 12 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=115
    frame= 211 fps= 12 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=126
    frame= 211 fps= 11 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=138
    frame= 211 fps= 11 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=153
    frame= 211 fps= 11 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=169
    frame= 211 fps= 11 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=183
    frame= 211 fps= 10 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=194
    frame= 211 fps= 10 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=203
    frame= 211 fps=9.8 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=214
    frame= 211 fps=9.6 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=224
    frame= 211 fps=9.4 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=233
    frame= 211 fps=9.1 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=242
    frame= 211 fps=8.9 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=251
    frame= 211 fps=8.7 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=260
    frame= 211 fps=8.6 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=269
    frame= 211 fps=8.4 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=278
    frame= 211 fps=8.2 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=289
    frame= 211 fps=8.0 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=303
    frame= 211 fps=7.9 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=315....

    And so on until it times out on the server. Any idea why this happens ? It seems to prevent execution from anything after it. Redirecting to dev/null doesn't help either - there is no error output of course but the process is still hanging the same way.

    Any help would be appreciated. Thanks !

    Thanks !

    Sel

  • Révision 21547 : Lorsque r11911 a ajouté la visualisation des docs joints à un message de forum d...

    11 septembre 2014, par esj -

    On isole dans une fonction le code introduit pour qu’il profite au deux cas. En primer, cette fonction admet un argument optionnel indiquant si l’accès au document est autorisé (True par défaut). S’il ne l’est pas, le nom du fichier est affiché, mais n’est plus un lien vers son URL.

  • Issue in FFmpegAndroid library when i compress video it convert video time into 1 or 2 second

    25 mai 2017, par Fateh Singh Saini

    Used this dependencies :
    compile ’com.writingminds:FFmpegAndroid:0.3.2’

    I used blow code for video compress
    public static final String VIDEOCODEC = "-vcodec" ;
    public static final String AUDIOCODEC = "-acodec" ;

    public static final String VIDEOBITSTREAMFILTER = "-vbsf";
    public static final String AUDIOBITSTREAMFILTER = "-absf";

    public static final String VERBOSITY = "-v";
    public static final String FILE_INPUT = "-i";
    public static final String SIZE = "-s";
    public static final String FRAMERATE = "-r";
    public static final String FORMAT = "-f";
    public static final String BITRATE_VIDEO = "-b:v";

    public static final String BITRATE_AUDIO = "-b:a";
    public static final String CHANNELS_AUDIO = "-ac";
    public static final String FREQ_AUDIO = "-ar";

    String[] complexCommand = "-y", FILE_INPUT, yourRealPath, SIZE, "480x360", FRAMERATE, "25", VIDEOCODEC, "mpeg4", BITRATE_VIDEO, "150k", BITRATE_AUDIO, "48000", CHANNELS_AUDIO, "2", FREQ_AUDIO, "22050", filePath ;

    /**
    * Executing ffmpeg binary
    */
    private static String execFFmpegBinary(final String[] command) {


       try {
           ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
               @Override
               public void onFailure(String s) {
                   Log.d(TAG, "FAILED with output : " + s);
               }

               @Override
               public void onSuccess(String s) {
                   Log.d(TAG, "SUCCESS with output : " + s);
               }

               @Override
               public void onProgress(String s) {
                   Log.d(TAG, "Started command : ffmpeg " + command);
                   Log.d(TAG, "progress : " + s);
               }

               @Override
               public void onStart() {
                   Log.d(TAG, "Started command : ffmpeg " + command);
               }

               @Override
               public void onFinish() {
                   Log.d(TAG, "Finished command : ffmpeg " + command);

               }
           });
       } catch (FFmpegCommandAlreadyRunningException e) {
           // do nothing for now
       }
       return filePath;
    }