Recherche avancée

Médias (0)

Mot : - Tags -/navigation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (74)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (9722)

  • How to broadcast live audio in node js (1 to many)

    19 juin 2020, par Yousef Alaqra

    I'm trying stream live audio to a wide range of clients in a web browser.

    



    My current solution :

    



    Dotnet core 3.1 console application

    



      

    1. receive the audio data over UDP
    2. 


    3. trimming the first 28 bytes of each received packet
    4. 


    5. and send the processed packet over UDP.
    6. 


    



    Node JS

    



      

    1. execute a Ffmepg as a child process to receive audio data packets
over UDP from the console app, and encode each packet to audio WAV
format
    2. 


    3. Pipe out the result of the child process into a GET HTTP endpoint response
    4. 


    



    Browser

    



      

    1. HTML audio element with source value equals to the node js GET
endpoint
    2. 


    



    Problem :

    



    The solution is giving a good result, but only for one device(one to one), which is not what I want to achieve.

    



    I've tried many solutions to make it applicable to a wide range of devices, such as using working threads and forking a child process, but none of them changes the result.

    



    I believe that I've to make some changes to the node js implementation, so here I'll share it with you, hoping to get a clue to solve the problem.

    



    var express = require("express");
var app = express();
var children = require("child_process");

var port = 5001;
var host = "192.168.1.230";

app.listen(port, host, () => {
  console.log("Server running at http://" + host + ":" + port + "/");
});

app.get('/stream', (req, res) => {
  const ffmpegCommand = "ffmpeg";
  var ffmpegOptions =
    "-f s16le -ar 48000 -ac 2 -i udp://192.168.1.230:65535 -f wav -";

  var ffm = children.spawn(ffmpegCommand, ffmpegOptions.split(" "));

  res.writeHead(200, { "Content-Type": "audio/wav; codecs=PCM" });
  ffm.stdout.pipe(res);
});


    



    If someone interested to see the full implementation, please let me know.

    


  • How do I broadcast live audio in Node.js ?

    20 juin 2020, par Yousef Alaqra

    I'm trying stream live audio to a wide range of clients in a web browser.

    



    My current solution :

    



    Dotnet core 3.1 console application

    



      

    1. receive the audio data over UDP
    2. 


    3. trimming the first 28 bytes of each received packet
    4. 


    5. and send the processed packet over UDP.
    6. 


    



    Node JS

    



      

    1. execute a Ffmepg as a child process to receive audio data packets
over UDP from the console app, and encode each packet to audio WAV
format
    2. 


    3. Pipe out the result of the child process into a GET HTTP endpoint response
    4. 


    



    Browser

    



      

    1. HTML audio element with source value equals to the node js GET
endpoint
    2. 


    



    Problem :

    



    The solution is giving a good result, but only for one device(one to one), which is not what I want to achieve.

    



    I've tried many solutions to make it applicable to a wide range of devices, such as using working threads and forking a child process, but none of them changes the result.

    



    I believe that I've to make some changes to the node js implementation, so here I'll share it with you, hoping to get a clue to solve the problem.

    



    var express = require("express");
var app = express();
var children = require("child_process");

var port = 5001;
var host = "192.168.1.230";

app.listen(port, host, () => {
  console.log("Server running at http://" + host + ":" + port + "/");
});

app.get('/stream', (req, res) => {
  const ffmpegCommand = "ffmpeg";
  var ffmpegOptions =
    "-f s16le -ar 48000 -ac 2 -i udp://192.168.1.230:65535 -f wav -";

  var ffm = children.spawn(ffmpegCommand, ffmpegOptions.split(" "));

  res.writeHead(200, { "Content-Type": "audio/wav; codecs=PCM" });
  ffm.stdout.pipe(res);
});


    



    If someone interested to see the full implementation, please let me know.

    


  • Evolution #2269 : Prise en compte des variantes d’une langue

    8 septembre 2015, par Valéry -

    Notons au passage que ceci implique que #LANG donne un tag de langue complet incluant le subtag région

    Celui-ci est au passage exigé par le protocole OpenGraph :

    og:locale - The locale these tags are marked up in. Of the format language_TERRITORY. Default is en_US.