Extension talk:TimedMediaHandler

Jump to navigation Jump to search

About this board

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

1
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"

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

4
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/www.apocrypha.ovh/extensions/TimedMediaHandler/includes/handlers/ID3Handler/ID3Handler.php: Class 'getID3' not found

Backtrace:

#0 /home/krusher/www.apocrypha.ovh/extensions/TimedMediaHandler/includes/handlers/Mp4Handler/Mp4Handler.php(12): ID3Handler->getID3(string)

#1 /home/krusher/www.apocrypha.ovh/extensions/TimedMediaHandler/includes/handlers/ID3Handler/ID3Handler.php(51): Mp4Handler->getID3(string)

#2 /home/krusher/www.apocrypha.ovh/includes/utils/MWFileProps.php(84): ID3Handler->getMetadata(FSFile, string)

#3 /home/krusher/www.apocrypha.ovh/includes/upload/UploadBase.php(506): MWFileProps->getPropsFromPath(string, string)

#4 /home/krusher/www.apocrypha.ovh/includes/upload/UploadBase.php(441): UploadBase->verifyPartialFile()

#5 /home/krusher/www.apocrypha.ovh/includes/upload/UploadBase.php(344): UploadBase->verifyFile()

#6 /home/krusher/www.apocrypha.ovh/includes/upload/UploadFromFile.php(95): UploadBase->verifyUpload()

#7 /home/krusher/www.apocrypha.ovh/includes/specials/SpecialUpload.php(506): UploadFromFile->verifyUpload()

#8 /home/krusher/www.apocrypha.ovh/includes/specials/SpecialUpload.php(204): SpecialUpload->processUpload()

#9 /home/krusher/www.apocrypha.ovh/includes/specialpage/SpecialPage.php(569): SpecialUpload->execute(NULL)

#10 /home/krusher/www.apocrypha.ovh/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)

#11 /home/krusher/www.apocrypha.ovh/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#12 /home/krusher/www.apocrypha.ovh/includes/MediaWiki.php(865): MediaWiki->performRequest()

#13 /home/krusher/www.apocrypha.ovh/includes/MediaWiki.php(515): MediaWiki->main()

#14 /home/krusher/www.apocrypha.ovh/index.php(42): MediaWiki->run()

#15 {main}


Am I doing something wrong or do I lack something?


Regards.

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

Reply to "Class 'getID3' not found trying to upload a video file"
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"

Extension:MwEmbedSupport

7
Summary last edited by Sanfrupedia 19:19, 26 December 2018 5 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

