Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (71)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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 (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (11738)

  • How to access uploaded file from multer ?

    13 avril 2017, par Somename

    Im able to upload an image to S3. Now, if the file selected is .gif, I want to be able to convert the .gif file to .mp4 and upload the converted file to S3. I am able to convert a .gif to .mp4 with ffmpeg only if I give the path of the file. How do I access the uploaded file from Multer ? Below is my code :

    var express = require('express');
    var bodyParser = require('body-parser');
    var app = express();
    var aws = require('aws-sdk');
    var multer = require('multer');
    var multerS3 = require('multer-s3');
    var s3 = new aws.S3();
    var ffmpeg = require('fluent-ffmpeg');


    var upload = multer({
       storage: multerS3({
           s3: s3,
           bucket: 'myBucket',
           key: function (req, file, cb) {
               console.log(file);
               var extension = file.originalname.substring(file.originalname.lastIndexOf('.')+1).toLowerCase();

                   if(extension=="gif"){
                   console.log("Uploaded a .gif file");

                   ffmpeg(file) //THIS IS NOT WORKING
                       .setFfmpegPath("C:\\ffmpeg\\bin\\ffmpeg.exe")
                         .output('./outputs/2.mp4')    //TRYING TO UPLOAD LOCALLY, WHICH FAILS
                         .on('end', function() {
                           console.log('Finished processing');
                         })
                         .run();
               }

               cb(null, filename);
           }
       })
    });

    I’m trying to access the uploaded file like this : ffmpeg(file) since file is an argument passed in the multer function.

    My form :

    <form action="/upload" method="post" enctype="multipart/form-data">
       <input type="file" /> <br />
       <input type="submit" value="Upload" />
    </form>

    In which part of the process do I convert the file ?

    Please help. Many thanks.

  • avfilter/vf_framepack : Use dedicated pointer for access

    6 septembre 2023, par Andreas Rheinhardt
    avfilter/vf_framepack : Use dedicated pointer for access
    

    Improves readability.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavfilter/vf_framepack.c
  • fftools/cmdutils : Don't access AV(In|Out)putformat.get_device_list

    1er septembre 2021, par Andreas Rheinhardt
    fftools/cmdutils : Don't access AV(In|Out)putformat.get_device_list
    

    It is not part of the public API.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] fftools/cmdutils.c