Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (60)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • 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 ;

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

Sur d’autres sites (11487)

  • avformat/mpeg : Don't copy or leak string in AVBPrint

    4 décembre 2019, par Andreas Rheinhardt
    avformat/mpeg : Don't copy or leak string in AVBPrint
    

    vobsub_read_header() uses an AVBPrint to write a string and up until
    now, it collected the string stored in the AVBPrint via
    av_bprint_finalize(), which might involve an allocation and copy of the
    string. But this is unnecessary, as the lifetime of the returned string
    does not exceed the lifetime of the AVBPrint. So use the string in the
    AVBPrint directly.

    This also makes it possible to easily fix a memleak : In certain error
    situations, the string stored in the AVBPrint would not be freed (if it
    was dynamically allocated). This has been fixed, too.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/mpeg.c
  • How to send a string to ffmpeg's input in Java

    19 décembre 2019, par jdauthre

    I am quite new to java, and try as I might, I can’t find any examples to help me. I am running ffmpeg as a process and parsing the stderr to get various bits of data - all of which is working fine, but I want to send a "q\n" command to ffmpeg’s input from a gui menu item to gracefully quit it whilst it is running when necessary. So all I want to do is send a string programmatically to ffmpeg, the equivalent of sending q return from terminal. Thanks in advance
    edit here is the relevant (simplified) section of the code

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                 Thread thread = new Thread() {

    public void run()
    BufferedReader error_reader,input_reader;
    InputStreamReader error_isr,input_isr;

    String ffmpeg_command = "ffmpeg " + overwrite + " -i " + "\"" + currentfilestring + "\"" + " " + stream + " " + test + " " + findsilence + " " + videocodec + " -b:v " + videoqual + " " + audiocodec + " -ac 2  -ab " + audioqual + " " + res + " " + aspectratio + " " + framerate + " " + "\"" + destdir + destfile + "\"";
    System.out.println(ffmpeg_command);
    try {
    OutputStream stdout;
    InputStream stdin;
    InputStream stderr;
    String errorstr,inputstr;
    //Run the ffmpeg
    Process ffmpeg = Runtime.getRuntime().exec(ffmpeg_command, null, new File(userDir));

    //Get stdin,stderr + stdout                    
    stdin = ffmpeg.getInputStream();
    stderr = ffmpeg.getErrorStream();
    stdout = ffmpeg.getOutputStream();
    stdout.write("\r\n".getBytes());  
    stdout.flush();
    stdout.close();

    error_isr = new InputStreamReader(stderr);
    error_reader = new BufferedReader(error_isr);

    input_reader = new BufferedReader(input_isr);
    while (!error_reader.ready()) {
    }
    while ((errorstr = error_reader.readLine()) != null) {

    if(stopconv =="yes"){
                               //-------------------------------------------------------------------------------------
                                  // TRYING TO INPUT "q\n" TO FFMPEG HERE
                  //-------------------------------------------------------------------------------------
    }

    error_isr.close();
    error_reader.close();
    stdin.close();
    stderr.close();
    jProgressBar1.setValue(0);

    ffmpeg.destroy();

    } catch (Exception e) {
    e.printStackTrace();
                           }
    };
    thread.start();
    }                            
  • Python, FFMPEG : Redirecting output of FFMPEG subprocess call to a string

    31 décembre 2019, par user1452030

    I’ve managed to run an FFMPEG command using the subprocess module as shown below :

    output = subprocess.check_output(command, shell=True)

    This works fine, but it prints the verbose FFMPEG output to console. The program I’m writing is supposed to run for hundreds/thousands of files in a batch and I don’t want detailed outputs for every file processed, unless the user chooses to do so. Can I redirect the console outputs and errors to strings, so that I can decide when I should and shouldn’t print them ?

    This might be lame, but I tried the following snippet :

    outputBuffer = BytesIO()
    output = subprocess.check_output(command, shell=True, stdout=outputBuffer)

    But it gave me the following error :

    ValueError: stdout argument not allowed, it will be overridden.

    I saw other examples where the POpen interface was used, but given that I’m not communicating with the external command as it is running, and that I need to run this for a large number of items, I’d prefer something simpler, if possible.

    Thanks in advance !

    Note : I’ve found lots of questions in this broad topic, but I couldn’t find anything perfectly relevant to my situation.