
Recherche avancée
Autres articles (52)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (5008)
-
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
? -
Which Dedicated Server for FFMPEG ?
11 février 2017, par OarSmaNMy website converts video to audio and video to video using FFMPEG (full Centos 64bit install). Mostly i got multiple conversions (10-20) real time. I use cache for already converted audios/videos. I am currently moving to a dedicated server and i need to know which configuration would be best for my situation.
Which of the below servers is better for FFMPEG ;
SINGLE Intel® Xeon® Processor E3-1270 v5, 8M Smart Cache, 3.60 GHz, 8 GT/s DMI3 (4 Cores-8 Threads) / 32GB DDR4 2133 / 240GB S3500 Intel Wolfsville SSD + 1TB Enterprise Grade HDD (for caching)
DUAL Intel® Xeon® Processor E5-2620, 15M Smart Cache, 2.00 GHz, 7.20 GT/s Intel® QPI (12 Cores-24 Threads) / 32GB DDR3 1333 / 120GB S3500 Intel Wolfsville SSD + 1TB Enterprise Grade HDD (for caching)
thanks for your ideas.
-
Add date of creation to the metadata title in ffmpeg
13 mai 2023, par Louis DidI record a live radio stream 3 times a week and would like to be able to add the date of the recording/creation time to the metadata title using ffmpeg. I want to see the title of the show with date of the recording on it when I play the mp3 file. For example : the title displayed on the player will be like this : Nocturnes 5-13-2023.


I have tried the following :


ffmpeg -i https://medfm.net/live/medfm.mp3 -t 00:05:00.00 -metadata title="Nocturnes $(date +%m-%d-%Y)" -c copy -f segment -strftime 1 -segment_time 3200 Nocturnes_%Y_%m_%d.mp3