Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (81)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (9825)

  • Issues in executing FFmpeg command in Java code in Linux

    12 août 2017, par Tina J

    I have problems executing this ffmpeg command in my java code :

    ffmpeg -i sample.mp4 -i ad.mp4 -filter_complex "[0:v]trim=0:15,setpts=PTS-STARTPTS[v0]; [1:v]trim=0:5,setpts=PTS-STARTPTS[v1]; [0:v]trim=20:30,setpts=PTS-STARTPTS[v2]; [v0][v1][v2]concat=n=3:v=1:a=0[out]" -map "[out]" output.mp4

    I used the getRuntime() method below, but that doesn’t work for me. Even if I simply remove the ", still it doesn’t work. When I simply copy-paste the equivalent string in terminal, it works.

    String c1=" -i "+dir+"sample.mp4 "+"-i "+dir+"ad.mp4 -fi‌​lter_complex [0:v]‌​trim=0:15,setpts=PTS‌​-STARTPTS[v0]; [1:v]trim=0:5,setpts=PTS-STARTPTS[v1]; [0:v]trim=20:30,setpts=PTS-STARTPTS[v2]; [v0][v1][v2]concat=n=3:v=1:a=0[out] -map [out] "+dir+"output.‌​mp4";
    RunCommand("ffmpeg"+c1);

    Using this method :

    private static void RunCommand(String command) throws InterruptedException {
       try {
           // Execute command
           Process proc = Runtime.getRuntime().exec(command);
           System.out.println(proc.exitValue());

           // Get output stream to write from it
           // Read the output

           BufferedReader reader =  
                   new BufferedReader(new InputStreamReader(proc.getInputStream()));
           String line = "";
           while((line = reader.readLine()) != null) {
               System.out.print(line + "\n");
               //              System.out.println(ads.get(0));
           }
           proc.waitFor();  

       } catch (IOException e) {
       }
    }

    This one doesn’t work also, and printing the exit value shows this :

    Exception in thread "main" java.lang.IllegalThreadStateException: process hasn't exited
       at java.lang.UNIXProcess.exitValue(UNIXProcess.java:423)
       at parser.Parser.RunCommand(Parser.java:106)
       at parser.Parser.commandGenerator2(Parser.java:79)
       at parser.Parser.main(Parser.java:44)

    If I move the proc.waitFor(); before printing the exit value, it is 1.

    What is the problem ? Why it doesn’t run in Java code ?

  • mips/mathops : remove 64-bit code

    26 février 2015, par James Cowgill
    mips/mathops : remove 64-bit code
    

    GCC is perfectly happy generating optimized multiplication code on its own for
    64-bit arches. GCC refuses to optimize the loongson code when in 32-bit mode,
    so I’ve left that.

    Signed-off-by : James Cowgill <james410@cowgill.org.uk>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/mips/mathops.h
  • How to code Laravel FFMpeg video conversion for specific parameters ?

    7 octobre 2022, par Wayne Fulcher

    I am using Laravel 9.x running php 8.1.x.&#xA;I have some code that I use to convert videos that have a context type other than video/mp4 to a H264 format. The reason is to make a video format that is compatible with Apple (iOS), Android and most web browsers. This code has worked so far on every video we have used it on except for one.&#xA;My current code is

    &#xA;

            $ffmpeg = FFMpeg::create();&#xA;        $video = $ffmpeg->open($videoFilename);&#xA;        $format = new X264();&#xA;        $format->setAudioCodec("aac"); &#xA;        $video->save($format, $newFilename);&#xA;

    &#xA;

    So in an attempt to debug what else needs to be done I started manually running ffmpeg commands on my computer against a copy of the video in question. I have finally figured out what additional parameters are required to successfully convert that video so it plays on all devices. The manual command is as follows :

    &#xA;

    ffmpeg -i input.mov -pix_fmt yuv420p -b:v 4000k -c:v libx264 output.mp4&#xA;

    &#xA;

    I am about 90% sure the parameters that dealt with the specifics of this video were the following :

    &#xA;

    -pix_fmt yuv420p -b:v 4000k

    &#xA;

    My problem now is I can not figure out what changes to my php code I need to make that would be the equivalent to those additional command line parameters.&#xA;Also I am wondering as I am typing this question, is there a way for me to "auto-detect" when a video requires this additional parameters or not ? (maybe that is a second post/question)

    &#xA;