
Recherche avancée
Autres articles (36)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
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 (...) -
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 : (...)
Sur d’autres sites (6579)
-
ffmpeg : How to save SSIM and PSNR to a file ?
7 mars 2021, par idooI'm a ffmpeg newbie.
I would like my script (on Windows) to output the average PSNR and average SSIM values to a file.
(but not the values for every frame)
I can output them to the standard output but not to a file.


I use this line :


ffmpeg -i ref.avi -i compressed.avi -lavfi "ssim;[0:v][1:v]psnr" -f null -



I understand I have to change something here : "-f null -" , but I cannot make it work.


-
Invalid data when processing input ogg in ffmpeg
23 mars 2023, par Albert Gomáriz SanchaI am getting an ogg file and I am trying to convert it to a mopo3 file using fluent-ffmpef node library. When trying to convert it, then this error is shown :** An error occurred : Error : ffmpeg exited with code 1 : pipe:0 : Invalid data found when processing input**.


Can someone help me please ?


This is my code :


const input = createReadStream(getPath("temp.ogg"));
 // console.log(input);
 // ffmpeg.setFfmpegPath(ffmpegPath);

 // const output = createWriteStream(getPath("temp.mp3"));
 // spawn(`ffmpeg -i ${getPath("temp.ogg")} ${getPath("temp.mp3")}`);
 ffmpeg(input)
 .setFfmpegPath(ffmpegPath)
 .toFormat("wav")
 .on("data", (data) => {})
 .on("error", (err) => {
 console.log("An error occurred: " + err);
 })
 .on("progress", (progress) => {
 // console.log(JSON.stringify(progress));
 console.log("Processing: " + progress.targetSize + " KB converted");
 })
 .on("end", () => {
 console.log("Processing finished !");
 })
 .save(getPath("temp.mp3")); //path where you want to save your file



-
How to decode the video stream of an mp4 file and save the decoded images to local directory in NodeJs
8 août 2018, par Rohit VermaHow to decode the video stream of an mp4 file and save the decoded images to local directory in NodeJs. I have tried ffmpeg and fluent ffmpeg but didn’t get clear idea how to use,As I was getting error while using fluent ffmpeg
Code snippet :
const ffmpeg = require('fluent-ffmpeg')
const probe = require('ffmpeg-probe')
const info = await probe('input.mp4')and in case of ffmpeg I have tried this,
var ffmpeg = require('ffmpeg');
try {
var process = new ffmpeg("VID_20160805_121411556.mp4");
process.then(function (video) {
// Callback mode
video.fnExtractFrameToJPG('C:/Users/PcName/Documents', {
frame_rate : 1,
number : 5,
file_name : 'my_frame_%t_%s'
}, function (error, files) {
if (!error)
console.log('Frames: ' + files);
});
}, function (err) {
console.log('Error: ' + err);
});
} catch (e) {
console.log(e.code);
console.log(e.msg);
}Nothing is working and I didn’t get any clue how to do so.