Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (55)

  • 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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (10987)

  • Unable to convert files with fluent-ffmpeg

    4 avril 2017, par Somename

    I installed fluent-ffmpeg with npm install fluent-ffmpeg and verified its present in the node-modules. There is no error if I include it in the server var ffmpeg = require('fluent-ffmpeg'); But when I use it to convert a .gif file in the directory to .mp4 it throws an error : Error: Cannot find ffmpeg

    My code :

    var express = require('express');
    var bodyParser = require('body-parser');
    var app = express();
    var ffmpeg = require('fluent-ffmpeg');

    var proc = new ffmpeg({ source: '/uploads/myfile.gif' })
     .usingPreset('podcast')
     .saveToFile('/uploads/mynewfile.mp4', function(stdout, stderr) {
       console.log('file has been converted succesfully');
     });

    What am I doing wrong ? I want to convert the .gif to .mp4

  • Issues executing ffmpeg on windows

    4 avril 2017, par Somename

    Installed ffmpeg. Added the PATH in system Environment Variables and can execute ffmpeg from anywhere in the cmd. Installed fluent-ffmpeg. Below is my script :

    var express = require('express');
    var bodyParser = require('body-parser');
    var app = express();
    var ffmpeg = require('fluent-ffmpeg');  

    var proc = new ffmpeg({ source: 'myfile.gif' })
     .withAspect('4:3')
     .withSize('640x480')
     .applyAutopadding(true, 'white')
     .saveToFile('myfile.avi', function(stdout, stderr) {
       console.log('file has been converted succesfully');
     });

    app.listen(3000, function() {  
       console.log("Server Running on 3000");
    });

    Getting error :
    enter image description here

    enter image description here

    Please help.

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