
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (59)
-
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 (...) -
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 -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (11504)
-
GDPR Compliance and Personal Data : The Ultimate Guide
22 septembre 2023, par Erin — GDPR -
Reduce FFmpeg CPU Usage with cpulimit and PHP
31 mars 2017, par Matt McManisI run FFmpeg on my server using PHP
exec()
.It currently uses 100% of the cpu thread while encoding.
I followed this gude that uses a program called cpulimit to reduce it to 30%.
PHP
$args = "nice -19 cpulimit -l 30 -- ffmpeg -y -i intput.avi -vcodec libx264 -acodec aac -b:a 192k -threads 1 output.mp4"
exec(escapeshellcmd($args));FFmpeg/PHP works, and it will work with
nice
/cpulimit
through the terminal, but after adding
nice -19 cpulimit -l 30 --
to the PHP script it no longer works withexec()
.
Output
FFmpeg output returns blank. I’m not able to see the full output, I tried using :
$output = shell_exec($args);
echo "<p>$output</p>"and
file_put_contents("/var/www/mysite/logs/$output.log", $line . PHP_EOL, FILE_APPEND);
But they return 1 empty line.
Solution
My thought is that www-data runs FFmpeg and
nice
/cpulimit
may need root ?How can I get PHP
exec()
to work with FFmpeg args and cpulimit ?Or is there an alternative way to limit the usage % ?
-
qsvvpp : Perform full init only when needed
2 septembre 2018, par Joe Olivasqsvvpp : Perform full init only when needed
Removing unused VPP sessions by initializing only when used in order to help
reduce CPU utilization.Thanks to Maxym for the guidance.
Signed-off-by : Joe Olivas <joseph.k.olivas@intel.com>
Signed-off-by : Maxym Dmytrychenko <maxim.d33@gmail.com>
Signed-off-by : Luca Barbato <lu_zero@gentoo.org>