
Recherche avancée
Autres articles (43)
-
Publier sur MédiaSpip
13 juin 2013Puis-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 -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (4778)
-
Rendering video by ffmpeg.wasm in browser occured an error
15 septembre 2022, par James BorWhen a local video renderer uses the ffmpeg.wasm library in the Chrome browser, very often an error with the SBOX_FATAL_MEMORY_EXCEEDED code occurs during the rendering process. The standard command set is used. The code below is half fake because it is very long, but describes an approximate action algorithm. Computer performance and RAM capacity do not affect the video, files used - minimal size. Has anyone experienced this and how can we solve it ?
Error screen


const videoGenerate = async (project) => {
 const ffmpeg = createFFmpeg({
 corePath: 'ffmpeg/ffmpeg-core.js',
 workerPath: 'ffmpeg/ffmpeg-core.worker.js'
 });
 await loadFfmpeg(ffmpeg);
 project.projectName = "Default";
 project.fileType = "video/mp4";

 const resultVideo = {
 title: `${project.projectName}ConcatenatedVideo.mp4`,
 };
 // *For fetchFile method and ffmpeg.FS('writeFile', title, file);
 await uploadObjects(project.projectName, ffmpeg);
 // *
 const command = ['-i', project.video, resultVideo.title];
 await ffmpeg.run(...command);
 await ffmpeg.FS("unlink", resultVideo.title);
 resultVideo["blob"] = ffmpeg.FS('readFile', title);
 return resultVideo.blob;
};



These dependencies are used : "@ffmpeg/core" : " 0.8.5", "@ffmpeg/ffmpeg" : " 0.9.7". Upgrading the library to the latest version does not work either.


-
FFMPEG output the wrong color when using it with BackColour / OutlineColour
5 mai 2023, par YoussefI have tried both OutlineColour, BackColour and BoxColour none of this worked well with colors, only black/white in both opaque and with transparency works. I am not sure how to fix this code, It's been 3 days searching for a solution


my color is E63946 clearly it's red




When making the necessary adjustments with the code below


const bgColorHex = '#E63946';
 const bgColorFFmpeg = bgColorHex.replace('#', '&H00');
 console.log(bgColorFFmpeg);



I use with the code below


const ffmpeg = spawn("ffmpeg", [
 "-i",
 "test.mp4",
 "-vf",
 `subtitles=${subtitlePath}:force_style='BorderStyle=3,Shadow=no,BackColour=${bgColorFFmpeg},OutlineColour=${bgColorFFmpeg}'`,
 "-c:a",
 "copy",
 "-progress", "pipe:1",
 outputPath,
 ]); 



This is the result I get




I tried other methods like with tinycolor, same issue


const bgColor = `&H${tinycolor(bgColorHex).toHex8().substr(2)}`;



Please help this is very confusing it should be easy to input a color into ffmpeg, text color on the other hand gave me no issue at all only this captions background is causing problems.


Let me know if you need more info


-
Image becomes transparent on downscaling with ffmpeg
11 août 2021, par deepakgupta191199This is the original image of 200x200




On downscaling the image to 100x100. There is a semi transparent shadow near the lines and some pixels are not completely opaque.




The command used for scaling :

ffmpeg -i test.png -vf scale=100x100 out.png


I have also tried scaling with this command :

ffmpeg -i test.png -vf scale=100x100 -sws_flags neighbor out.png


The shadows are gone but the top line has also vanished.




How do I fix this ?