
Recherche avancée
Autres articles (55)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)
Sur d’autres sites (7007)
-
FFMPEG is not working in AWS lambda function
13 novembre 2022, par ArunI am trying to convert a video file into an audio file using AWS lambda function whenever a file is uploaded into an S3 bucket. So I am using FFMPEG for converting a video file into audio. But I keep getting this error while converting a video file. I have seen similar questions but none of the solutions is not working for me. So If anyone knows please share your solutions.



Error message



TypeError: Cannot create property 'stack' on string 
'Could not find ffmpeg executable, tried "/var/task/node_modules/@ffmpeg-installer/linux-x64/ffmpeg" and "/var/task/node_modules/@ffmpeg-installer/ffmpeg/node_modules/@ffmpeg-installer/linux-x64/ffmpeg"'




Code



const
 ffmpegPath = require("@ffmpeg-installer/ffmpeg").path,
 ffmpeg = require("fluent-ffmpeg");

 // set ffmpeg package path
 ffmpeg.setFfmpegPath(ffmpegPath);
 function convert(input, output, callback) {
 ffmpeg(input)
 .output(output)
 .on('end', function() { 
 console.log('conversion ended');
 callback(null);
 }).on('error', function(err){
 console.log('error: ', err.code, err.msg);
 callback(err);
 }).run();
 }

 exports.handler = function (event, context, callback) {
 const key = decodeURIComponent(event.Records[0].s3.object.key.replace(/\+/g, ' '));
 console.log("key ", key);
 console.log("event ", event.Records[0].s3);
 convert(key, `/tmp/${key}.mp3`, function(err){
 if(!err) {
 console.log('conversion complete');
 } else {
 console.log('Error');
 }
 });
 }


 const
 ffmpegPath = require("@ffmpeg-installer/ffmpeg").path,
 ffmpeg = require("fluent-ffmpeg");

 // set ffmpeg package path
 ffmpeg.setFfmpegPath(ffmpegPath);
 function convert(input, output, callback) {
 ffmpeg(input)
 .output(output)
 .on('end', function() { 
 console.log('conversion ended');
 callback(null);
 }).on('error', function(err){
 console.log('error: ', err.code, err.msg);
 callback(err);
 }).run();
 }

 exports.handler = function (event, context, callback) {
 const key = decodeURIComponent(event.Records[0].s3.object.key.replace(/\+/g, ' '));
 console.log("key ", key);
 console.log("event ", event.Records[0].s3);
 convert(key, `/tmp/${key}.mp3`, function(err){
 if(!err) {
 console.log('conversion complete');
 } else {
 console.log('Error');
 }
 });
 }




package.json



"dependencies": {
 "@ffmpeg-installer/ffmpeg": "^1.0.17",
 "fluent-ffmpeg": "^2.1.2",
 "fs": "0.0.1-security"
 }



-
HTML5 live streaming with alpha channel
5 mars 2021, par air5We are trying to live stream a video file with alpha channel. Adaptive streaming would be great, but it's not a must. Streaming is pretty new territory for us.


We found out that WebM (VP9) seems to be the only format in the web that supports alpha channel. We tried using the nginx-rtmp-module as streaming server (MPEG-DASH) and broadcast the file with ffmpeg. But the alpha channel was lost. Probably because RTMP required us to broadcast the video as a FLV which doesn't support alpha.


Is anyone having experience in streaming rgba videos on the web ? Getting to know compatible commercial solutions would be interesting tee. My next approaches would be trying to use Icecast. There is not much information online but this article where streaming a webm directly seems to be possible.


-
FFmpeg merge image with video looses quality
19 août 2016, par John Doe 2I am merging an image with a video, my command looks like this :
ffmpeg -i background.mpg -i Menu.png -filter_complex "[0:v][1:v] overlay=25:25:enable='between(t,0,30)'" -pix_fmt yuv420p -c:a copy merge1.mpg
That works, but something strange happens.
If I run that merged video it continuously looses quality at each second, at the first few seconds the quality is ok but later on it looses quality(the resolution becomes worse).
Any ideas of how this is happening and maybe solutions ?
Edit
I get this strange message in my console :
[mpeg @04ee9960] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification Like
DVD, VCD or others, make sure you set the correct buffer size