Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (67)

  • 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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (10398)

  • FFMPEG multiple screenshots command

    8 octobre 2020, par Jhony code

    iam trying to code a function which creates images from video files using ffmpeg.

    


    But now i want to know how can i make that with ffmpeg commands exactly, because i use wrapper and now i have some limitations, so i must go in the native way.

    


    So, first of all i have decided to use a Wrapper which is called node-fluent-ffmpeg.

    


    And this is my work-around with the Wrapper :

    


    ffmpeg({
        source: `The video file...`,
      })
        .on("filenames", async (filenames) => {
        })
        .on("error", function (err) {
          console.log("Error in filenames section: " + JSON.stringify(err));
        })
        .on("end", function () {
          console.log("Screenshots taken");
        })
        .screenshots({
          count: 60,
          folder: "tmp/",
          filename: "thumbnail-at-%i.png",
          size: "1600x900",
        })
        .on("end", function (stdout, stderr) {
            let newImg = await fs.createReadStream(`/tmp/${img}`);
            destparams = await {
              Bucket: dstBucket,
              Key: "uploaded-" + img,
              Body: newImg,
              ContentType: "image",
            };
           await s3.putObject(destparams).promise();


    


    }) ;

    


    Notes for understanding me better :

    


      

    • I still want to make it in node.js

      


    • 


    • Let's assume the file is : "The video file..."

      


    • 


    • I am taking 60 screenshots from the video in a random way, like it
does not matter the length of the video it will just take 60 screenshots from start until the end of the video.

      


    • 


    • Every screenshot taken will have a prefixed and ordered number and name for every frame.
For example : thumbnail-at-1.png, thumbnail-at-2.png, thumbnail-at-3.png and it continues until it reaches the 60 screenshot limit.

      


    • 


    • Every screenshot will be saved with a 1600x900 resolution.

      


    • 


    • Every screenshot will be saved in the TMP folder.

      


    • 


    • Do not mind reading this : After all I'll upload every screenshot to a s3 bucket.

      


    • 


    • I had search trough a lot of old forums, but it seems that ffmpeg has
a poor documentation (I have been stuck, so hard to understand).

      


    • 


    


    So my main goal is :

    


    How i can make exactly that function that i have shown in the code sample and the quick notes, with the FFMPEG commands ? (Not with the wrapper)

    


    (Sorry that i'm trying to make it simpler)

    


    I mean, Which commands i must use, with the FFMPEG commands in the following code sample ?

    


    By the way : it is node.js,

    


    Do not really know what to do, sorry

    


    spawnSync(
      "/opt/ffmpeg/ffmpeg",
      [
        "-i",
        ``,
        "-f",
        "",
        ``
      ],
      { stdio: "inherit" }
 );


    


    Thanks for your patience !

    


    Enviroment :

    


      

    • Node.js 12.x
    • 


    • FFMPEG (4.3.1)
    • 


    


  • Boosting the video transcoding time with fluent-FFMPEG in cloud functions

    6 juillet 2022, par Jaisurya Narayanan

    I am trying to convert a webm video to mp4 format recorded using MediaRecorder API.I am using fluent-ffmpeg. Once the file has been uploaded to storage as webm , we will trigger a cloud function that will do the video transcoding. To provide source stream for ffmpeg, am passing the google bucket url as a source url.
The conversion works fine, but the problem that conversion time is very slower that it is taking 10 mins or more for longer(20-30 mins) and hd quality videos.

    


    Due to this the cloud function max time out gets reached . Am using 2nd generation cloud functions ,i know that we can increase the max time out time upto 1 hour , but i feel it is not optimised way of handling this.Any help regarding the above issue on how to optimise conversion time would be highly appreciated.

    


    I will attach the code that does the transcoding

    


    

    

    import FfmpegCommand from 'fluent-ffmpeg';
import {  path } from '@ffmpeg-installer/ffmpeg';
FfmpegCommand.setFfmpegPath(path);

function transcodeToMp4(sourceUrl,gcsDestFile){
return new Promise((resolve, reject) => {
        FfmpegCommand({source : sourceUrl}) // sourceUrl will be google bucket url
            .outputOptions('-c:v copy')
            .outputOptions('-b:a 1300k')
            .outputOptions('-f mp4')
            .outputOptions('-preset ultrafast')
            .outputOptions('-movflags frag_keyframe+empty_moov')
            .pipe(gcsFile.createWriteStream(),{end: true})
            .on('finish',()=>{
             resolve(success);
             })
            .on('error',(err)=>{
             reject(err);
             });
});

}

    


    


    



    Thanks in Advance..

    


  • Video Concat using ffmpeg [closed]

    17 juin 2022, par Milan K Jain

    ffmpeg -i url1 -i url2 -i url3 -i url4 -filter_complex "[0:v:0]scale=1920:1080[c1] ; [1:v:0]scale=1920:1080[c2] ; [2:v:0]scale=1920:1080[c3] ; [3:v:0]scale=1920:1080[c4], [c1] [0:a:0] [c2] [1:a:0] [c3] [2:a:0] [c4] [3:a:0] concat=n=4:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" /Users/myname/Downloads/f1-2017-07-12.mp4 -y

    


    In Place of url I want to give link U get from after storing my video in amazon s3 bucket
Someone pls help