
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (99)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Participer à sa traduction
10 avril 2011Vous 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 (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (14020)
-
cmdutils : replace usages of "#ifdef __MINGW32__" with "#ifdef _WIN32" because MSVC...
17 mai 2014, par John Peebles -
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 :""
-
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.