Most transcoding jobs are reported as failed while ffmpeg is still running, this changes to "Completed" when the process is done.
But the transcoding job is still listed as failed in Special:TimedMediaHandler.
The failed, then completed, jobs have both time_success and time_error in the database.
MariaDB [wikidb]> select * from transcode; +--------------+-------------------------------------+----------------+-----------------+-----------------------+--------------------------+------------------------+----------------------+-------------------------+ | transcode_id | transcode_image_name | transcode_key | transcode_error | transcode_time_addjob | transcode_time_startwork | transcode_time_success | transcode_time_error | transcode_final_bitrate | +--------------+-------------------------------------+----------------+-----------------+-----------------------+--------------------------+------------------------+----------------------+-------------------------+ | 79 | VID_20170304_111417.mp4 | 120p.vp9.webm | | 20191210193223 | 20191210193232 | 20191210193348 | 20191210193233 | 216800 | | 80 | VID_20170304_111417.mp4 | 180p.vp9.webm | | 20191210193223 | 20191210193348 | 20191210193538 | NULL | 296488 | | 81 | VID_20170304_111417.mp4 | 240p.vp9.webm | | 20191210193223 | 20191210193538 | 20191210193813 | 20191210193603 | 416104 | | 82 | VID_20170304_111417.mp4 | 360p.vp9.webm | | 20191210193223 | 20191210193813 | NULL | NULL | 0 | | 83 | VID_20170304_111417.mp4 | 480p.vp9.webm | | 20191210193223 | NULL | NULL | NULL | 0 | | 84 | VID_20170304_111417.mp4 | 720p.vp9.webm | | 20191210193223 | NULL | NULL | NULL | 0 | | 85 | VID_20170304_111417.mp4 | 1080p.vp9.webm | | 20191210193223 | NULL | NULL | NULL | 0 | +--------------+-------------------------------------+----------------+-----------------+-----------------------+--------------------------+------------------------+----------------------+-------------------------+
Versions
MediaWiki 1.33.1
PHP 7.2.24-0ubuntu0.18.04.1 (fpm-fcgi)
TimedMediaHandler 0.6.0
Settings
$wgMaxShellMemory = 614400; // default x 2 $wgMaxShellFileSize = 204800; // default x 2 $wgMaxShellTime = 300; wfLoadExtension( 'TimedMediaHandler' ); $wgTmhEnableMp4Uploads = true; $wgTmhWebPlayer = 'videojs'; $wgFFmpegLocation = '/usr/bin/ffmpeg'; $wgTranscodeBackgroundTimeLimit = 0; $wgFFmpegVP9RowMT = true; $wgFFmpegThreads = 2; $wgEnableNiceBackgroundTranscodeJobs = true;