
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (103)
-
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 (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...)
Sur d’autres sites (12473)
-
Laravel MySQL DB not updating after long process
11 mai 2022, par slanginbitsI'm doing some video encoding using Laravel and FFMpeg using https://github.com/protonemedia/laravel-ffmpeg


During the video conversion, I can perform some db updates to update the percentage complete in hls_percent field :


$ffmpeg_cmd = FFMpeg::fromDisk('local_videos')
 ->open($video->filename)
 ->exportForHLS()
 ->toDisk('local_videos')
 ->setSegmentLength(3) // optional
 ->setKeyFrameInterval($key_interval) // optional
 ->onProgress(function ($percentage, $remaining = 0, $rate = 0) use ($id) {
 ItemVideo::where('id', $id)->update(['hls_percent' => $percentage]); 
 });



This process works fine and the hls_percent value gets updated to 100 and the encoded video files are generated.


After some files are moved, (takes several seconds) a final db update is not done.


ItemVideo::where('id', $id)->update(['hls_complete' => 1]);



The timeout only happens while encoding a large 150MB (10 min duration) mp4 file. Smaller/shorter videos complete the process without any issues.


I have increased the following in php.ini


memory_limit = 512M 
post_max_size = 1024M
upload_max_filesize = 1024M
max_execution_time = 2400
max_input_time = 2400
default_socket_timeout = 2400



I modified the global variables in the MySQL database server to higher timeouts
as instructed here https://sebhastian.com/lost-connection-mysql-server-during-query/


connect_timeout 2400
delayed_insert_timeout 300
have_statement_timeout YES
innodb_flush_log_at_timeout 1
innodb_lock_wait_timeout 50
innodb_rollback_on_timeout OFF
interactive_timeout 28800
lock_wait_timeout 31536000
mysqlx_connect_timeout 30
mysqlx_idle_worker_thread_timeout 60
mysqlx_interactive_timeout 28800
mysqlx_port_open_timeout 0
mysqlx_read_timeout 30
mysqlx_wait_timeout 28800
mysqlx_write_timeout 60
net_read_timeout 2400
net_write_timeout 2400
replica_net_timeout 2400
rpl_stop_replica_timeout 31536000
rpl_stop_slave_timeout 31536000
slave_net_timeout 2400
ssl_session_cache_timeout 2400
wait_timeout 28800



apache2handler :


Max Requests Per Child : 0 - Keep Alive : on - Max Per Connection : 100
Timeouts Connection : 300 - Keep-Alive : 5


I'm not getting an error messages in laravel or /var/log/apache2/error.log


What else am I missing ? How can I keep the MySQL connection alive to make the final update ?


-
Evolution #3916 : perf mysql : ne pas surcharger les recherches
4 janvier 2018, par jluc -Même diff mais avec adresse de fichier plus normalisée
-
Révision 22352 : detection par showtable en sqlite des ’UNIQUE KEY’ commen en mysql
27 juillet 2015, par cedric -