
Recherche avancée
Autres articles (72)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 (...)
Sur d’autres sites (14600)
-
Returning a success or failure from ffmpeg
2 novembre 2017, par user3331834I have some code executed in PHP after meeting some criteria through if/then statements which looks something like this :
if(in_array($ext,$video)&&($ext!=="mp4")){
exec("ffmpeg -i ".$fileName.".".$ext." -s 640x360 ".$fileName.".mp4");
/*
if(successful){
unlink($fileName.$ext);
$status="Video entry approved. File converted.";
}
*/
}As you can see, the issue I’m having is trying to figure out what should go in place of
if(successful)
. The point of this section of the code is to check the files extension against an array of known extensions that are in video format, and that aren’t already in the mp4 format. If it passes this check, ffmpeg should run and convert to mp4.So a few questions here. Firstly, how can I return a status to tell me if it is converting, succeeded, or failed ? Secondly, how can this be run asynchronously ? That is, if I wanted to convert multiple files, would I be able to do so ? Would I be able to limit ffmpeg to ensure it does not take up all of my server’s processing power and inadvertently bring the site to a grinding halt ?
Or is there a better way to go about converting files than this ? I’m pretty sure my method must be crude.
EDIT : In addition to this, how does one run ffmpeg in the background, so that the page can be closed, and/or another instance from the same page can be started up by the user for multiple simultaneous conversions ? Is it possible to include a real-time progress status of each conversion ?
-
Returning a success or failure from ffmpeg
16 mars 2014, par user3331834I have some code executed in PHP after meeting some criteria through if/then statements which looks something like this :
if(in_array($ext,$video)&&($ext!=="mp4")){
exec("ffmpeg -i ".$fileName.".".$ext." -s 640x360 ".$fileName.".mp4");
/*
if(successful){
unlink($fileName.$ext);
$status="Video entry approved. File converted.";
}
*/
}As you can see, the issue I'm having is trying to figure out what should go in place of
if(successful)
. The point of this section of the code is to check the files extension against an array of known extensions that are in video format, and that aren't already in the mp4 format. If it passes this check, ffmpeg should run and convert to mp4.So a few questions here. Firstly, how can I return a status to tell me if it is converting, succeeded, or failed ? Secondly, how can this be run asynchronously ? That is, if I wanted to convert multiple files, would I be able to do so ? Would I be able to limit ffmpeg to ensure it does not take up all of my server's processing power and inadvertently bring the site to a grinding halt ?
Or is there a better way to go about converting files than this ? I'm pretty sure my method must be crude.
EDIT : In addition to this, how does one run ffmpeg in the background, so that the page can be closed, and/or another instance from the same page can be started up by the user for multiple simultaneous conversions ? Is it possible to include a real-time progress status of each conversion ?
-
3 million downloads for Piwik Analytics
11 janvier 2017, par Matthieu Aubry — CommunityA testament to the power of our mission statement…
“To create, as a community, the leading international open source digital analytics platform, that gives every user full control of their data.”
… Piwik has been downloaded more than 3 million times !
Piwik is the most popular open analytics platform
Piwik is the number one most popular open analytics platform, used on more than 1 million websites in 200 different countries, and the 7th overall most popular analytics tool.
Together we can make Piwik even better !
Piwik is a community project. We are so proud of what we have created and would love your help too ! Help us by filling in our community survey (takes just 5 minutes !), by getting involved or becoming a sponsor.
Thank you so much for using Piwik and respecting privacy while keeping control of your data.
Happy Analytics !