
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (108)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 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, parMultilang 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, parCertains 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 JamesMGreeneDocs : 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 -
Ffmpeg merge videos from images with videos and audio cut
30 mars 2021, par Trofingot 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 = [];
 VIDEO_CONFIG.fragments.forEach((fragment) => {
 videosFromImages.push(function (callback) {
 let ffmpegInstance = ffmpeg(
 `./images/images-with-same-size/${fragment.filename}`
 );

 if (fragment.duration && fragment.type === "image") {
 ffmpegInstance.loop(fragment?.duration);
 }

 if (fragment.type === "image") {
 ffmpegInstance
 .addInput("./audio/audio.mp3")
 .inputOptions(
 "-ss",
 time,
 "-to",
 time + fragment.duration,
 "-async",
 "1"
 );

 time = time + fragment.duration;
 console.log("time:", time);
 }

 ffmpegInstance
 .videoCodec("libx264") // Codec from api
 .videoBitrate("12000k") // Video Quality
 .videoFilters([
 {
 filter: "fade",
 options: "in:0:15",
 },
 ]) // Transitions
 .on("error", function (err) {
 console.error("An error occurred: " + err.message);
 })
 .on("end", function () {
 res.write(`<p>Processing finished for ${fragment.filename}</p>`);
 fragment.filePath = `./output/project-${VIDEO_CONFIG.projectId}/videos/video-${fragment.filename}.avi`;

 callback(null, fragment);
 })
 .save(
 `./output/project-${VIDEO_CONFIG.projectId}/videos/video-${fragment.filename}.avi`
 );
 });
 });

 async.series(videosFromImages, function (err, videosFromImages) {
 // result now equals 'done'
 async.waterfall(
 [
 (done) => {
 console.log("VIDEO_CONFIG", VIDEO_CONFIG.fragments);

 VIDEO_CONFIG.fragments
 .reduce((prev, curr) => prev.input(curr.filePath), ffmpeg())
 .outputFPS(60)
 .on("error", (err) => {
 res.end();
 console.log(
 `An error occurred while merging video files: ${err.message}`
 );
 })
 .on("end", () => {
 res.write("FINAL VIDEO END");
 res.end();
 console.log("end:");
 })
 .mergeToFile(
 `./output/project-${VIDEO_CONFIG.projectId}/final-video-${VIDEO_CONFIG.projectId}.mp4`
 );
 done(null);
 },
 ],
 (err) => {
 if (err) {
 console.log("err:", err);
 }
 }
 );
 });

 res.write("<p>Processing</p>");
} catch (error) {
 console.error("error:", error);
}



``