Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (110)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (14112)

  • Runtime.getRuntime().exec() in loops

    18 mai 2015, par Sebastian Röher

    I’m writing a little tool to create some thumbnails in java automatically.

    therefor I execute Runtime.getRuntime().exec(command); in a for-loop.
    Now my Problem is, that only the first thumbnail gets created.

    My code so far :

    public static void testFFMpeg(File videoFile) throws IOException {
       FFMpegWrapper wraper = new FFMpegWrapper(videoFile);
       int length = (int) wraper.getInputDuration() / 1000;
       String absolutePath = videoFile.getAbsolutePath();
       String path = absolutePath.substring(0, absolutePath.lastIndexOf('/') + 1);
       int c = 1;
       System.out.println(path + "thumb_" + c + ".png");
       for (int i = 1; i <= length; i = i + 10) {
           int h = i / 3600;
           int m = i / 60;
           int s = i % 60;
           String command = "ffmpeg -i " + absolutePath + " -ss " + h + ":" + m + ":" + s + " -vframes 1 " + path
               + "thumb_" + c + "_" + videoFile.getName() + ".png";
           System.out.println(command);
           Runtime.getRuntime().exec(command);
           c++;
       }
    }

    the output is :

    ffmpeg -i /mnt/Speicherschwein/workspace/testVideos/Roentgen_A_VisarioG2_005.avi -ss 0:0:1 -vframes 1 /mnt/Speicherschwein/workspace/testVideos/thumb_1_Roentgen_A_VisarioG2_005.avi.png
    ffmpeg -i /mnt/Speicherschwein/workspace/testVideos/Roentgen_A_VisarioG2_005.avi -ss 0:0:11 -vframes 1 /mnt/Speicherschwein/workspace/testVideos/thumb_2_Roentgen_A_VisarioG2_005.avi.png
    ffmpeg -i /mnt/Speicherschwein/workspace/testVideos/Roentgen_A_VisarioG2_005.avi -ss 0:0:21 -vframes 1 /mnt/Speicherschwein/workspace/testVideos/thumb_3_Roentgen_A_VisarioG2_005.avi.png

    so the loop is running fine and the command is also fine, if I run it manually from command-line its creating each thumbnail, so there seems to be a problem, that in the 2. call of Runtime.getRuntime().exec(command); it don’t get started cause the first run isn’t finished yet.

    S is there possibility to pause the thread or something like that until the command run by Runtime.getRuntime().exec(command); is frinished ?

  • lavfi/spp : enable runtime change flag

    11 janvier 2020, par Jun Zhao
    lavfi/spp : enable runtime change flag
    

    enable runtime change flag.

    Reviewe-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Jun Zhao <barryjzhao@tencent.com>

    • [DH] libavfilter/vf_spp.c
  • Tests : Dropped obsolete timeouts, speeding up test runtime.

    16 juin 2015, par staabm
    Tests : Dropped obsolete timeouts, speeding up test runtime.
    

    Fixes #1343
    Closes #1496