189.217.121.62 (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()

2
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.

Summary by Jdforrester (WMF)

Not available from TMH or any known alternative, except for YouTube plugins using that platform's playlist feature.

2604:6000:1404:4DE1:BD95:1806:E6B1:2001 (talkcontribs)

is it possible to do any sort of video playlisting? Would save from having hundreds of files to click on in the page. If not, alternatives? These are local files.

TheDJ (talkcontribs)

There is not, and i'm not aware of any alternatives that feature this. There are however several Youtube plugins, and i'm assuming one of the will work icw Youtube's playlist feature.

So if you have the option of using Youtube in your setup, then that might be a solutions.

2604:6000:1404:4DE1:BD95:1806:E6B1:2001 (talkcontribs)

I'll have to look that up then - i figured that's the direction this was going to end up I'm just not looking forward to downloading my mp4s out of my wiki to upload to youtube but such is technology. Thanks anyhow though ^.^

[481534518f1aa907bf368137] /wikiwiki/index.php/Especial:TimedMediaHandler Wikimedia\Rdbms\DBQueryError from line 1457 of C:\xampp\htdocs\wikiwiki\includes

6
Summary by Jdforrester (WMF)

Needed to run the SQL manipulation files manually

181.55.114.245 (talkcontribs)

Hello to everyone, I am testing a wiki and installing several extensions, but I have a problem with TimedMediaHandler. I've updated the installation as say Manual:Update.php but the table transcode doesn't create it... How do i resolve it? Thanks

[481534518f1aa907bf368137] /wikiwiki/index.php/Especial:TimedMediaHandler Wikimedia\Rdbms\DBQueryError from line 1457 of C:\xampp\htdocs\wikiwiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT COUNT(*) as count,transcode_key FROM `transcode` WHERE transcode_key IN ('160p.webm','240p.webm','360p.webm','480p.webm','720p.webm','1080p.webm','mp3','ogg') AND (transcode_time_startwork IS NOT NULL AND transcode_time_success IS NULL AND transcode_time_error IS NULL) GROUP BY transcode_key

Function: SpecialTimedMediaHandler::getStates

Error: 1146 Table 'wikiwiki.transcode' doesn't exist (localhost)

Backtrace:

#0 C:\xampp\htdocs\wikiwiki\includes\libs\rdbms\database\Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)

#1 C:\xampp\htdocs\wikiwiki\includes\libs\rdbms\database\Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 C:\xampp\htdocs\wikiwiki\includes\libs\rdbms\database\Database.php(1653): Wikimedia\Rdbms\Database->query(string, string)

#3 C:\xampp\htdocs\wikiwiki\extensions\TimedMediaHandler\SpecialTimedMediaHandler.php(212): Wikimedia\Rdbms\Database->select(string, array, array, string, array)

#4 C:\xampp\htdocs\wikiwiki\extensions\TimedMediaHandler\SpecialTimedMediaHandler.php(62): SpecialTimedMediaHandler->getStates()

#5 C:\xampp\htdocs\wikiwiki\includes\specialpage\SpecialPage.php(522): SpecialTimedMediaHandler->execute(NULL)

#6 C:\xampp\htdocs\wikiwiki\includes\specialpage\SpecialPageFactory.php(568): SpecialPage->run(NULL)

#7 C:\xampp\htdocs\wikiwiki\includes\MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)

#8 C:\xampp\htdocs\wikiwiki\includes\MediaWiki.php(861): MediaWiki->performRequest()

#9 C:\xampp\htdocs\wikiwiki\includes\MediaWiki.php(524): MediaWiki->main()

#10 C:\xampp\htdocs\wikiwiki\index.php(42): MediaWiki->run()

#11 {main}

Jdforrester (WMF) (talkcontribs)

Are you running on a postgres DB? TMH has only ever supported mysql (though I think PG is probably supportable now we have the infrastructure for it). You could try running the database creation file directly and seeing if that works? Sorry!

186.116.10.62 (talkcontribs)

No, I'm running on MySQL. But I've created the table directly and It worked :D

Thank you :*

186.116.10.62 (talkcontribs)

Excuse me, do you have the sql from the tables of OAuth extension?, I have the same problem :(

Jdforrester (WMF) (talkcontribs)

Yup! In general, you can go from the repo to the extension registration file (in this case, as almost always, extension.json), find the LoadExtensionSchemaUpdates hook registration, determine the relevant hooks file (in this case, MWOAuthUpdater.hooks.php), and find there where the SQL files are stored and in what circumstances they are used.

For that extension's case, addExtensionTable is only called once, to create the oauth_registered_consumer table, using OAuth.sql; there's a version for MySQL/MariaDB and another for sqlite.

You can also see that the table has been updated three times over the years, to add the oarc_callback_is_prefix, oarc_developer_agreement, and oarc_owner_only columns, but they are all already part of the main SQL file so you shouldn't need to do anything extra.

Hope this helps!

181.55.114.245 (talkcontribs)

Thank you very much!

still Call to undefined method ForeignDBRepo::fetchImageQuery()

3
DonPaolo (talkcontribs)

I have a family of wikimedia sites, it.mymedia.org, fr.mymedia.org, ..., commons.mymedia.org. All the media are uploaded to commons.mymedia.org through definition of $wgSharedUploadPath/Directory/etc. Everything works fine, except this extension. Trying to include an ogg file (which will be fetched from commons.mymedia.org) I get:

[W87pHX8AAAEAAHuSexIAAAAB] /w/index.php?title=Giovanni_Battista_Candotti&action=submit Error from line 559 of /var/wwwc/cathopedia.org/w-1.31/extensions-unmodified/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php: Call to undefined method ForeignDBRepo::fetchImageQuery()

Backtrace:

  1. 0 /var/wwwc/cathopedia.org/w-1.31/extensions-unmodified/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php(519): WebVideoTranscode::getRemoteSources(ForeignDBFile, array)
  2. 1 /var/wwwc/cathopedia.org/w-1.31/extensions-unmodified/TimedMediaHandler/TimedMediaTransformOutput.php(520): WebVideoTranscode::getSources(ForeignDBFile)
  3. 2 /var/wwwc/cathopedia.org/w-1.31/extensions-unmodified/TimedMediaHandler/TimedMediaTransformOutput.php(304): TimedMediaTransformOutput->getMediaSources()
  4. 3 /var/wwwc/cathopedia.org/w-1.31/extensions-unmodified/TimedMediaHandler/TimedMediaTransformOutput.php(144): TimedMediaTransformOutput->getHtmlMediaTagOutput()
  5. 4 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/Linker.php(452): TimedMediaTransformOutput->toHtml(array)
  6. 5 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/parser/Parser.php(5370): Linker::makeImageLink(Parser, Title, ForeignDBFile, array, array, boolean, boolean, integer)
  7. 6 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/parser/Parser.php(2344): Parser->makeImage(Title, array, LinkHolderArray)
  8. 7 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/parser/Parser.php(2091): Parser->replaceInternalLinks2(string)
  9. 8 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/parser/Parser.php(1318): Parser->replaceInternalLinks(string)
  10. 9 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/parser/Parser.php(443): Parser->internalParse(string)
  11. 10 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/content/WikitextContent.php(323): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
  12. 11 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/content/AbstractContent.php(516): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
  13. 12 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/page/WikiPage.php(2129): AbstractContent->getParserOutput(Title, NULL, ParserOptions)
  14. 13 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/page/WikiPage.php(1655): WikiPage->prepareContentForEdit(WikitextContent, NULL, User, string, boolean)
  15. 14 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/EditPage.php(2214): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User, string, array, integer)
  16. 15 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/EditPage.php(1506): EditPage->internalAttemptSave(array, boolean)
  17. 16 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/EditPage.php(652): EditPage->attemptSave(array)
  18. 17 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/actions/EditAction.php(60): EditPage->edit()
  19. 18 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/actions/SubmitAction.php(38): EditAction->show()
  20. 19 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/MediaWiki.php(500): SubmitAction->show()
  21. 20 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
  22. 21 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/MediaWiki.php(861): MediaWiki->performRequest()
  23. 22 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/MediaWiki.php(524): MediaWiki->main()
  24. 23 /var/wwwc/cathopedia.org/mediawiki-1.31.1/index.php(42): MediaWiki->run()
  25. 24 {main}

However, I don't use any foreign repository... Why am I getting this error?

Ciencia Al Poder (talkcontribs)

If you use a shared upload, you're implicitly using a foreign file repo. Unfortunately, it's a know bug: phabricator:T63986

Zoglun (talkcontribs)

I got same bug too.

Reply to "still Call to undefined method ForeignDBRepo::fetchImageQuery()"