
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (44)
-
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 -
Déploiements possibles
31 janvier 2010, parDeux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
Version mono serveur
La version mono serveur consiste à n’utiliser qu’une (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (12706)
-
Merge remote-tracking branch ’qatar/master’
27 décembre 2013, par Michael Niedermayer -
Broadcasting using Python [on hold]
8 octobre 2018, par Aayush TyagiI want to broadcast video processed using opencv after performing object detection so that multiple users can simultaneously see video on their browser.
Can you please suggest how can I push frames to server and which server I can use for broadcasting purpose ?Also can you please point to some reference material or module that will help.
(I am planning to use adaptive bit-rate streaming )
PS :(I am using python on Ubuntu system and I am new in this domain)
-
How do I access ffmpeg stdout as a buffer stream in node js
15 octobre 2022, par RadespyI'm trying to access the output of an ffmpeg command (run with
spawn
in nodeJS) so that I can store the processed video in a buffer.

I've tried the following code :


(videoBuffer = [Unit8Array])

let arr = [];

let ffmpegSpawn = spawn(ffmpegPath, [
 "-i",
 "-",
 "-filter:v",
 "crop=500:500:50:50",
 "-preset",
 "fast",
 "-f",
 "mp4",
 "-",
 ]);

 ffmpegSpawn.stdin.write(videoBuffer);
 ffmpegSpawn.stdin.end();

 ffmpegSpawn.stdout.on("data", (chunk) => {
 console.log(chunk.toString());
 arr.push(chunk)
 });

 ffmpegSpawn.stderr.on("error", (err) => {
 console.log(err);
 });

 ffmpegSpawn.stdout.on("close", () => {
 console.log(arr)
 });




No error is being produced but I can't see any output in the console other than an empty array.


The ffmpeg command is successfully receiving the input via
child_process.stdin
and the[ "-i", "-" ...]
args because I'm able to successfully create a test .mp4 file by passing the following args into ffmpeg (using spawn) :

[
 "-i",
 "-",
 "-filter:v",
 "crop=500:500:50:50",
 "-preset",
 "fast",
 "./desktop/testVideo.mp4"
 ]



I've tried accessing the child_process directly with :


ffmpegSpawn.on("data", (chunk) => { arr.push(chunk); console.log(chunk.toString()})



but nothing is seen on the console.


Q : How do I access
ffmpegSpawn.stdout
? As no error is being produced, I am assuming that the arguments to ffmpeg are valid.

Why is the array empty ?


Any help would be much appreciated.