
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (65)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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
Sur d’autres sites (11350)
-
Anomalie #2054 (Fermé) : Sauvegarde de la base en sqlite au lieu de mysql
4 juillet 2011, par cedric - -
Streaming a video to multiple end users with node.js and ffmpeg
9 juin 2023, par Nick KnappI'm designed an API endpoint with node.js and express which will accept a url from a different part of the application, convert it into a webm stream, and allow multiple different end users to receive the end result without too much backend processing.


I'd like to have the process running once and pipe the resulting stream to n endpoint calls without using temp files to hold it. So far, all of my attempts to store the output in a temporary object have failed.


What would be the best method of going about doing this ?


The following does not work, but is an example of what I've been trying to do.


import express from 'express';
import cors from 'cors';
import FfmpegCommand from 'fluent-ffmpeg';
import stream from 'stream';

const app = express();
const port = 3002;
const activeStreams = {};

app.use(cors());

app.get('/video/stream', (req, res) => {

 var streamUrl = new URL(req.query.streamurl);
 var protocol = streamUrl.protocol;

 if (activeStreams[streamUrl] === undefined) {
 activeStreams[streamUrl] = new stream.Duplex();
 if (['udp:', 'rtmp:', 'rtsp:'].includes(protocol)) {
 FfmpegCommand(path)
 .toFormat('webm')
 .on('error', function(err, stdout, stderr) {
 console.log('an error occurred', err.message);
 console.log("stdout:\n" + stdout);
 console.log("stderr:\n" + stderr);
 })
 .pipe(activeStreams[streamUrl], {end: true});
 }
 activeStreams[streamUrl].read().pipe(res);
 } else {
 activeStreams[streamUrl].read().pipe(res); 
 }
});



-
Revision ce819d74dc : Merge "Account for chroma component costs in RTC mode decision"
4 février 2015, par Jingning HanMerge "Account for chroma component costs in RTC mode decision"