
Recherche avancée
Autres articles (90)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (6706)
-
Matomo maker InnoCraft named 2023 Hi-Tech Awards finalist
20 avril 2023, par Erin — Press Releases -
How to "stream" images to ffmpeg to construct a video in .NET 6
13 septembre 2021, par alkaselI'm using FFMPEG command line tool to create a video. As of now I retrive images from memory, but I'd like to avoid writing them to memory in first place and feed FFMPEG directly from memory.


I tried accord-framework.net and it works very well, but now I've switched to .NET 6 and it is not supported (the functionality I used is based on AForge.Video.FFMPEG, an archived project not supporting recent frameworks).


Now as I understand it is possible to have FFMPEG to work on streams instead of images saved on disk. In this post there is a very nice example of doing it in Python.


However I don't know how to do this on .NET 6 using System.Diagnostics.Process : From this post I undestand that I could have FFMPEG take images from standard input using the syntax


-i -



The problem is that I cannot write on standard input before the System.IO.Process (cmd.exe ... \C ffmpeg.exe .... ) has started (I get System.InvalidOperationException : "StandardIn has not been redirected"). However, as soon as such process start, since it find standard input empty, it ends immediately, so I cannot make it in time to fill standard input.


My code looks like this :


MemoryStream memStream = new MemoryStream();

 // Data acquisition
 [...]
 bitmap.Save(memStream, System.Drawing.Imaging.ImageFormat.Bmp);
 [...]

 string ffmpegArgument = "/C ffmpeg.exe -y -i - -c:v libx264 -crf 12 -pix_fmt yuv420p -c:a libvo_aacenc -b:a 128k [...];

 Process cmd = new Process();
 cmd.StartInfo.FileName = "cmd.exe";
 cmd.StartInfo.Arguments = ffmpegArgument;
 cmd.StartInfo.UseShellExecute = false;
 cmd.StartInfo.RedirectStandardInput = true;
 cmd.Start();
 cmd.StandardInput.Write(memStream);



Thanks to everyone who will answer.


-
How to detect if video file is pure static ?
20 août 2024, par spuderI have a collection of analog video recordings. About 10% of the files are entirely static. How could I programmatically look at all files and delete the files that contain mostly static ?



The following utilities have command line options to analyze video, however none have built in functionality to detect the absence of video content.



- 

-
ffmpeg
-
ffprobe
-
HandBrake









I've tried using ffmpeg to export still images and then use image magick to compare the difference between those images. Unfortunately, the difference between an image of static, and actual video content returns nearly the same difference percentage. (9% vs 7%)



ffmpeg -ss 00:30 -i PICT0050.AVI -vframes 1 -q:v 2 output1.jpg

magick compare -metric PSNR output1.jpg output2.jpg diff.jpg
9.2191

magick compare -metric PSNR output1.jpg output3.jpg diff.jpg
7.70127




Comparing sample 1 with sample 2 results in 9% difference

Comparing sample 1 with sample 3 results in 7% difference





Sample 2


Sample 3


Sample 4


Sample 5


Sample 6


Sample 7



-