
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (112)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (14998)
-
Is it possible to adjust position of gdigrab recording region during recording ?
30 novembre 2020, par adelimaI'm using ffmpeg for recording video from defined desktop region by starting ffmpeg.exe as process with arguments like so :


public static void StartRecording(Video v) {
 string outPath = Path.Combine(Application.StartupPath, "rec", $"{v.FileName}.mkv");
 v.FFMPEG = new Process {
 StartInfo = new ProcessStartInfo() {
 Arguments = $"-hide_banner -y -thread_queue_size 512 -f gdigrab -offset_x {v.Bounds.X} -offset_y {v.Bounds.Y} -video_size {v.Bounds.Width}x{v.Bounds.Height} -show_region 0 -i desktop -vf \"scale=trunc(iw/2)*2:trunc(ih/2)*2\" -c:v libx264 -preset ultrafast -crf 18 -pix_fmt yuv420p \"{outPath}\"",
 WindowStyle = ProcessWindowStyle.Hidden,
 CreateNoWindow = true,
 UseShellExecute = false,
 FileName = Path.Combine(Application.StartupPath, "bin", "ffmpeg.exe"),
 RedirectStandardOutput = true,
 RedirectStandardInput = true,
 RedirectStandardError = true,
 }
 };
 v.FFMPEG.Start();

 new Thread(() => {
 using(StreamReader sr = v.FFMPEG.StandardError) {
 while(!sr.EndOfStream) {
 Debug.WriteLine(sr.ReadLine());
 }
 }
 }).Start();
 }

 public static void StopRecording(Video v) {
 using(StreamWriter sw = v.FFMPEG.StandardInput) {
 sw.WriteLine("q\n");
 }
 v.FFMPEG.WaitForExit();
 v.FFMPEG.Dispose();
 }



Is it possible to make changes to the
-offset_x
and-offset_y
arguments during recording ? I'm drawing the recording region bounds with directx and want to add a titlebar to it which can be dragged to move the recording region, but I'm not sure how I would let ffmpeg know that I want these offsets changed or whether it's even possible.

-
Ffmpeg it's not setting the correct variable names and hence throwing Unable to choose format
9 novembre 2024, par Miguel ArriecheI'm trying to automate the subtitle addition to a folder with some videos so I wrote the following script :


forfiles /p "C:\Users\titos\Resilio_Sync\4K_Video_Downloader\videoprocess" /m *.mp4 /C "cmd /c set filename=@fname & ffmpeg -i @file -vf subtitles="C:\Users\titos\Resilio_Sync\4K_Video_Downloader\videoprocess\@fname.srt" -f mp4 "C:\Users\titos\Resilio_Sync\4K_Video_Downloader\donesubs\@fname_srt.mp4""



However, the script is throwing me the following error for each video :


[AVFormatContext @ 0000020c20220680] Unable to choose an output format for 'Der'; use a standard extension for the filename or specify the format manually.
[out#0 @ 0000020c20220580] Error initializing the muxer for Der: Invalid argument
Error opening output file Der.
Error opening output files: Invalid argument



In this case, "Der" is the second word of the video's title (And it does the same with each video where it throws the error with the second word). So I think it might be due to the videos containing spaces and ffmpeg not parsing it correctly ? But why is the second word that it gets and not the first one in that case ? And more importantly, what could I do to fix this issue ?


I've honestly found some other threads that discuss similar issues, but quite frankly I'm still too newbie to understand any of the answers in order to adapt it to my script lol. I appreciate your help, thanks a lot in advance :)


-
FFMPEG - Palettegen for animations is not working
18 juillet 2018, par deanhodgesI have a script taken from the correct answer at https://superuser.com/questions/1002562/convert-multiple-images-to-a-gif-with-cross-dissolve, but I am getting no results.
Even copying the code word for word does not work for me.
However, if I run
$ffmpeg = shell_exec("ffmpeg -i images/image001.jpg -vf palettegen palette_test.png");
on a single image, it works fine. But because I need it for an animation, I need to create a pallete for all images.Unless of course, on each image in the GIF sequence I can load a new palette ?
$q = "ffmpeg -f image2 -framerate 0.5 -i ../view/client/files/".$dir."/%*.jpg -i palettePro.png -lavfi paletteuse -y .." . $save_path . '/' . $filename . " -report";