Recherche avancée

Médias (91)

Autres articles (40)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (6300)

  • Revision 101399 : Dans le constructeur de la vérification "fichiers" utiliser un ...

    11 juin 2018, par maieul@… — Log

    Dans le constructeur de la vérification "fichiers"
    utiliser un afficher_si pour la liste des types mime
    histoire de ne la montrer que si on choisit "Un type mime spécifique"
    dans le bouton radio du choix de la vérification de type

  • Revision 101399 : Dans le constructeur de la vérification "fichiers" utiliser un ...

    11 juin 2018, par maieul@… — Log

    Dans le constructeur de la vérification "fichiers"
    utiliser un afficher_si pour la liste des types mime
    histoire de ne la montrer que si on choisit "Un type mime spécifique"
    dans le bouton radio du choix de la vérification de type

  • Streaming mp3 using node http to Icecast server gives no output

    6 décembre 2024, par Roboroads

    I'm trying to stream a custom mp3 datastream to Icecast2. Icecast recognises there's a mountpoint, however the streamed data won't play and I have no idea why.

    


    import ffmpeg from 'fluent-ffmpeg';
import { request } from 'node:http';

const req = request(
  {
    host: 'localhost',
    port: 8000,
    path: '/radio',
    method: 'PUT',
    auth: 'source:password',
    headers: {
      'Content-Type': 'audio/mpeg',
      Expect: '100-continue',
      'Ice-Public': 0,
      'Ice-Name': 'Testing Stream!',
      'Ice-Description': 'Testing Stream!',
      'Ice-Genre': 'Various',
      'Icy-MetaData': 1
      //'Icy-MetaInt': metaInt
    }
  },
  (res) => {
    console.log('Server responded with status code:', res.statusCode);
    res.on('data', (chunk) => {
      console.log('Response chunk:', chunk.toString());
    });
  }
);

req.on('error', (err) => {
  console.error('Error streaming to Icecast server:', err);
});

req.on('close', () => {
  console.error('Icecast server closed connection');
  process.exit(1);
});

req.on('continue', () => {
  console.log('Continue event received');
  ffmpeg({ source: 'test.mp3' })
    .native()
    .outputOption(['-map 0:a'])
    .audioBitrate(320)
    .audioCodec('libmp3lame')
    .audioFrequency(44100)
    .audioChannels(2)
    .format('mp3')
    .on('progress', (progress) => {
      console.log('Is open:' + req.socket.writable + ' - ' + progress.timemark);
    })
    .on('start', function (commandLine) {
      console.log('Spawned Ffmpeg with command: ' + commandLine);
    })
    .on('end', () => {
      console.log('Processing finished !');
      req.end();
    })
    .on('error', (err) => {
      console.error('FFmpeg error:', err);
    })
    .pipe(req);
});


    


    Note that when I try to do this with ffmpeg using the icecast protocol, it works without issues : ffmpeg -re -i test.mp3 -b:a 320k -acodec libmp3lame -ar 44100 -ac 2 -map 0:a -f mp3 icecast://source:password@localhost:8000/radio. It looks like something is not right with request.