Hello,
I am trying to get TimedMediaHandler enabled and the TimedText feature working. The client ask is to have a video transcript available for uploaded videos - I am assuming this is the purpose of the TimedText? The TMH is an extension bundled in our MW image and I cannot edit the files directly.
Here are the versions:
MediaWiki | 1.39.1 |
PHP | 7.4.33 |
TimedMediaHandler | 0.6.0 |
Here is what's in LS.p:
wfLoadExtension('TimedMediaHandler');
$wgFFmpegLocation = '/usr/bin/ffmpeg';
$wgTimedTextNS = 710;
$wgTmhEnableMp4Uploads = true;
The TMH is showing up under Special:Version. Videos can be successfully uploaded and embedded with EmbedVideo.
However, with embedVideo disabled, the following happens with TMH videos
- It either links to the video file rather then embedding it
- It shows a gray bar with play button, but no video (audio works) (this only works if the file was previously embedded with EmbedVideo)
- It shows a message "Error creating thumbnail:"
When trying to create a new TimedText page, it has me select the language and takes me to the edit screen. When attempting to save the timedText page the following error displays:
[6d77ab5662cf7a241109a524] /wiki/TimedText:ExampleVideoAudio.mp4.en.srt Error: Call to a member function toHtml() on bool
Backtrace:
from /var/www/mediawiki/w/canasta-extensions/TimedMediaHandler/includes/TimedTextPage.php(243)
#0 /var/www/mediawiki/w/canasta-extensions/TimedMediaHandler/includes/TimedTextPage.php(142): MediaWiki\TimedMediaHandler\TimedTextPage->getVideoHTML(Title)
#1 /var/www/mediawiki/w/canasta-extensions/TimedMediaHandler/includes/TimedTextPage.php(69): MediaWiki\TimedMediaHandler\TimedTextPage->renderOutput(OutputPage)
#2 /var/www/mediawiki/w/includes/actions/ViewAction.php(78): MediaWiki\TimedMediaHandler\TimedTextPage->view()
#3 /var/www/mediawiki/w/includes/MediaWiki.php(542): ViewAction->show()
#4 /var/www/mediawiki/w/includes/MediaWiki.php(322): MediaWiki->performAction(MediaWiki\TimedMediaHandler\TimedTextPage, Title)
#5 /var/www/mediawiki/w/includes/MediaWiki.php(904): MediaWiki->performRequest()
#6 /var/www/mediawiki/w/includes/MediaWiki.php(562): MediaWiki->main()
#7 /var/www/mediawiki/w/index.php(50): MediaWiki->run()
#8 /var/www/mediawiki/w/index.php(46): wfIndexMain()
#9 {main}
Any help is greatly appreciated, thank you for your time and expertise.