
Recherche avancée
Autres articles (33)
-
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 (...) -
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 (...) -
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.
Sur d’autres sites (5287)
-
Pipe series of images from java application to ffmpeg subprocess
20 juin 2014, par MarcoI am looking for a way to stream series of images (jpegs) from java application into FFMpeg STDIN pipe.
FFMpeg should process these images and create a video file as an output.FFMpeg is executed as sub process of java application with the following command "ffmpeg.exe -i pipe:0 out.avi"
When i run "ffmpeg -i input.jpg out.avi" command in the console, i get the "out.avi" file as expected
But when i use the following tester code in my java application, i got an error.
Code in Java application :
File ffmpeg_output_msg = new File("ffmpeg_output_msg.txt");
ProcessBuilder pb = new ProcessBuilder(
"ffmpeg.exe","-i","pipe:0","out.avi");
pb.redirectErrorStream(true);
pb.redirectOutput(ffmpeg_output_msg);
pb.redirectInput(ProcessBuilder.Redirect.PIPE);
Process p = pb.start();
OutputStream ffmpegInput = p.getOutputStream();
byte[] image;
File file = new File("input.jpg");
image = new byte[(int)file.length()];
FileInputStream fileInputStream = new FileInputStream(file);
fileInputStream.read(image);
ImageInputStream iis = ImageIO.createImageInputStream(
new ByteArrayInputStream(image));
BufferedImage img = ImageIO.read(iis);
ImageIO.write(img, "JPEG", ffmpegInput);FFMpeg output :
ffmpeg version N-59664-g94cf4f8 Copyright (c) 2000-2014 the FFmpeg developers built on Jan 7 2014 22:07:02 with gcc 4.8.2 (GCC)
configuration : —enable-gpl —enable-version3 —disable-w32threads —enable-avisynth —enable-bzlib —enable-fontconfig —enable-frei0r —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libcaca —enable-libfreetype —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-librtmp —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvo-aacenc —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libx264 —enable-libxavs —enable-libxvid —enable-zliblibavutil 52. 62.100 / 52. 62.100
libavcodec 55. 47.100 / 55. 47.100
libavformat 55. 22.102 / 55. 22.102
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 0.103 / 4. 0.103
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100pipe: : Invalid data found when processing input
Any ideas how to make it work ?
Thank you very much for your time.
-
Ffmpeg gdigrab records black window when capturing graphics-intensive flight simulator
23 mars 2021, par iterI am trying to capture video from XPlane, a popular flight simulator. I'm running on Windows.



Normally, I can capture individual windows using
gdigrab
, but when I use it on an XPlane window like so...


ffmpeg -f gdigrab -framerate 30 -i "X-System" -b:v 300K capture.mp4




...I get a video file that's the right dimensions but is all black. I imagine this may have something to do with how XPlane talks directly to the GPU. I should add that if I capture the entire desktop like so...



ffmpeg -f gdigrab -framerate 30 -i desktop -b:v 300K capture.mp4




...I get everything including the simulator window, but naturally with unrelated windows in the capture, including windows sitting on top of the simulator window.



Is there a way for
gdigrab
to capture video this GPU-intensive window alone ? Is there a different tool I can use ?

-
ffmpeg's strange behaviour-Conversion started when I close my application
16 décembre 2013, par m.qayyumI'm using ffmpeg in my application to rotate video, but problem is that when I start conversion ffmpeg only shows it's version information and not start the actual conversion, but when I close my application ffmpeg process remains in Running Processes in Taskbar and start to convert the file.
ffmpeg output
Here is my code, please tell me where i'm doing it wrong.
void ConvertVideo(object[] arr) {
string Argument = (string)arr[0];
string OutputFolder = (string)arr[1];
string ConvertedFile = (string)arr[2];
UpdateStatus("Converting! Please wait...");
ffmpeg = new Process();
ffmpeg.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
ffmpeg.StartInfo.FileName = "ffmpeg.exe";
ffmpeg.StartInfo.UseShellExecute = false;
ffmpeg.StartInfo.RedirectStandardError = true;
ffmpeg.StartInfo.RedirectStandardOutput = true;
ffmpeg.StartInfo.CreateNoWindow = true;
ffmpeg.StartInfo.Arguments = Argument;
ffmpeg.Start();
myStreamReader = ffmpeg.StandardError;
outputLine = myStreamReader.ReadLine();
UpdateRTB(outputLine);//Write line to ritchtextbox
do
{
if (outputLine.Contains("muxing overhead"))
{
UpdateStatus("Muxing video");
}
if (outputLine.StartsWith("frame"))
{
UpdateStatus("Converting video");
}
}
while (!(ffmpeg.HasExited & (string.Compare(outputLine, "") == 0 | outputLine == null)));
ffmpeg.Close();
myStreamReader.Close();
UpdateStatus("Convertion completed successfully");
}