
Recherche avancée
Autres articles (85)
-
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 -
À propos des documents
21 juin 2013, parQue faire quand un document ne passe pas en traitement, dont le rendu ne correspond pas aux attentes ?
Document bloqué en file d’attente ?
Voici une liste d’actions ordonnée et empirique possible pour tenter de débloquer la situation : Relancer le traitement du document qui ne passe pas Retenter l’insertion du document sur le site MédiaSPIP Dans le cas d’un média de type video ou audio, retravailler le média produit à l’aide d’un éditeur ou un transcodeur. Convertir le document dans un format (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (6431)
-
lavf/vplayerdec : support time durations with no ms specified
7 mars 2016, par Clément Bœsch -
ffmpeg command and args execute successfully with child_process.exec() but not child_process.spawn()
15 octobre 2013, par ZugwaltI am trying to use ffmpeg to add text to a video via the drawtext filter from within node.js in a windows environment.
I have a command and arguments that work in the command line and when executed using the child_process module's
exec
function, but it encounters an error when the same arguments are used with thespawn
function.The below code illustrates the problem :
var child_process = require('child_process');
var cmd = 'ffmpeg';
var args = [ '-i',
'c:\\path\\to\\my\\inputfile.mp4',
'-vf',
'drawtext="fontfile=/Windows/Fonts/arial.ttf:text=\'Hello World\':fontcolor=white@0.6:fontsize=70:x=0:y=40"',
'-y',
'c:\\path\\to\\my\\outputfile.mp4' ];
// Above creates the command line equivalent of:
// ffmpeg -i c:\path\to\my\inputfile.mp4 -vf drawtext="fontfile=/Windows/Fonts/arial.ttf:text='Hello fluent text':fontcolor=white@0.7:fontsize=70:x=0:y=40" -y c:\path\to\my\outputfile.mp4
// this works when run from the command line
var execCmd = cmd+' '+args.join(' ');
child_process.exec(execCmd, function (error, stdout, stderr) {
/* ffmpeg runs fine, adding the text to the video */
var spawn = child_process.spawn(cmd,args);
spawn.on('close', function (code) {
/* ffmpeg fails, with standard error (obtained via spawn.stderr) reading:
Could not load font ""fontfile=/Windows/Fonts/arial.ttf": impossible to find a matching font
Error initializing filter 'drawtext' with args '"fontfile=/Windows/Fonts/arial.ttf:text=Hello fluent text:fontcolor=white@0.6:fontsize=70:x=0:y=40"'
*/
});
});Based on the error message :
Could not load font ""fontfile=/Windows/Fonts/arial.ttf" : impossible
to find a matching fontAnd comparing it to giving ffmpeg a bogus font on the command line :
Could not load font "/Windows/Fonts/bogus.ttf" : impossible to find a
matching fontIt seems the problem is that when executed from spawn the drawtext argument is incorrectly parsed and
"fontfile=
is incorrectly making its way into the font's path. This does not happen when the same argument is executed withexec
or from the command line. Is there any additional escaping that needs to be done when executing usingspawn
? -
How to animate harcoded subtitles (.ass) or drawtext in ffmpeg ?
25 avril 2023, par AbsoluteSithI'm trying to add hardcoded text or subtitles to a video.
I've used .ass file to easily add subtitles with custom background color, font color, font size and placement and fade animation.


But now I want to add slide animation to the text.
Also, note that if this is not possible in .ass (Advanced Substation Alpha) how would one go about trying to add this using DrawText ?


Also not sure how I can split the text into multiple lines. (Wouldn't this involve knowing the size of the text and splitting)