Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (106)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

Sur d’autres sites (10053)

  • Java Runtime Command with disrupt/additonal command

    11 juin 2014, par oneofakind

    Actually the example below is not what I want to do, its sort of related to what I really wanna do. Its basically having to execute a shell command or a cmd command and executing another command relating to the first command. Somehow it stops/proceeds/respond to the first command executed.

    It’s actually ffmpeg execution what I wanna do, recording the screen. Problem is that I cannot execute a "q" key to stop the recording. Example above is sort of a simple, but I hope applicable, to my main problem.

    Here is the simplified problem :

    StringBuffer output = new StringBuffer();
    String domainName = "google.com";
    String command = "ping -t " + domainName;
    Process p;
    try {
       p = Runtime.getRuntime().exec(command);
       p.waitFor();
       BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));

                   String line = "";          
       while ((line = reader.readLine())!= null) {
           output.append(line + "\n");
       }

    } catch (Exception ec) {
       ec.printStackTrace();
    }


    System.out.println(output);

    What will happen here is that it will ping endlessly unless interrupted to end the ping, what will happen to the code is that it will get stuck in the line :

    p.waitFor();

    That is because, I believe, it is waiting for the command to finish before it releases it. What I want to do is to execute a "ctrl+C" or command that will stop this execution and then manipulate the result continuing through

    BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
    ........
    ........

    I hope you guys got what I am trying to say. :D

    Please help. Thanks.

  • Extract audio from video in mp3 format using android-ffmpeg-library

    28 mai 2014, par user2870161

    I want extrat audio from any type of video file and save it in mp3 format using android-ffmpeg-library.

    My most of work is done here i am create wav file using this code but problame is when i create mp3 file it make only 0kb file in sdcard.

    I hope I’ve made myself clear, and thanks for taking the time to read this.

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

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


       String baseDir = Environment.getExternalStorageDirectory().getAbsolutePath();
       String fileName = "3.mp4";
       String fileName1 = "2.mp3";

       String path  = baseDir + "/" + fileName;
       String path1  = baseDir + "/" + fileName1;

         File f = new File(path);

         if(f.exists()){
             System.out.println("File existed");
         }else{
             System.out.println("File not found!");
         }

         cmd.add(mFfmpegPath);
         cmd.add("-i");
         cmd.add(path);

         cmd.add("-vn");
         cmd.add("-acodec");
         cmd.add("copy");

         cmd.add(path1);








       final ProcessBuilder pb = new ProcessBuilder(cmd);
       return new ProcessRunnable(pb);
    </string></string>
  • How do I make mp4 file with h.264 network packets ?

    13 novembre 2018, par LeeHyeSung

    I have H.264 Packets(FU-A) got from network LAN and I want to put it in mp4 format container and save it as a mp4 file.

    I saw hope from library called ffmpeg searched on the internet.

    But, When I saw some examples about ffmpeg, I felt it’s a little different case with mine.

    Because they always start code with input files however I don’t have any file.
    I just get some packets those are SPS, PPS, FU-A and only I-frame.

    I guess that I have to make some metadata for writing a header about mp4 format
    ... or not.

    How do I use ffmpeg library in this case ?