
Recherche avancée
Autres articles (16)
-
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...) -
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 (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)
Sur d’autres sites (1549)
-
What should be the timing to capture screenshots as images and then convert the images to video file using ffmpeg ?
22 juillet 2016, par TheLost LostitI have a timer tick event where i take screenshots every 10ms
int count = 0;
private void timer1_Tick(object sender, EventArgs e)
{
Bitmap bmp = new Bitmap(sc.CaptureScreen());
bmp.Save(@"D:\SavedScreenshots\screenshot" + count + ".bmp", System.Drawing.Imaging.ImageFormat.Bmp);
bmp.Dispose();
count ++;
}Then i i’m using ffmpeg command line in command prompt window to create a video file from all the images :
ffmpeg -framerate 2 -i screenshot%d.bmp -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
Every bitmap file on hard disk it’s size is 7.91 MB
The details : 1920x 1080 and Bit depth 32The problem is when making the ffmpeg command line with -framerate 2 then when i play the video file in windows media player it’s very very slow.
When i saet the framerate to 10 then it’s too fast.
When i set the framerate to 4 i’m getting error in yellow say too large.But maybe the problem is that i’m taking a screenshot every 10ms ? Maybe i should take a screenshot every 1000ms ? And then what should i change in the ffmpeg command line ?
I want it to be like a regular video file speed. Not too fast and not too slow.
What i’m capturing in the screenshot is my desktop screen and later i want to upload and show it to some support help in a forum. -
Capturing FFmpeg Progress with Progress Bar in C#
24 juillet 2023, par sadra hoseiniI'm working on a C# application where I'm using FFmpeg to encode multiple video files. I want to display a progress bar to show the encoding progress for each video. I have tried using the Process.OutputDataReceived event to capture FFmpeg's progress updates, but it doesn't seem to work reliably.


Here's the relevant part of my code :


// Code snippet
int i = 1;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
 progressBar1.Maximum = openFileDialog1.FileNames.Length;

 foreach (string file in openFileDialog1.FileNames)
 {
 // Output file naming code here

 Process process = new Process();
 process.StartInfo.FileName = "ffmpeg.exe";
 process.StartInfo.CreateNoWindow = true;
 process.StartInfo.RedirectStandardError = true;
 process.StartInfo.UseShellExecute = false;

 process.OutputDataReceived += (sender, e) =>
 {
 // Progress parsing code here
 // This part doesn't seem to receive any data
 };

 process.Start();
 process.BeginOutputReadLine();
 process.WaitForExit();

 i++;
 }
}



However, the OutputDataReceived event doesn't seem to receive any data from FFmpeg's stderr, and the progress bar doesn't update as expected.


Is there a better way to capture FFmpeg's progress updates for encoding videos and use them to update the progress bar in C# ? How can I achieve this ?


Any help or suggestions would be greatly appreciated. Thank you !


-
Discord bot : Fix ‘FFMPEG not found’
14 mars, par Travis SovaI want to make my Discord bot join voice chat, but every time I run the command, I get an error message in the log(cmd) saying,
FFMPEG not found.


Picture of the error :




This is the code :


client.on('message', message => {
 // Voice only works in guilds, if the message does not come from a guild,
 // we ignore it
 if (!message.guild) return;

 if (message.content === '/join') {
 // Only try to join the sender's voice channel if they are in one themselves
 if (message.member.voiceChannel) {
 message.member.voiceChannel.join()
 .then(connection => { // Connection is an instance of VoiceConnection
 message.reply('I have successfully connected to the channel!');
 })
 .catch(console.log);
 } else {
 message.reply('You need to join a voice channel first!');
 }
 }
});



this is my package.json file :


{
 "name": "x",
 "version": "1.0.0",
 "main": "index.js",
 "scripts": {
 "start": "node index.js",
 "dev": "nodemon index.js"
 },
 "dependencies": {
 "discord.js": "^11.4.2",
 "dotenv": "^6.2.0",
 "ffmpeg": "0.0.4",
 "opusscript": "0.0.6"
 },
 "devDependencies": {
 "nodemon": "^1.18.9"
 }
}