Open main menu

Extension talk:TimedMediaHandler

About this board

Commons Creator template doesnt work well with TimedMediaHandler's menu display

Roy17 (talkcontribs)
Reply to "Commons Creator template doesnt work well with TimedMediaHandler's menu display"

Class 'getID3' not found trying to upload a video file

Krusher (talkcontribs)

Hello, when trying to upload a video file (either webm or mp4) I get the following error:

[10f9430f9e6bc3a83ac9f5ad] /wiki/Especial:SubirArchivo Error from line 15 of /home/krusher/ Class 'getID3' not found


#0 /home/krusher/ ID3Handler->getID3(string)

#1 /home/krusher/ Mp4Handler->getID3(string)

#2 /home/krusher/ ID3Handler->getMetadata(FSFile, string)

#3 /home/krusher/ MWFileProps->getPropsFromPath(string, string)

#4 /home/krusher/ UploadBase->verifyPartialFile()

#5 /home/krusher/ UploadBase->verifyFile()

#6 /home/krusher/ UploadBase->verifyUpload()

#7 /home/krusher/ UploadFromFile->verifyUpload()

#8 /home/krusher/ SpecialUpload->processUpload()

#9 /home/krusher/ SpecialUpload->execute(NULL)

#10 /home/krusher/ SpecialPage->run(NULL)

#11 /home/krusher/ MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#12 /home/krusher/ MediaWiki->performRequest()

#13 /home/krusher/ MediaWiki->main()

#14 /home/krusher/ MediaWiki->run()

#15 {main}

Am I doing something wrong or do I lack something?


TheDJ (talkcontribs)

Did you install from git ? Because it looks like the composer dependencies of the extension were not installed.

Krusher (talkcontribs)

Correct, after executing composer update it works. Thanks! Maybe it should be noted in the installation process.

Bowdzone (talkcontribs)

I just installed the extension via downloading and extracting the tar and not using git but I received the same error message, had to install composer and run composer update --no-dev to get rid of this. Not sure whether that is intended but at the moment this step should be noted as a general requirement for the installation process

Madewild (talkcontribs)

Is this the intended behaviour and is there a workaround? I have a MW instance on a shared server with no root access so I cannot install composer.

Ciencia Al Poder (talkcontribs)

You can install composer on your local computer, use it on a copy of the extension, and then upload the whole folder to the server

TheDJ (talkcontribs)

i've update the documentation some more. Turns out the tarball versions of the extension also don't include the vendor directory (only the main tarball for core + common extensions does).

Bttfvgo (talkcontribs)

Krusher, this is a somewhat simple error that I ran into also. Just do

$ composer require james-heinrich/getid3

from your Mediawiki root directory. Glad you got it working!

Error loading shared libraries and Undefined index: vorbis

Bttfvgo (talkcontribs)

I cannot generate thumbnails in MW1.33. I couldn't in 1.32, either, but at least the video player displayed. This time it doesn't show (but if you go to "original file", the video still plays), but instead displays an error:

/usr/bin/ffmpeg: error while loading shared libraries: failed to map segment from shared object

I can't figure it out. I also can't figure out the "Undefined index: vorbis" error I keep receiving. Everything worked so good for me through MW1.30... Sigh, I've been having nothing but errors since the upgrade, lol!

Bttfvgo (talkcontribs)

Well I solved the ffmpeg error. Apparently, I had definied $wgMaxShellMemory twice in my LocalSettings.php, and the second value, which was much lower than the first, was overwriting the first value. Changing it gave it more than enough memory to do what it needed to do. I'm still getting the "Undefinied index: vorbis" error, however!

Reply to "Error loading shared libraries and Undefined index: vorbis"
Elbiztec (talkcontribs)

Hello, I installed the extension TimedMediaHandler and run good in sounds, but in video it appears with this error, i created temp folder and put the code $wgTempDirectory but not work, any help would be greatly appreciated

Brion VIBBER (talkcontribs)

Assuming ffmpeg is installed correctly, it's common to get thumbnailing errors due to the low default memory limit.

Try adding to LocalSettings.php: $wgMaxShellMemory *= 4;

