
Recherche avancée
Médias (1)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (85)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (11875)
-
FFMPEG with node , using child_process , suppressing un-necessary stderr
16 mai 2018, par drexdeltaI am trying to resize the video using (FFMPEG + node + child_process). and my code looks something like this , You can read comments and understand it. it’s self-explanatory for people who are familiar with node and ffmpeg. when I run this code, I keep getting error in
newThread.stderr.on() function . which is not expected behaviour. After running this process I am getting expected video translation, which is expected behaviour.const spawn = require('child_process').spawn;
// resize and compress video promise = prom2
const resizeVideoWith_FFMPEG_Promise = (sourceFile , sinkFile)=>{
return new Promise ( (resolve , reject)=>{
// actual command for ffmpeg is something like this , "ffmpeg -i oldVideo -vf scale=-2:480 newVideo"
// New thread
const newThread = spawn('ffmpeg' , ['-i','vid1.mp4','-vf','scale=-2:480','vid2.mp4']);
// on close signal
newThread.on('close',(data)=>{
console.log(' thread closed for video ' , sourceFile);
return resolve();
});
// on stderr signals
newThread.stderr.on('data',(data)=>{
console.log(' got error in the thread of video ' , sourceFile);
fullError = data.toString();
console.log(fullError);
// return resolve();
// return reject();
});
newThread.stdout.on('data',(data)=>{
// just ignore all stadanrd outputs
});
});
}
resizeVideoWith_FFMPEG_Promise('vid1.mp4' , 'vid2.mp4' ).then((res)=>{
console.log(res);
});For the sake of simplicity I am resolving the promise everytime, even if I get stderr. And at end of running this code I get output something like this ,
got error in the thread of video vid1.mp4
frame= 3277 fps=116 q=28.0 size= 12288kB time=00:02:16.64 bitrate= 736.7kbits/s speed=4.82x
got error in the thread of video vid1.mp4
frame= 3313 fps=115 q=28.0 size= 12544kB time=00:02:18.15 bitrate= 743.8kbits/s speed=4.79x
got error in the thread of video vid1.mp4
frame= 3362 fps=115 q=28.0 size= 12800kB time=00:02:20.17 bitrate= 748.0kbits/s speed=4.78x
got error in the thread of video vid1.mp4
frame= 3408 fps=114 q=28.0 size= 12800kB time=00:02:22.12 bitrate= 737.8kbits/s speed=4.77x
got error in the thread of video vid1.mp4
frame= 3465 fps=114 q=28.0 size= 13056kB time=00:02:24.49 bitrate= 740.2kbits/s speed=4.76x
got error in the thread of video vid1.mp4
frame= 3522 fps=114 q=28.0 size= 13312kB time=00:02:26.86 bitrate= 742.5kbits/s speed=4.76x
got error in the thread of video vid1.mp4
frame= 3580 fps=114 q=28.0 size= 13568kB time=00:02:29.28 bitrate= 744.6kbits/s speed=4.76xNow, my problem is if I always keep resolving errors, then I will never be able to catch when the video ACTUALLY FAILED TO RESCALE. so, how can I ignore these type of un-necessary stderr and catch only useful errors ?
Pls someone help.
I have been through lot of related links like this, but none of these actually solve my problem(even if they did, I couldn’t figure out)
Error while using h264_cuvid decoder with ffmpeg
Using module "child_process" without Webpack
Suppressing STDOUT with node child_process
Small hint will be very helpful. Thank you .
BTW , SO moderators , My actual title was like
stderr problem while using FFMPEG with node via child_process module
But it didn’t allow me to use such title. so, I am using some dummy title.
-
Why Matomo is a serious alternative to Google Analytics 360
12 décembre 2018, par Jake Thornton — Marketing -
Introducing the Data Warehouse Connector feature
30 janvier, par Matomo Core Team