Recherche avancée

Médias (0)

Mot : - Tags -/page unique

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

Autres articles (46)

  • 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" (...)

  • 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

Sur d’autres sites (5672)

  • Having sound issues while streaming to youtube

    23 septembre 2024, par Hen Simkin

    I created an app that uses rtmp and ffmppeg and youtube api for streaming to youtube,
when i stream and i go to youtube i face sound issues, the sound of the live sounds laggy and robotic.

    


    this is my configuration :

    


    const commonOutputOptions = [
        '-c:v libx264',
        '-c:a aac',
        '-preset veryfast',
        '-crf 30',
        '-b:v 3500k',
        '-b:a 128k',
        '-ac 2',
        '-ar 44100',
        '-g 48',
        '-keyint_min 48',
        '-pix_fmt yuv420p',
        '-x264-params keyint=48:min-keyint=48:scenecut=-1',
        '-flvflags no_duration_filesize',
        '-probesize 32',
        '-analyzeduration 0',
        '-f flv',
    ];


    


    i tried to change it to :

    


    const commonOutputOptions = [
    '-re',  // Enable real-time mode for streaming.
    '-c:v libx264',
    '-c:a aac',
    '-preset veryfast',
    '-crf 23',  // Improved quality setting.
    '-b:v 4500k',  // Adjusted bitrate for better quality.
    '-b:a 160k',  // Higher audio bitrate.
    '-ac 2',
    '-ar 48000',  // Updated sample rate.
    '-g 48',
    '-keyint_min 48',
    '-pix_fmt yuv420p',
    '-x264-params keyint=48:min-keyint=48:scenecut=-1',
    '-flvflags no_duration_filesize',
    '-f flv',
    '-movflags +faststart',  // Improved streaming compatibility.
];


    


    and to this :

    


    const commonOutputOptions = [
    '-c:v libx264',
    '-c:a aac',
    '-preset veryfast',
    '-crf 30',
    '-b:v 3500k',
    '-b:a 128k',
    '-ac 2',
    '-ar 48000', // Updated sampling rate
    '-g 48',
    '-keyint_min 48',
    '-pix_fmt yuv420p',
    '-x264-params keyint=48:min-keyint=48:scenecut=-1',
    '-flvflags no_duration_filesize',
    '-f flv',
];


    


    i tried differnt configurations and nothing makes the sound normal.

    


    when i stream to facebook and twitch the sound is perfect.

    


  • Streaming a programatically created video to youtube using node and ffmpeg

    23 septembre 2020, par Caltrop

    I've been trying to Livestream a programmatically created image to youtube using node. I've had very limited success using FFmpeg. While I have managed to create and save an image thanks to this insightful thread, I have yet to make the code work for streaming to an RTMP server.

    


    const cp = require('child_process'),
    destination = 'rtmp://a.rtmp.youtube.com/live2/[redacted]', //stream token redacted
    proc = cp.spawn('./ffmpeg/bin/ffmpeg.exe', [
        '-f', 'rawvideo',
        '-pix_fmt', 'rgb24',
        '-s', '426x240',
        '-i', '-', //allow us to insert a buffer through stdin
        '-f', 'flv',
        destination
    ]);

proc.stderr.pipe(process.stdout);

(function loop() {
    setTimeout(loop, 1000 / 30); //run loop at 30 fps
    const data = Array.from({length: 426 * 240 * 4}, () => ~~(Math.random() * 0xff)); //create array with random data
    proc.stdin.write(Buffer.from(data)); //convert array to buffer and send it to ffmpeg
})();


    


    When running this code no errors appear and everything appears to be working, however, YouTube reports that no data is being received. Does anybody know what is going wrong here ?

    


    Update : This is really counter-intuitive but adding a slash to the destination like this 'rtmp://a.rtmp.youtube.com/live2/[redacted]/' causes ffmpeg to throw a generic I/O error. This is really weird to me. Apologies if the answer to this is obvious, I'm really inexperienced with ffmpeg.

    


  • How To Make Discord Bot Play YouTube URL

    6 mars 2021, par ivFiz

    I'm new to this and I wonder if there's a way I can make my bot play specific YouTube URL
so when I type s1 the bot join the room and play that URL

    


     if (message.content == "s1") {
     if (!message.member.voice.channel) return message.reply("You have to be in a VoiceChannel");
     message.member.voice.channel.join().then(VoiceConnection => {
         VoiceConnection.play("https://youtu.be/~~~~").on("finish", () => 
         VoiceConnection.disconnect());
         message.reply("done");
     }).catch(e => console.log(e))
 };