
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 (107)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (12545)
-
How to have multiple websocket RTSP streams ?
6 octobre 2020, par kinxAfter spending some time reading various open-source projects on how to develop RTSP and WebSocket streams, I've almost built a simple project that allows me to display multiple streams on the page.


I have a working example of just one stream working with the code below. A single URL in an array is sent to the client via WebSocket and with JSMPeg, it displays it with some success.


However, I'm not sure how to build this where I have multiple sockets with an RTSP stream in each one and how to give each socket url it's own id. The idea is to encrypt the URL and when the client requests the list of streams, send back that as a socket id, and with JSMPeg, request that data.


Server :


class Stream extends EventEmitter {
 constructor() {
 super();
 this.urls = ["rtsp://someIPAddress:554/1"];
 this.urls.map((url) => {
 this.start(url);
 });
 }
 start(url) {
 this.startStream(url);
 }
 setOptions(url) {
 const options = {
 "-rtsp_transport": "tcp",
 "-i": url,
 "-f": "mpegts",
 "-codec:v": "mpeg1video",
 "-codec:a": "mp2",
 "-stats": "",
 "-b:v": "1500k",
 "-ar": "44100",
 "-r": 30,
 };
 let params = [];
 for (let key in options) {
 params.push(key);
 if (String(options[key]) !== "") {
 params.push(String(options[key]));
 }
 }
 params.push("-");
 return params;
 }
 startStream(url) {
 const wss = new WebSocket.Server({ port: 8080 });
 this.child = child_process.spawn("ffmpeg", this.setOptions(url));
 this.child.stdout.on("data", (data) => {
 wss.clients.forEach((client) => {
 client.send(data);
 });
 return this.emit("data", data);
 });
 }
}

const s = new Stream();
s.on("data", (data) => {
 console.log(data);
});



In the constructor, there's an array of URLs, while I only have one here, i'd like to add multiple. I create a websocket and send that back. What I'd like to do is encrypt that URL with
Crypto.createHash('md5').update(url).digest('hex')
to give it it's own ID and create a websocket based on that id, send the data to that websocket and send that with a list of other id's to the client.

client :


<canvas style="width: 100%"></canvas>
 <code class="echappe-js"><script type="text/javascript">&#xA; var player = new JSMpeg.Player("ws://localhost:8080", {&#xA; loop: true,&#xA; autoplay: true,&#xA; canvas: document.getElementById("video"),&#xA; });&#xA; </script>



What I'd like to do here is request from /api/streams and get back an array of streams/socket id's and request them from the array.


But how do I open up multiple sockets with multiple URLs ?


-
How to concatenate and output various video bitrates and a standalone audio file ?
5 octobre 2018, par Sasidharan SHow to concatenate and output various video bitrates and a standalone audio file in
ffmpeg
?My requirement is :
- I have 4 input files.
- Need to stitch all 4 files into single segment.
- Need output with four different video bit rates : 500k, 800k 1000k 1500k
- Along with that I need to extract only audio from stitched file.
So my output will be 4 different video bitrate + 1 audio only file.
-
Anomalie #3523 : Gestion des plugins avec spip 3.0.20
5 août 2015, par Gilles VINCENTen ajoutant la directive
opcache.validate_timestamps=0
à ma config php, comme conseillé dans http://wiki.mikejung.biz/PHP_OPcache pour un serveur en production, la page de gestion des plugins refonctionne à nouveau correctement. De plus, la valeur
opcache.revalidate_freq=60
(valeur par défaut fournie lors de l’install) est vraiment longue.
Si je commente cette ligne dans le fichier de config, le phpinfo() indique une valeur plus raisonnable de 2 seulement.
Je pense que le chargement méga long venait de cette constante.La différence de comportement avec la config "pour développement" entre une 3.0.19 et une 3.0.20 reste encore surprenante.
Si j’ai le temps, je creuserai dans une semaine à mon retour de vacance, car tout le monde ne peut as jouer avec ces paramètres du serveur... :/