Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (46)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

Sur d’autres sites (7329)

  • FFMPEG on Android java application

    11 juillet 2015, par Kim T

    I’m prototyping a Hybrid app using Cordova : https://cordova.apache.org. Also using this plugin : https://github.com/jbavari/cordova-plugin-video-editor

    The plugin renders a video into new formats using FFMPEG. The specific piece of code which does this is here :

    https://github.com/jbavari/cordova-plugin-video-editor/blob/master/src/android/VideoEditor.java

    al.add("ffmpeg");
    al.add("-i");
    al.add(videoSrcPath);
    String[] ffmpegCommand = al.toArray(new String[al.size()]);
    vk.run(ffmpegCommand, workFolder, appContext);
    Log.d(TAG, Arrays.toString(ffmpegCommand));

    When logged out in Android Studio with variables it is :

    [ffmpeg, -y, -i, /storage/emulated/0/DCIM/Camera/20150709_172753.mp4, -strict, experimental, -s, 320x320, -r, 24, -vcodec, libx264, -preset, ultrafast, -b, 2097152, -ac, 1, -ar, 22050, -t, 2.0, /storage/emulated/0/Movies/HelloWorld/VID_render-1436477283566.mp4]

    This is working perfectly.

    I want to modify this command to allow multiple videos, and other options. Here is an FFMPEG terminal command i’ve tested on my machine working :

    ./ffmpeg -i a.mp4 -i b.mp4 -filter_complex "[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" -loglevel debug -strict -2 output.mp4

    I’ve attempted to modify the java code but this fails :

    al.add("ffmpeg");
    al.add("-i");
    al.add(videoSrcPath);
    al.add("-i");
    al.add(videoSrcPath2);
    al.add("-filter_complex");
    al.add("[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]");
    al.add("-map");
    al.add("[v]");
    al.add("-map");
    al.add("[a]");
    al.add("-strict");
    al.add("-2");

    This is the failing command when logged out with variables :

    [ffmpeg, -y, -i, /storage/emulated/0/DCIM/Camera/20150709_175137.mp4, -i, /storage/emulated/0/Movies/HelloWorld/20150709_234321.mp4, -filter_complex, [0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a], -map, [v], -map, [a], -strict, -2, experimental, -s, 320x320, -r, 24, -vcodec, libx264, -preset, ultrafast, -b, 2097152, -ac, 1, -ar, 22050, -t, 2.0, /storage/emulated/0/Movies/HelloWorld/VID_render-1436478706526.mp4]

    I try to use the logging feature of FFMPEG, I can’t get it to return back to the Java Log, which really restricts what I can debug :(

    al.add("-loglevel");
    al.add("debug");

    Any help would be greatly appreciated !

  • cosmetics : trim trailing whitespace

    18 juin 2010, par John Koleszar

    cosmetics : trim trailing whitespace

  • FFMPEG in Java (runtime error)

    4 juillet 2012, par Eric

    I want to write a program that converts video into frames using FFMPEG. When I use it on the Ubuntu terminal, it works fine. But when I try to put it into the Java code, it gives me a runtime error. Did I make a mistake in my code below ?

    import java.util.*;
    import java.awt.*;
    import java.lang.*;
    import java.lang.Runtime;
    import java.io.*;
    import java.io.IOException;

    public class ConvertVideoToImage
    {
       private SingletonServer ss = null;

       public ConvertVideoToImage(SingletonServer ss)
       {
           this.ss = ss;
       }

       public void run()
       {
           convertVideo();
       }

       public void convertVideo()
       {
           try
           {
               Runtime rt = Runtime.getRunTime().exec("ffmpeg" + "-i" +         "display.wmv" + "image%d.jpg");
           }
           catch(Exception e){}
       }

    }

    Edit :

    I have changed the code like you suggested, but it also doesn't work. And when I Googled it, I found out that someone put the full path inside the executable and it became like this :

    Runtime.getRuntime().exec("/home/pc3/Documents/ffmpeg_temp/ffmpeg -i display.wmv image%d.jpg")

    BTW, thanks for the reply. I have another question. Is it possible to make a counter for FFMPEG ? I used this command in the Ubuntu terminal to make it convert a video to 30 frames/1seconds :

    ffmpeg -i display.wmv image%d.jpg

    This will automatically generate numbers like image1.jpg, image2.jpg, to image901.jpg. Is it possible to make a counter for this ? Because I need to count the files and control the number.

    Thanks in advance.