Silkwood (talkcontribs)

Assuming ffmpeg is installed....add

$wgFFmpegLocation = '/path/to/ffmpeg';

after wfLoadExtension( 'TimedMediaHandler' );

Reply to "Error creating thumbnail"

HOWTO LOOP video. +Opus 44.1k failure & Same-size re-encodes

2001:2002:51ED:CEE0:DC5D:AE01:E6DE:3306 (talkcontribs)

1) Most importantly I would like TimedMediaHandler to have a "loop" video option for making short video clips (say it's just 15-20 seconds) loop automatically when they are played.

2) It would be nice to be able to set a video size of 100% instead of pixels and have it resize to whatever size the screen/browser is using. Should of course also work if the browser is resized after playbacks begun.

3) Unrelated, uploading a MP3 with 44.1k audio makes TimedMediaHandler specify 44.1k when converting to Opus which fails since it's a 48k format. That's a bug.

4) I also find it very annoying that if I upload a 1080p VP9/Opus webm TimedMediaHandler will convert the file to that same format in addition the other formats. A check to see if the file's already in the target format would be preferable and reduce server load.

Reply to "HOWTO LOOP video. +Opus 44.1k failure & Same-size re-encodes"
Bowdzone (talkcontribs)

Currently, this extension does not appear to be supporting PostgreSQL natively, which is also discussed here. What happend for me was, that the update script did nothing to update my database and the upload afterwards complained about missing tables, guessing the update script had not been executed. Creating the transcode table and sequence manually with the correct permissions seems to have fixed the issue.

Imho this general issue is worth noting on the installation section for other users to at least know what they are getting into.

Reply to "PostgreSQL not supported"
TheROFL98 (talkcontribs)

I was wondering if this extensions does (or will) support WAV files.

Jdforrester (WMF) (talkcontribs)
TheROFL98 (talkcontribs)

The extension won't load .wav files on my wiki, only working when I use the new media player.

Bawolff (talkcontribs)
Reply to "WAV support"


Summary last edited by Sanfrupedia 19:19, 26 December 2018 7 months ago

MwEmbedSupport extension is still required for latest stable version MediaWiki 1.31.0. Description of Extension:MwEmbedSupport was improved a bit and download is still possible.

EDIT: Can't download this archived extension anymore... is it required for 1.31.1 or not? Based on the installation instructions it shouldnt be required..

InkluPedia (talkcontribs)

Hello. The Extension:MwEmbedSupport is no longer available (archived), but TimedMediaHandler requires MwEmbedSupport until latest stable MediaWiki version 1.31? I am currently installing MediaWiki 1.31.0 on my wiki InkluPedia and detected this issue. Thanks.

InkluPedia (talkcontribs)

"php update.php" is complaining "TimedMediaHandler requires the MwEmbedSupport extension." So why it is no longer available (archived) when it is still required for latest official and LTS version of MediaWiki?

TheDJ (talkcontribs)
InkluPedia (talkcontribs)
TheDJ (talkcontribs)

I have already expanded the message on that page to be more descriptive.

Sanfrupedia (talkcontribs)

Unfortunately not enough, since it say that is not required for 1.31 and above, while according to above comments it is.

How can I download this archived extension since it got completely removed even from the ExtensionDistributor?

Thanks (talkcontribs)
Reply to "Extension:MwEmbedSupport"
Micha8532 (talkcontribs)

Hello, I want integrate sounds (and also videos) from another site. It is possible?

(Sorry for my english, I'm french and not very bilingual).

Reply to "Sounds from another Site"

PHP Warning: Invalid argument supplied for foreach()

Summary by Zoglun

We can't solve it after change several ffmpeg version. So we disabled the audio convert of mp3 by setting $wgEnabledAudioTranscodeSet.

The patents of mp3 were all expired in 2018. There is no need to convert mp3 anymore.

Zoglun (talkcontribs)

PHP Warning: Invalid argument supplied for foreach() in extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php on line 679

Kghbln (talkcontribs)

The versions of TMH, MW and PHP are? Please consider creating an issue at phabricator.

Return to "TimedMediaHandler" page.