Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (69)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette 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 (7451)

  • 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.

    


  • Stream constantly-changing Jimp image to rtsp server

    3 avril 2022, par codingmaster398

    I have an image in Jimp that is constantly changing, and need to stream it to a rtsp server.

    


    I know how to convert the Jimp image to an image buffer, but don't know how to stream it. Maybe using FFmpeg ? Please, let me know.

    


  • Record F4V in Flash Media Server

    29 juin 2014, par M.Yazdian

    I have problem with record live event in F4v through Flash Media Server
    I publish my live event on FMS though FFMPEG
    FFMPEG Code :

    ffmpeg -f dshow -i video="A4TECH USB2.0 PC Camera" -vcodec libx264 -b:v 32k -acodec libmp3lame -b:a 64k -ar 44100  -f flv rtmp://12.11.1.3/livepkgr/liveevent?adbe-live-event=liveevent

    FMS Code to record F4V file :

    var vodFile = Stream.get("mp4:" + StreamName.name + ".f4v");
    vodFile.record();
    vodFile.play(streamName,-1,-1);

    So when I use -vcodec libx264 in ffmpeg FMS cam’t to create F4V file, But when I erase -vcodec libx264 from FFMPEG FMS create F4V file currently.

    Please advise me to solve this problem.