
Recherche avancée
Autres articles (111)
-
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...)
Sur d’autres sites (5495)
-
Error while creating thumb from video ubuntu ffmpeg
1er janvier 2019, par dev21using below line to generate thumb from the video saved in the public folder in the laravel 4.2 application.
exec("ffmpeg -ss 00:00:05 -i /var/www/html/project/public/".$directory."".$filename." -vf 'select=not(mod(n\,1000)),scale=320:240' /var/www/html/project/public/".$d.$thumb." >> log_file.log 2>&1 &",$output, $exit_code);
but "log_file.log" contains the following line :
cannot create user data directory: /var/www/snap/ffmpeg/411: Read-only file system
I used snap to install the ffmpeg.
-
Subtitles are always stuck in first line using ffmpeg fluent, same command works perfectly on cmd
7 novembre 2024, par mattg07im making a tool that generates assets, 3 image, 3 audios and 3 srt subtitles files.
Then doing a for loop to generate 3 separate videos putting those assets together.
the video is working fine when it comes to image and audio, but the subtitles are stuck on the first line.
I have tried outputOptions(
vf -subtitlesFile
), videoFilters(vf -subtitlesFile
) input(subFile).
And nothing works, In each scenario the srt is stuck in first line like so.

When i do it on command like -i b-roll-2.png -i voiceover-2.mp3 -vf "subtitles=voiceover-2.srt" -c:v libx264 -c:a copy -shortest output22.mp4. It works perfectly.


The files are dynamic, but ffmpeg is reaching all of then.


1
00:00:00,000 —> 00:00:03,900
To influence people, make one key change in how you talk,


(Stuck here)
2
00:00:03,900 —> 00:00:06,580
says communication expert Matt Abrahams.


this is my code, im using node.js


for (let i = 0; i < images.length; i++) {
 const inputImage = path.join(dir, images[i]);
 const inputAudio = path.join(dir, audio[i]);
 const inputSub = path.join(dir, sub[i]).replace(/\\/g, "/");
 const outputVideo = path.join(dir, `output_${i}.mp4`);

 if (!fs.existsSync(inputImage)) {
 console.error(`Image file not found: ${inputImage}`);
 continue;
 }
 if (!fs.existsSync(inputAudio)) {
 console.error(`Audio file not found: ${inputAudio}`);
 continue;
 }
 if (!fs.existsSync(inputSub)) {
 console.error(`Sub file not found: ${inputSub}`);
 continue;
 }

 await new Promise((resolve, reject) => {
 ffmpeg()
 .input(inputImage)
 .input(inputAudio)
 .videoCodec("libx264") // Set video codec
 .audioCodec("copy") // Copy the audio without re-encoding
 .outputOptions([
 "-preset veryfast",
 "-pix_fmt yuv444p",
 `vf subtitles=${inputSub}`
 ])
 .on("stderr", (stderr) => {
 console.error("FFmpeg STDERR:", stderr); // Logs FFmpeg's standard error output
 })
 .on("stdout", (stdout) => {
 console.log("FFmpeg STDOUT:", stdout); // Logs FFmpeg's standard output
 })
 .on("end", resolve)
 .on("error", (err, stdout, stderr) => {
 console.error("Error: " + err.message);
 console.error("ffmpeg stdout: " + stdout);
 console.error("ffmpeg stderr: " + stderr);
 reject(err);
 })
 .save(outputVideo);
 });
 console.log("ready processing");
 }



Tried everything but nothing works using fluent. Only cmd


-
swscale/aarch64 : add hscale specializations
26 mai 2022, par Swinney, Jonathanswscale/aarch64 : add hscale specializations
This patch adds code to support specializations of the hscale function
and adds a specialization for filterSize == 4.ff_hscale8to15_4_neon is a complete rewrite. Since the main bottleneck
here is loading the data from src, this data is loaded a whole block
ahead and stored back to the stack to be loaded again with ld4. This
arranges the data for most efficient use of the vector instructions and
removes the need for completion adds at the end. The number of
iterations of the C per iteration of the assembly is increased from 4 to
8, but because of the prefetching, there must be a special section
without prefetching when dstW < 16.This improves speed on Graviton 2 (Neoverse N1) dramatically in the case
where previously fs=8 would have been required.before : hscale_8_to_15__fs_8_dstW_512_neon : 1962.8
after : hscale_8_to_15__fs_4_dstW_512_neon : 1220.9Signed-off-by : Jonathan Swinney <jswinney@amazon.com>
Signed-off-by : Martin Storsjö <martin@martin.st>