
Recherche avancée
Autres articles (112)
-
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...) -
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
Prérequis à l’installation
31 janvier 2010, parPréambule
Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
Il (...)
Sur d’autres sites (4214)
-
Weird bug with FFMPEG when adding path (escape character \ )
15 juillet 2018, par alan samuelI am using C# to execute some FFMPEG commands.
I have a FFMPEG command like this -
ffmpeg -i C:\\Users\\Alan\\source\\repos\\TEST\\Tem_Videos/24d4a5be-5615-7930-5a38-c4e191aa8c48.mp4
-i C:\\Users\\Alan\\source\\repos\\TEST\\Video_Templates/Redacted.png -filter_complex "[0:v][1:v]overlay=0:0:enable='between(t,2,3)',drawtext=fontfile='C\\:\\Users\\Alan\\source\\repos\\TEST\\FFMPEG\\FreeSerif.ttf':enable='between(t,2,3)':fontcolor=white:fontsize=50:text='This section has been redacted':x=(w-text_w)/2:y=(h-text_h)/2[v];[0]volume=0:enable='between(t,2,3)'[a]" -map "[v]" -map "[a]" -preset ultrafast C:\\Users\\Alan\\source\\repos\\TEST\\Tem_Videos/6b70aeea-26fb-45ad-b7ad-254803f3e610.mp4"I am adding the escape characters when generating paths. But when using drawtext the command -
drawtext=fontfile='C\\:\\Users\\Alan\\source\\repos\\TEST\\FFMPEG\\FreeSerif.ttf'
This always fails when it runs.
If I run the command in cmd after changing the ’C// :’ to ’C/ :’ it works.
How do we get around this when I need to add a custom path for the font ?
Here is how I am setting the command in C#
string fontpath = System.Web.HttpContext.Current.Server.MapPath("~/FFMPEG/FreeSerif.ttf");
fontpath = fontpath.Replace(":", @"\:");
string ffmpegfile = System.Web.HttpContext.Current.Server.MapPath("~/FFMPEG/ffmpeg.exe");
string commandtorun = " -i " + inputvideo + " -i " + overlay + " -filter_complex \"[0:v][1:v] overlay=0:0:" +
"enable='between(t," + starttime + "," + endtime + ")',drawtext=fontfile='" + fontpath + "':enable='between(t," + starttime + "," + endtime + ")':fontcolor=white:fontsize=50:text='This section has been redacted':x=(w-text_w)/2:y=(h-text_h)/2[v];[0]volume=0:" +
"enable='between(t," + starttime + "," + endtime + ")'[a]\" -map \"[v]\" -map \"[a]\" " +
"-preset ultrafast " + finaloutput; -
Using a pipe character | with child_process spawn
19 avril 2020, par TitanI'm running nodejs on a raspberry pi and I want to run a child process to spawn a webcam stream.



Outside of node my command is :



raspivid -n -mm matrix -w 320 -h 240 -fps 18 -g 100 -t 0 -b 5000000 -o - | ffmpeg -y -f h264 -i - -c:v copy -map 0:0 -f flv -rtmp_buffer 100 -rtmp_live live "rtmp://example.com/big/test"




With
child_process
I have to break each argument up


var args = ["-n", "-mm", "matrix", "-w", "320", "-h", "240", "-fps", "18", "-g", "100", "-t", "0", "-b", "5000000", "-o", "-", "|", "ffmpeg", "-y", "-f", "h264", "-i", "-", "-c:v", "copy", "-map", "0:0", "-f", "flv", "-rtmp_buffer", "100", "-rtmp_live", "live", "rtmp://example.com/big/test"];




camera.proc = child.spawn('raspivid', args);




However it chokes on the
|
character :


error, exit code 64
Invalid command line option (|)




How do I use this pipe character as an argument ?


-
avcodec/libzvbi-teletextdec : add option to set default G0 character set
19 février 2020, par Kirill Savkov