
Recherche avancée
Autres articles (34)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne 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 (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (4998)
-
FFMPEG reads fps of input h264 file wrong, resulting in wrong duration of output file
20 janvier 2015, par JolJolsI am trying to convert an .h264 file created with python from an incoming stream to xvid format with ffmpeg.
The file is 30min long and 12fps. However, the converted file automatically creates a file that is 25fps and thus 14.4min long. If I set fps like
ffmpeg -i test.h264 -r 12 test.avi
it creates a video of 14.4min long with a fps of 12.How can I set it to see the incoming video as 12fps ? I tried recording immediately in xvid coded in python using FOURCC but on mac OS X the only codec that seems to work is mp4v. I also tried using MP4Box, which creates the right video duration and fps but for which I cannot set it to the xvid coded (which I need).
-
Handling "NullReferenceException" when executing "ffmpeg.exe" process in C# [duplicate]
1er juillet 2023, par FrostDreamI'm trying to execute the "ffmpeg.exe" process in my C# application to process media files. However, I'm encountering a "NullReferenceException" when running the code. I've tried various approaches, including using a try-catch block, but the exception still persists. Here's the relevant code snippet :


bool isValidMedia = true;

try
{
 Process process = new Process();
 process.StartInfo.FileName = "ffmpeg.exe";
 process.StartInfo.Arguments = $"-i \"{file}\" -f null -";
 process.StartInfo.UseShellExecute = false;
 process.StartInfo.RedirectStandardOutput = true;
 process.StartInfo.CreateNoWindow = true;
 process.OutputDataReceived += (sender, e) =>
 {
 if (!string.IsNullOrEmpty(e.Data))
 {
 int startIndex = e.Data.IndexOf("samples=") + 8;
 button.Width = int.Parse(e.Data.Substring(startIndex, e.Data.IndexOf(" ") - startIndex)) / zoom * 100;
 }
 else
 {
 isValidMedia = false;
 }
 };

 process.Start();
 process.BeginOutputReadLine();
 process.WaitForExit();
}
catch
{
 isValidMedia = false;
}

if (!isValidMedia)
{
 MessageBox.Show("Not a valid media.");
 return;
}




I suspect that the issue may be related to the asynchronous execution of the event handler or the initialization of the ProcessStartInfo object. Can anyone please help me identify the cause of the "NullReferenceException" and provide guidance on how to resolve it ? Thank you in advance for your assistance.


-
Revision 36eeb1799d : Merge "Revert "Revert 3 patches from Hangyu to get Chrome to build :""
25 juin 2014, par hkuangMerge "Revert "Revert 3 patches from Hangyu to get Chrome to build :""