Recherche avancée

Médias (0)

Mot : - Tags -/alertes

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (59)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (5206)

  • Revision e693472236 : Fairly basic integration of rectangular blocks in encoding RD loop. Adds RD int

    17 avril 2013, par Ronald S. Bultje

    Changed Paths : Modify /vp9/common/vp9_blockd.c Modify /vp9/common/vp9_blockd.h Modify /vp9/decoder/vp9_detokenize.c Modify /vp9/encoder/vp9_block.h Modify /vp9/encoder/vp9_encodeframe.c Modify /vp9/encoder/vp9_rdopt.c Modify /vp9/encoder/vp9_segmentation.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;

  • How to I convert all audio tracks to eac3 and keep all subtitles ?

    10 novembre 2023, par Kushal Sai Gunturi

    I'm not familiar with ffmpeg, but came across this script that takes in the file and creates an output with eac3 audio.

    &#xA;

    #!/bin/sh&#xA;&#xA;echo "Dolby Digital Plus Muxer"&#xA;echo "Developed by @kdcloudy, not affiliated with Dolby Laboratories"&#xA;echo "Enter the file name to be converted: "&#xA;read filepath&#xA;if [! -d $filepath]&#xA;then&#xA;exit $err&#xA;fi&#xA;&#xA;ffmpeg -i $filepath -vn ddp.eac3&#xA;ffmpeg -i $filepath -i ddp.eac3 -vcodec copy -c:a eac3 -map 0:s -map 0:v:0 -map 1:a:0 output.mp4&#xA;rm ddp.eac3&#xA;

    &#xA;

    I'd like to know what to modify in this code to ensure all the subtitles are copied from the original file and all the available audio tracks are converted to eac3 and added to the output.mp4 file.&#xA;For the subtitles copying I tried -map but couldn't get it to work. Thanks for the help !

    &#xA;