
Recherche avancée
Autres articles (74)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (6409)
-
Having sound issues while streaming to youtube
23 septembre 2024, par Hen SimkinI 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 CaltropI'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 genericI/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 ivFizI'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))
 };