
Recherche avancée
Autres articles (97)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (7891)
-
How do I ffmpeg to iterate through 10,000+ datetime stamped files
18 décembre 2018, par RichI have a large number of jpgs captured from a cctv camera which I mistakenly used a dashed date time stamp in my curl command. The file names are
Underwater-Cam-2017-10-20_17-58-22.jpg
If I do a wildcard I get
bash: /Applications/ffmpeg: Argument list too long
I understand from other posts that I don’t want avoid the pattern being expanded using a glob, but I’m not sure how to iterate through these files with multiple sequential numbers. I tried this consecutive integer counting sequence which is in retrospect obviously not going to work, but I lack enough knowledge to resolve this through searching.
/Applications/ffmpeg -y -i '/path/to/src/2017-10-20/Underwater-Cam-2017-10-20_%02d-%02d-%02d.jpg' -r 24 -vf "scale=hd720" -metadata:s:v rotate=0 -vcodec libx265 -preset veryfast -crf 24 -an -movflags +faststart /path/to/dest/uwcam-2017-10-20.mp4
I’m doing this on a mac using bash 4.
-
Piping images to FFmpeg stdin
21 décembre 2018, par Vincent BavaroGood morning, I need to stream trough hls many images that come in a folder as if they were video frames. I don’t know prior how many they are so I believe I need to keep FFmpeg opened and passing them via stdin. I read this article already
create video from growing image sequence
and I changed the c# code to fit my problem like this :using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using System.Diagnostics;
using System.ComponentModel;
namespace Example
{
public class Example
{
static void Main()
{
AsyncMain().GetAwaiter().GetResult();
}
static async Task AsyncMain()
{
Console.WriteLine("Press any button to quit.");
var maintask = RunFFMPEG();
var readtask = Task.Run(() => Console.Read());
await Task.WhenAny(maintask, readtask);
}
static async Task RunFFMPEG()
{
await Task.Run(() =>
{
const int fps = 30;
const string outfile = "video_seg_%05d.ts";
const string dir = @"C:\Users\funny\Desktop\in\";
const string pattern = "{0}.bmp";
const string path = dir + pattern;
const string args = "-y -re -f image2pipe -framerate 2 -i - -c:v libx264 -r {0} -s 1920x1200 -b:v 256000 -flags +global_header -map 0 -f segment -segment_time 10 -segment_list_size 0 -segment_list list.m3u8 -segment_format mpegts {1}";
const int startNum = 0;
const int endNum = 100;
var pinf = new ProcessStartInfo("ffmpeg", string.Format(args, fps, outfile));
pinf.UseShellExecute = false;
pinf.RedirectStandardInput = true;
pinf.WorkingDirectory = dir;
Console.WriteLine("Starting ffmpeg...");
var proc = Process.Start(pinf);
using (var stream = new BinaryWriter(proc.StandardInput.BaseStream))
{
for (var i = startNum; i < endNum; i++)
{
var file = string.Format(path, i.ToString("D4"));
System.Threading.SpinWait.SpinUntil(() => File.Exists(file) && CanReadFile(file));
Console.WriteLine("Found file: " + file);
stream.Write(File.ReadAllBytes(file));
}
}
proc.WaitForExit();
Console.WriteLine("Closed ffmpeg.");
});
}
static bool CanReadFile(string file)
{
//Needs to be able to read file
FileStream fs = null;
try
{
fs = File.OpenRead(file);
return true;
}
catch (IOException)
{
return false;
}
finally
{
if (fs != null)
fs.Close();
}
}
}
}When I run the script, I get the following screen :
Press any button to quit.
Starting ffmpeg...
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181017
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100And it stays like this even though I have images in my folder and they keep coming. Anyone can tell me why isn’t it processing ? (I’ve tried to run the FFmpeg command alone on a fixed number of images without piping and it works.)
-
Anomalie #4230 (Nouveau) : Limite à la longueur des paramètres d’un modèle
17 novembre 2018Bonjour,
C’est pas exactement Texwheel parce que le code concerné est dans le core. Mais ça se manifeste dans le traitement des raccourcis typo.
Bref.J’ai constaté que si un modèle contenait trop de caractères, alors qu’il passait en PHP 5.6, il n’était plus interprété en PHP 7.
Test ici : https://contrib.spip.net/ecrire/?exec=article&id_article=5055
Et preuve du problème : https://3v4l.org/lqqIG qui montre qu’en PHP 5.6, la regex fonctionne, mais pas pour 7.0.32 - 7.3.0alpha2 (alors qu’avec un caractère de moins, ça passe partout : https://3v4l.org/k4bgd)
Code construit à partir de https://core.spip.net/projects/spip/repository/entry/branches/spip-3.2/ecrire/inc/lien.php#L294Il semblerait que ce soit une limite de PCRE introduite avec PHP7 et son option jit activée par défaut :https://stackoverflow.com/questions/34849485/regex-not-working-for-long-pattern-pcres-jit-compiler-stack-limit-php7
En local, je n’ai plus le problème en ayant mis dans mes_options.php :
ini_set(’pcre.jit’, 0) ;https://regex101.com/r/DqmJMs/2 permet de voir que la regex fait énormément de backtrack et donc d’étapes : 19105 étapes.
J’ai idée que l’usage de conditions serait plus efficace, mais j’ai pas trouvé comment.
https://www.rexegg.com/regex-conditionals.html#engines