Extension talk:TimedMediaHandler

Jump to navigation Jump to search

About this board

Extension:MwEmbedSupport

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

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

Please help me disable this Kaltura player

1
HausaDictionary (talkcontribs)

Example page of where the problem occurs: http://hausadictionary.com/index.php?title=resurrection&mobileaction=toggle_view_desktop

Every time I have more than one audio on a page, one of them disappears and I see a badly embedded Kaltura player. I tried removing either of the following from LocalHost.php and get errors or the media embed won't work:

wfLoadExtension( 'MwEmbedSupport' );

require_once "$IP/extensions/TimedMediaHandler/TimedMediaHandler.php";

Thanks in advance!

Reply to "Please help me disable this Kaltura player"

TimedMediaHandler for MediaWiki 1.31

2
Summary by Kghbln

Documentation was adjusted.

Daniel K. Schneider (talkcontribs)

For MW 1.31 (Ubuntu 18 and PHP 7.2) I had to execute a composer update within the extension

cd TimeMediaHandler
composer update

Otherwise it could not find getid3 (sorry I lost the error trace, but if I get this again with my next installation, I'll add it)

Kghbln (talkcontribs)

Probably it will be easier to add something like this to your "composer.local.json" file:

{
	"extra": {
		"merge-plugin": {
			"include": [
				"extensions/TimedMediaHandler/composer.json"
			]
		}
	}
}

Thus you do not have to change to the extension's directory and update with Composer from wiki root. I guess this needs to be documented.

TimedMediaHandler for MediaWiki 1.30

2
StormKyleis (talkcontribs)

Hello,

I'd like to use this extension, but our Wiki runs on MediaWiki 1.30. The Extension page says:

"Note that, although MwEmbedSupport was included in TimedMediaHandler for MediaWiki 1.31 and later, for MediaWiki versions prior to that you will need to download it from the archive page."

But sadly, the download link on the archive page of MwEmbedSupport is no longer working.

Considering we currently can't upgrade to 1.31, could anybody provide an alternative download link to MwEmbedSupport?

Jdforrester (WMF) (talkcontribs)
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;

Reply to "Error creating thumbnail"