Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (59)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (8002)

  • Ffmpeg returning error code 1 in AWS Lamda function

    14 avril 2018, par Tometoyou

    I’m running a lambda function which takes an mp4 video, and adds a watermark of a png image over the top of it in the bottom right hand corner (with a 10px margin). It then outputs that image to a temporary location. It keeps failing with Error code 1, but that isn’t very helpful. I’m using a binary version of ffmpeg that is specified in the main directory of the code. I know that ffmpeg is set up correctly due to using it in another lambda function in this way, which works. But adding an overlay fails. Here is the relevant part of my code :

    function addWatermark(next) {
       var ffmpeg = child_process.spawn("ffmpeg", [
         "-i", target, // url to stream from
         "-i", watermarkPath,
         "-filter_complex" ,"overlay=x=W-w-10:y=H-h-10:format=rgb,format=yuv420p",
         "-c:a", "copy",
         "pipe:1"
       ]);
       ffmpeg.on("error", function(err) {
         console.log(err);
       })
       ffmpeg.on("close", function(code) {
         if (code != 0 ) {
           console.log("child process exited with code " + code); // Always exits here.
         } else {
           console.log("Processing finished !");
         }
         tmpFile.end();
         next(code);
       });
       tmpFile.on("error", function(err) {
         console.log("stream err: ", err);
       });
       ffmpeg.on("end", function() {
         tmpFile.end();  
       })
       ffmpeg.stdout.pipe(tmpFile)
       .on("error", function(err){
         console.log("error while writing: ",err);
       });
    }

    Can anyone spot what may be wrong ?

    UPDATE

    I’ve managed to print out some more logs, I’m getting the error :

    [NULL @ 0x42923e0] Unable to find a suitable output format for 'pipe:1'
  • Implementing '-async 1' in C code to correct out of sync audio

    25 septembre 2013, par Christian P.

    I have built a segmenter that takes as input a h264 / AAC video and segments according to the HLS specification. The source code for it can be seen here : https://gist.github.com/cpnielsen/f36729c371aac0fe535d

    It is implemented as a python extension, but the interesting parts are in the process_video() function. It makes use of the libav library (alternatively ffmpeg) to do the heavy lifting.

    It works 95% of the time, but we have come upon some videos where it produces segments with audio out of sync. If I was using the command-line tool, I could simply add -async 1 to fix it, but how do I implement the same functionality in my C code ?

    I found a snippet of code in avconv_filter.c (for libav, not sure what the ffmpeg equivalent is) where they initiate the filter, but without any documentation it is hard to figure out how to do this outside the whole modular setup.

    I just need to :

    1. Initiate the correct filter
    2. Apply it to the input (or output ? not sure)
    3. Know of any pitfalls when using the filter.

    Any help is welcome ; sample code, explanation of the filter, etc.

  • Anomalie #3685 : Régression : balises code

    9 février 2016, par b b

    À ce que je vois le problème ne vient pas du raccourci code par défaut, mais plutôt de :

    code class=’spip’>#CACHE0
    

    Du coup, le bug doit venir du plugin coloration code.