
Recherche avancée
Autres articles (71)
-
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 (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 (...)
Sur d’autres sites (9675)
-
Revision 49516 : Le constructeur de formulaire peut prendre des options en troisième ...
8 juillet 2011, par rastapopoulos@… — LogLe constructeur de formulaire peut prendre des options en troisième argument. La première option possible est la possibilité de modifier le nom des champs (modifier_nom=true). Avec une autre option (nom_unique=true) on peut vérifier que le nom fournit par l’utilisateur n’existe pas déjà dans le (...)
-
ffmpeg writing the output of the command to a text file doesn't work with C#
5 février 2021, par LifshitzI am using ffmpeg commands with C# processes. I used a command to change the audio of a video and it was working but I also wanted to write the output to a text file. The new command works from cmd but apparently, it does not work while using a C# process.
The command that does not work with the Process is :


ffmpeg -i videoPath -i audioPath -c:v copy -map 0:v:0 -map 1:a:0 -shortest newVideoPath > textFilePath 2>&1



And the working command is the same without the last part :


ffmpeg -i videoPath -i audioPath -c:v copy -map 0:v:0 -map 1:a:0 -shortest newVideoPath



Here is the C# code :


Process proc = new Process();
 proc.StartInfo.FileName = ffmpegPath;
 proc.StartInfo.RedirectStandardError = true;
 proc.StartInfo.RedirectStandardOutput = true;
 proc.StartInfo.UseShellExecute = false;
 proc.StartInfo.CreateNoWindow = true;
 proc.StartInfo.Arguments = "-i " + videoPath + " -i " + newAudioPath + " -c:v copy" + " -map" + " 0:v:0 " + "-map 1:a:0 " + "-shortest " + newVideoPath + " > " + @"F:\Videos\log.txt"+ " 2>&1";
 proc.EnableRaisingEvents = true;
 proc.Exited += UpdateVideoSource;
 proc.Start();



I checked the arguments over and over again, and looked for missing spaces but nothing worked.
What can be the problem ?


-
How to extract stream of images from video file using ffmpeg
13 décembre 2013, par user3032143I want to extract stream of images from a video file using ffmpeg.
I know I can extract them straight to the hard drive using these arguments :
-i - -qscale 1 h :\out\img-%05d.jpg
But i would like to extract directly to a stream.
This is my code so far :
private void ExtractImagesFromVideo(byte[] data,string _args)
{
try
{
serverBuild = new Process();
serverBuild.StartInfo.WorkingDirectory = Environment.CurrentDirectory;
serverBuild.StartInfo.Arguments = _args;
serverBuild.StartInfo.FileName = Environment.CurrentDirectory + @"\ffmpeg.exe";
serverBuild.StartInfo.UseShellExecute = false;
serverBuild.StartInfo.RedirectStandardOutput = true;
serverBuild.StartInfo.RedirectStandardError = true;
serverBuild.StartInfo.RedirectStandardInput = true;
serverBuild.StartInfo.CreateNoWindow = true;
serverBuild.StartInfo.LoadUserProfile = false;
serverBuild.EnableRaisingEvents = true;
serverBuild.Start();
using (BinaryWriter bw = new BinaryWriter(serverBuild.StandardInput.BaseStream))
{
bw.Write(data);
}
mStandardOutput = serverBuild.StandardOutput.BaseStream;
mStandardOutput.BeginRead(mReadBuffer, 0, mReadBuffer.Length, StandardOutputReadCallback, null);
serverBuild.WaitForExit();
byte[] _data = mStandardOutputMs.ToArray();
mStandardOutput.Close();
}
catch (Exception _ex)
{
}
finally
{
serverBuild.Dispose();
}
}and I call like like this :
string _argsOut = @"-i pipe:0 -qscale 1 -f mjpeg pipe:1 ";
ExtractImagesFromVideo(data, _argsOut);and it hangs on this line :
bw.Write(data);
thanks