Recherche avancée

Médias (91)

Autres articles (68)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

Sur d’autres sites (5282)

  • Error when use command of ffmpeg on android

    19 février 2014, par user2830969

    I get source code from https://github.com/JayH5/android-ffmpeg-cmdline and then I edit code to be simple than.

    public ProcessRunnable create() {
           if (inputPath == null || outputPath == null) {
               throw new IllegalStateException("Need an input and output filepath!");
           }  

           final List<string> cmd = new LinkedList<string>();

           cmd.add(mFfmpegPath);
           cmd.add("-i");
           cmd.add(inputPath);
           cmd.add("-s 240x160");

           cmd.add(outputPath);
           Log.w("Command", cmd.toString());
           final ProcessBuilder pb = new ProcessBuilder(cmd);
           return new ProcessRunnable(pb);
       }
    </string></string>

    When I run code, the result is *.mp file 0.00 kb.
    Please help me fix about this.
    thank so much

  • How to create an animated GIF using FFMPEG with an interval ?

    26 octobre 2014, par Jeff Wilbert

    Hello fellow overflowers,

    A brief overview of what I’m trying to accomplish ; I have a site that will accept video uploads, uploads get converted into the mp4 format to be uniformed and playable on the web using one of the many available players. That part is all fine and dandy.

    The problem now is I want to show the user a short scaled preview (animated gif) of the video before they click to play it. The code I’m working with now is

    ffmpeg -i test.mp4 -vf scale=150:-1 -t 10 -r 1 test.gif

    Which works for creating a scaled animated gif with a fixed width of 150px at a rate of 1 frame per second but its only an animation of the first 10 seconds of the video. I’m trying to do something that spreads out the frame gap to cover the whole video length but create an animated gift that’s no more then 10 seconds long.

    For example say I have a video that’s 30 seconds I want the gif to be 10 seconds long but cover frames of the entire 30 seconds so it might start at frame 3 or 3 seconds in and create a frame in the gif, then at 6 seconds in the video create another frame, then 9 seconds in another, and so forth where the final outcome is

       example video 30 seconds long          example video 1 minute 45 second long

    video position - gif frame/per second      video position - gif frame/per second
         00:03:00   1                               00:10:50   1
         00:06:00   2                               00:21:00   2
         00:09:00   3                               00:31:50   3
         00:12:00   4                               00:42:00   4
         00:15:00   5                               00:52:50   5
         00:18:00   6                               01:03:00   6
         00:21:00   7                               01:13:50   7
         00:24:00   8                               01:24:00   8
         00:27:00   9                               01:34:50   9
         00:30:00   10                              01:45:00   10

     3 second interval between frames         10.5 second interval between frames

    Where you end up with an animated gif that’s 10 seconds long showing a preview of the entire video no matter the length of it. Which basically just boils down to
    video length / 10 (length of desired animated gif) = interval to use between frames but I don’t know how I can use that data to accomplish my problem...

    So does anyone have an idea or suggestion on how this can be accomplished with relative ease ? I can probably do it by calculating the length through code and running a command to extract each individual frame from the video that’s needed then generate a gif from the images but I’d like to be able to do it all with just one command. Thanks.

  • Anomalie #3799 : appliquer_filtre ne s’applique pas aux filtres image_

    9 février 2017

    J’oubliais : l’intention de |appliquer_filtre, c’est de permettre de faire du progressive enchancement dans un squelette distribué en plugin :

    • si le filtre demandé (généralement fourni par un autre plugin) n’est pas là, ça ne casse rien
    • si le filtre demandé est là, alors ça améliore le résultat final

    Et ça, je trouve ça génial comme intention !