Recherche avancée

Médias (3)

Mot : - Tags -/plugin

Autres articles (51)

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8752)

  • Get rotation information from javacv ffmpeg FrameGrabber

    9 février 2015, par pept

    I am using FFMPEG from the JavaCV library to extract all pictures of a movie (solution found here : How can I get a frame sample (jpeg) from a video (mov)). This is my code which works fine :

           grabber.start();
               int size = grabber.getLengthInFrames();
               for (int i = 0; 0 < size; i++) {
                   File destination = new File(directory, i + ".png");
                   if (!destination.exists()) {
                       ImageIO.write(grabber.grab().getBufferedImage(), "png",
                               destination);
                   }
                   setProgress((int) ((float) i / size * 100));
               }
               grabber.stop();

    However, the pictures are rotated by 90 degrees when I extract them. The output in command line after grabber.start() ; contains the following lines :

    rotate          : 90

    and

    displaymatrix: rotation of -90.00 degrees

    which indicates that it detects the rotation.

    My question is : How can i programmatically get the rotation to rotate them back myself or a way to get the normalized picture with the library ?

  • Use OpenH264 instead of libx264 in ffmpeg ?

    26 août 2020, par MING

    I use node-fluent-ffmpeg module to call ffmpeg.exe in my node.js app

    


    How to use OpenH264 when calling ffmpeg.exe ?

    


    Do I need to recompile ffmpeg ?

    


    But compiling ffmpeg looks complicated...

    


    The actual code is probably like this

    


    var FfmpegCommand = require('fluent-ffmpeg');
var FFMPEG_PATH = "C:/ffmpeg/bin/ffmpeg.exe" // binary file
FfmpegCommand.setFfmpegPath(FFMPEG_PATH)

FfmpegCommand("dog.webm", {})
    .videoCodec('libx264')
    // command line 
    // .addOutputOption([
    //     '-threads 8'
    // ])
    .on('start', function (commandLine) {
        // Actual ffmpeg command
        // ffmpeg -i C:\Users\ming\Pictures\WEBCAMCAPTURE\dog.webm -y -vcodec libx264 C:\Users\ming\Pictures\WEBCAMCAPTURE\dog_x264.mp4
        console.log('command' + commandLine)
    })
    .on('progress', function (progress) {
        console.log('Processing: ' + progress.percent + '% done')
    })
    .on('end', function () {
        console.log('Finished')
    })
    .save("dog_x264.mp4")



    


    English isn’t my first language, so please excuse any mistakes.

    


  • Use OpenH264 instead of libx264 in ffmpeg ?

    26 août 2020, par MING

    I use node-fluent-ffmpeg module to call ffmpeg.exe in my node.js app

    


    How to use OpenH264 when calling ffmpeg.exe ?

    


    Do I need to recompile ffmpeg ?

    


    But compiling ffmpeg looks complicated...

    


    The actual code is probably like this

    


    var FfmpegCommand = require('fluent-ffmpeg');
var FFMPEG_PATH = "C:/ffmpeg/bin/ffmpeg.exe" // binary file
FfmpegCommand.setFfmpegPath(FFMPEG_PATH)

FfmpegCommand("dog.webm", {})
    .videoCodec('libx264')
    // command line 
    // .addOutputOption([
    //     '-threads 8'
    // ])
    .on('start', function (commandLine) {
        // Actual ffmpeg command
        // ffmpeg -i C:\Users\ming\Pictures\WEBCAMCAPTURE\dog.webm -y -vcodec libx264 C:\Users\ming\Pictures\WEBCAMCAPTURE\dog_x264.mp4
        console.log('command' + commandLine)
    })
    .on('progress', function (progress) {
        console.log('Processing: ' + progress.percent + '% done')
    })
    .on('end', function () {
        console.log('Finished')
    })
    .save("dog_x264.mp4")



    


    English isn’t my first language, so please excuse any mistakes.