Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (75)

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

  • running ffmpeg command in java Process hangs in waitFor()

    9 juin 2015, par Mahesha M

    I’m running ffmpeg command to generate video for given images (img001.jpg, img002.jpg ...) it’s creating slide.mp4, but it waits infinitely :

    public class Ffmpeg {

    public static void main(String[] args) throws IOException, InterruptedException {
       String path = "E:\\pics\\Santhosh\\FadeOut\\testing";      
       String cmd = "ffmpeg -r 1/5 -i img%03d.jpg -c:v libx264 -r 30 -y -pix_fmt yuv420p slide.mp4";
       runScript (path, cmd);
    }

    private static boolean runScript(String path, String cmd) throws IOException, InterruptedException {      
       List<string> commands = new ArrayList<string>();
       commands.add("cmd");
       commands.add("/c");
       commands.add(cmd);
       ProcessBuilder pb = new ProcessBuilder(commands);
       pb.directory(new File(path));
       pb.redirectErrorStream(true);
       Process process = pb.start();  
       flushInputStreamReader(process);                
       int exitCode = process.waitFor();
       return exitCode == 0;
    }    
    }

    private static void flushInputStreamReader (Process process) throws IOException, InterruptedException {
               BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
               String line=null;
               StringBuilder s = new StringBuilder();
               while((line=input.readLine()) != null) {            
                   s.append(line);
               }
           }
    </string></string>

    Any suggestions ?

    After writing the function flushInputStreamReader, its working

  • running ffmpeg command in java Process hangs in waitFor()

    14 février 2021, par Mahesha M

    I'm running ffmpeg command to generate video for given images (img001.jpg, img002.jpg ...) it's creating slide.mp4, but it waits infinitely :

    &#xA;&#xA;

    public class Ffmpeg {&#xA;&#xA;public static void main(String[] args) throws IOException, InterruptedException {&#xA;    String path = "E:\\pics\\Santhosh\\FadeOut\\testing";       &#xA;    String cmd = "ffmpeg -r 1/5 -i img%03d.jpg -c:v libx264 -r 30 -y -pix_fmt yuv420p slide.mp4";&#xA;    runScript (path, cmd);&#xA;}&#xA;&#xA;private static boolean runScript(String path, String cmd) throws IOException, InterruptedException {       &#xA;    List<string> commands = new ArrayList<string>();&#xA;    commands.add("cmd");&#xA;    commands.add("/c");&#xA;    commands.add(cmd);&#xA;    ProcessBuilder pb = new ProcessBuilder(commands);&#xA;    pb.directory(new File(path));&#xA;    pb.redirectErrorStream(true);&#xA;    Process process = pb.start();   &#xA;    flushInputStreamReader(process);                &#xA;    int exitCode = process.waitFor();&#xA;    return exitCode == 0;&#xA;}    &#xA;}&#xA;&#xA;private static void flushInputStreamReader (Process process) throws IOException, InterruptedException {&#xA;            BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));&#xA;            String line=null;&#xA;            StringBuilder s = new StringBuilder();&#xA;            while((line=input.readLine()) != null) {            &#xA;                s.append(line);&#xA;            }&#xA;        }&#xA;</string></string>

    &#xA;&#xA;

    Any suggestions ?

    &#xA;&#xA;

    After writing the function flushInputStreamReader, its working

    &#xA;

  • android Creating FFMPEG video from single image and an audio

    9 septembre 2016, par King

    I have tried creating video using an image and an audio, using ffmpeg SDK codes as well as NDK, but unable to get any solution yet.

    I tried using this command :

    ffmpeg -loop 1 -i image.jpg -i audio.mp3 -c:v libx264 -tune stillimage -c:a aac -strict experimental -b:a 192k -pix_fmt yuv420p -shortest out.mp4

    This worked well in my ubuntu machine.

    But, when I try executing the same command through my app, using various different ways including a few libs for ffmpeg, it failed with different errors with different libs.

    I also tried using FFMPEG4Android but even that’s not working, without any error.

    When I try using NDK, I am getting :

    error: only position independent executables (PIE) are supported.

    Can’t get any fix for this video creating thing.
    I am totally puzzled, what should I use and how to get this thing fixed.

    My first preference is doing this without using NDK, with the help of SDK ffmpeg lib.

    When trying with WritingMinds lib for FFMPEG -
    with the command -

    ffmpeg -loop 1 -i image.jpg -i audio.mp3 -c:v libx264 -tune stillimage
    -c:a aac -strict experimental -b:a 192k -pix_fmt yuv420p -shortest out.mp4

    I am getting following output -

    D/ffmpeg: onProgress(), Input #0, image2, from '/storage/sdcard1/Pictures/others/500K.jpg':
    D/ffmpeg: onProgress(),   Duration: 00:00:00.04, start: 0.000000, bitrate: 104021 kb/s
    D/ffmpeg: onProgress(),     Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 3392x2540 [SAR 73:73 DAR 848:635], 25 fps, 25 tbr, 25 tbn, 25 tbc
    I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@2b5c52a1 time:29948243
    D/ffmpeg: onProgress(), [mp3 @ 0x2b74a4e0] Skipping 0 bytes of junk at 10699.
    D/ffmpeg: onProgress(), [mp3 @ 0x2b74a4e0] Estimating duration from bitrate, this may be inaccurate
    D/ffmpeg: onProgress(), Input #1, mp3, from '/storage/sdcard1/Music/Carefull.mp3':
    D/ffmpeg: onProgress(),   Metadata:
    D/ffmpeg: onProgress(),     duration        : 260
    D/ffmpeg: onProgress(),     starttime       : 0
    D/ffmpeg: onProgress(),     totalduration   : 260
    D/ffmpeg: onProgress(),     width           : 640
    D/ffmpeg: onProgress(),     height          : 480
    D/ffmpeg: onProgress(),     videodatarate   : 129
    D/ffmpeg: onProgress(),     audiodatarate   : 127
    D/ffmpeg: onProgress(),     totaldatarate   : 265
    D/ffmpeg: onProgress(),     framerate       : 30
    D/ffmpeg: onProgress(),     bytelength      : 8623964
    D/ffmpeg: onProgress(),     canseekontime   : true
    D/ffmpeg: onProgress(),     sourcedata      : B4A7DD8A8HM1317957558061017
    D/ffmpeg: onProgress(),     purl            :
    D/ffmpeg: onProgress(),     pmsg            :
    D/ffmpeg: onProgress(),     encoder         : Lavf52.87.1
    D/ffmpeg: onProgress(),     title           : Careful
    D/ffmpeg: onProgress(),     artist          : Michelle Featherstone
    D/ffmpeg: onProgress(),   Duration: 00:04:20.00, start: 0.000000, bitrate: 256 kb/s
    D/ffmpeg: onProgress(),     Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 256 kb/s

    Displays no reason of failure

    After this, it gets terminated, without displaying any reason of failure and resultantly, I get a 64 byte video, which doesn’t play, probably corrupted or incomplete.

    I also referred this, but even this didn’t work with my command.

    Is there something wrong in my command ? because the same command is working fine when I tried it using my Ubuntu terminal.