
Recherche avancée
Autres articles (37)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (5420)
-
FFmpeg version 4.0.1 cannot find h264 encoder
3 juillet 2018, par CristianoToday I updated FFmpeg to version 4.0.1 and my existing project cannot compile anymore. In particular
avcodec_find_encoder(AV_CODEC_ID_H264)
always returns null. I tried to reinstall the libx264 but nothing changed.
I also tried to callavcodec_find_encoder_by_name("libx264")
and it works, butavcodec_open2()
returns error. -
PHP shell_exec wait for script to done ? [duplicate]
6 mars 2016, par Melih BüyükbayramThis question already has an answer here :
I have a PHP script that queries a database for a list of jobs to be done and fires off other PHP scripts based on what it finds in the database (basically a process queue).
Some of the scripts that the queue runner script executes may take 30 seconds or so to finish running (convert video, resizing images, etc).
The problem is that shell_exec() in the queue runner script calls the processing scripts, but then doesn’t wait for them to finish, resulting in the queue not being completed.
Queue runner script :
#!/usr/bin/php
<?php
// Loop through database and find jobs to be done
shell_exec("nohup $command > /dev/null 2> /dev/null & echo $! &");
?>Running the job script directly from the command line works and the PDF is created.
Any ideas on how to fix this ? Or a better way to run a process queue ?
-
Evolution #2100 : Nom de répertoire de lib externe
30 mai 2011, par cedric -Il faudrait améliorer cela, en effet. Mais le stockage en base me parait peut possible. Il faut éviter que le dezippage de deux archives differentes ne tombe dans le même dossier. A ce titre le md5 devrait porter sur toute l’url du zip plutot que sur le basename, et on pourrait fournir une (...)