
Recherche avancée
Autres articles (51)
-
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (8073)
-
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))
 };