Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (108)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (17100)

  • Docs : Updated all references of 'zeroclipboard.org' to 'zeroclipboard…

    30 août 2017, par JamesMGreene
    Docs : Updated all references of ’zeroclipboard.org’ to ’zeroclipboard.github.io’
  • nvenc : flush the encoder before closing it, as required by the docs

    8 janvier 2016, par Anton Khirnov
    nvenc : flush the encoder before closing it, as required by the docs
    

    Otherwise, closing the encoder can crash.

    • [DBH] libavcodec/nvenc.c
  • Ffmpeg merge videos from images with videos and audio cut

    30 mars 2021, par Trofin

    got a question about fluent ffmpeg, i'm quite new to it so need some help.

    


    I'm trying to get images and videos from S3 so i can make a full video from them.
So i'm making videos with .loop with certain video length from images.
Then i'm adding a normal video with it's audio.
Then i'm cutting audio length so the audio that was added will play only on the videos made from images.
When the video which was merged with the videos from images will come to play it will have his own audio.
The thing is that if i merge all videos i get this error :
An error occurred while merging video files: ffmpeg exited with code 1: Cannot find a matching stream for unlabeled input pad 7 on filter Parsed_concat_0.

    


    So i need to add an audio to the video which was not made from images so that the stream could work. How can i avoid this and let that video have it's own audio ? what inputOptions should i add ? Also when i cut the audio it has a delay, what audioFilters can i add ?

    


    ``

    


      const videosFromImages = [];&#xA;  VIDEO_CONFIG.fragments.forEach((fragment) => {&#xA;    videosFromImages.push(function (callback) {&#xA;      let ffmpegInstance = ffmpeg(&#xA;        `./images/images-with-same-size/${fragment.filename}`&#xA;      );&#xA;&#xA;      if (fragment.duration &amp;&amp; fragment.type === "image") {&#xA;        ffmpegInstance.loop(fragment?.duration);&#xA;      }&#xA;&#xA;      if (fragment.type === "image") {&#xA;        ffmpegInstance&#xA;          .addInput("./audio/audio.mp3")&#xA;          .inputOptions(&#xA;            "-ss",&#xA;            time,&#xA;            "-to",&#xA;            time &#x2B; fragment.duration,&#xA;            "-async",&#xA;            "1"&#xA;          );&#xA;&#xA;        time = time &#x2B; fragment.duration;&#xA;        console.log("time:", time);&#xA;      }&#xA;&#xA;      ffmpegInstance&#xA;        .videoCodec("libx264") // Codec from api&#xA;        .videoBitrate("12000k") // Video Quality&#xA;        .videoFilters([&#xA;          {&#xA;            filter: "fade",&#xA;            options: "in:0:15",&#xA;          },&#xA;        ]) // Transitions&#xA;        .on("error", function (err) {&#xA;          console.error("An error occurred: " &#x2B; err.message);&#xA;        })&#xA;        .on("end", function () {&#xA;          res.write(`<p>Processing finished for ${fragment.filename}</p>`);&#xA;          fragment.filePath = `./output/project-${VIDEO_CONFIG.projectId}/videos/video-${fragment.filename}.avi`;&#xA;&#xA;          callback(null, fragment);&#xA;        })&#xA;        .save(&#xA;          `./output/project-${VIDEO_CONFIG.projectId}/videos/video-${fragment.filename}.avi`&#xA;        );&#xA;    });&#xA;  });&#xA;&#xA;  async.series(videosFromImages, function (err, videosFromImages) {&#xA;    // result now equals &#x27;done&#x27;&#xA;    async.waterfall(&#xA;      [&#xA;        (done) => {&#xA;          console.log("VIDEO_CONFIG", VIDEO_CONFIG.fragments);&#xA;&#xA;          VIDEO_CONFIG.fragments&#xA;            .reduce((prev, curr) => prev.input(curr.filePath), ffmpeg())&#xA;            .outputFPS(60)&#xA;            .on("error", (err) => {&#xA;              res.end();&#xA;              console.log(&#xA;                `An error occurred while merging video files: ${err.message}`&#xA;              );&#xA;            })&#xA;            .on("end", () => {&#xA;              res.write("FINAL VIDEO END");&#xA;              res.end();&#xA;              console.log("end:");&#xA;            })&#xA;            .mergeToFile(&#xA;              `./output/project-${VIDEO_CONFIG.projectId}/final-video-${VIDEO_CONFIG.projectId}.mp4`&#xA;            );&#xA;          done(null);&#xA;        },&#xA;      ],&#xA;      (err) => {&#xA;        if (err) {&#xA;          console.log("err:", err);&#xA;        }&#xA;      }&#xA;    );&#xA;  });&#xA;&#xA;  res.write("<p>Processing</p>");&#xA;} catch (error) {&#xA;  console.error("error:", error);&#xA;}&#xA;

    &#xA;

    ``

    &#xA;