Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (90)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

Sur d’autres sites (5287)

  • Anomalie #4546 (Nouveau) : image_recadre perd l’EXIF de rotation

    4 septembre 2020, par jluc -

    Alors que image_reduire propage les données EXIF de rotation, image_recadre les perd. Cela nuit grandement au rendu final.

  • Execute mp4box cmd via java got error

    6 novembre 2015, par Ducthien

    sorry when I tag ffmpeg because I couldn’t tag MP4Box.But I have proplem with excuted with ffmpeg via javacode too.
    I read at How to execute cmd commands via Java but i can’t find my proplem.

    I’m tested commands in cmd, it was ok :

    MP4Box -dash 10000 -dash-profile live -segment-name output- seg -rap
    -bs-switching no input.mp4

    but when i executed cmd via java code , i get error :

    Error - only one input file found as argument, please check usage

    Below is my code, has something wrong ?

    package com.uit.reformatvideo;

    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.logging.Logger;

    public class ExecuteComandToFormatVideo {

       public final static String LINK_MP4BOX = "C:/MP4Box/Tools/MP4Box.exe";
       public final static String CREATE_MPD_ECLIPSE = "mp4box -dash 10000 -frag 1000 -rap -bs-switching no";
       public final static String CREATE_MPD_IE = "MP4Box -dash 10000 -dash-profile live -segment-name output-seg -rap -bs-switching no";
       private static final Logger log = Logger.getLogger(ExecuteComandToFormatVideo.class.getName());


       public static void main(String[] args) throws IOException, InterruptedException {
             String s = null;

               try {

               // run the Unix "ps -ef" command
                   // using the Runtime exec method:
                   String lsCmd[] = new String [2];
                   lsCmd[0] = LINK_MP4BOX;
                   lsCmd[1] = "MP4Box -dash 10000 -dash-profile live -segment-name output-seg -rap -bs-switching no input.mp4";
                   Process p = Runtime.getRuntime().exec(lsCmd);
                   p.waitFor();
                   BufferedReader stdInput = new BufferedReader(new
                        InputStreamReader(p.getInputStream()));

                   BufferedReader stdError = new BufferedReader(new
                        InputStreamReader(p.getErrorStream()));

                   // read the output from the command
                   System.out.println("Here is the standard output of the command:\n");
                   while ((s = stdInput.readLine()) != null) {
                       System.out.println(s);
                   }

                   // read any errors from the attempted command
                   System.out.println("Here is the standard error of the command (if any):\n");
                   while ((s = stdError.readLine()) != null) {
                       System.out.println(s);
                   }

                   System.exit(0);
               }
               catch (IOException e) {
                   System.out.println("exception happened - here's what I know: ");
                   e.printStackTrace();
                   System.exit(-1);
               }
       }

    }

    Here was out put :

    Here is the standard output of the command :

    Here is the standarderror of the command (if any) : Error - only one
    input file found as argument, please check usage

  • how to combine all chunk videos path into text file using ffmpeg

    31 juillet 2017, par Megha CS

    Task is to create final output video by combining all chunk videos recording from webcam using ffmpeg.

    For that, created process with passing the ffmpeg command as argument and save all chunk videos to local folder.

    code snippet :

    process =new Process();
    process.StartInfo.FileName = Directory.GetCurrentDirectory() + @"\ffmpeg.exe";
    process.StartInfo.Arguments = "-re -rtbufsize 1000M -f dshow -i video=" + "\"" + vidDevName + "\"" + " -acodec libvo_aacenc -ab 48kb -ar 22050 -ac 2 -b:a 128k -vcodec libx264 -r 25 -s 480x360 -pix_fmt yuv420p -preset medium -segment_time 10 -f segment output%03d.mp4";
    process.Start();

    Its working fine. But now, have to create text file of listing all chunk videos path and can create final output video by using "-f concat -safe 0 -i mylist.txt -c copy output.mp4" as an argument.

    Am stuck in creating text file with listing all chunk videos path in c#.
    I have used (for %i in (*.wav) do @echo file ’%i’) > mylist.txt to create text file. Its working fine in command prompt but not in C# application.
    So please suggest on this.