Recherche avancée

Médias (0)

Mot : - Tags -/flash

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

Autres articles (34)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (7149)

  • 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))
 };


    


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

    


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