Extension talk:EmbedVideo

Jump to navigation Jump to search

About this board

Error message regarding AudioTransformOutput.php

1
Maf654321 (talkcontribs)

On MediaWiki 1.35.2, I have error reporting on, and on every page that contains an embedded audio clip, there is an error message reading as such:

Notice: Undefined variable: class in /var/www/html/extensions/EmbedVideo/classes/media/AudioTransformOutput.php on line 102

Looking online, quite a few other wikis with EmbedAudio seem to be having error messages (if they have left the error reporting on), though, as with mine, functionality seems intact. Any ideas as to what's going on?

Reply to "Error message regarding AudioTransformOutput.php"
Josua Koenig (talkcontribs)

Could it be that this extension to 1.36 is not yet running? I always have the following error:

Deprecated:  Premature access to service container [Called from EmbedVideoHooks::onExtension in /var/www/html/extensions/EmbedVideo/EmbedVideo.hooks.php at line 77] in /var/www/html/includes/debug/MWDebug.php on line 376

Deprecated:  Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /var/www/html/includes/MediaWikiServices.php at line 252] in /var/www/html/includes/debug/MWDebug.php on line 376

Deprecated:  Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/includes/ServiceWiring.php at line 535] in /var/www/html/includes/debug/MWDebug.php on line 376

Deprecated:  Premature access to service 'ConfigFactory' [Called from EmbedVideoHooks::onExtension in /var/www/html/extensions/EmbedVideo/EmbedVideo.hooks.php at line 77] in /var/www/html/includes/debug/MWDebug.php on line 376

Deprecated:  Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/includes/ServiceWiring.php at line 277] in /var/www/html/includes/debug/MWDebug.php on line 376
Dinoguy1000 (talkcontribs)

Honestly, these days I think I would recommend using Extension:Widgets instead of this extension, unless you really need some functionality that it has but that Ext:Widgets can't replicate.

Reply to "Compatibility 1.36?"

Old YouTube Tag not working

8
2001:16B8:487E:D200:FF16:320E:101C:1F93 (talkcontribs)

So according to the description, using "<youtube>..." should also work, but it doesn't anymore. Now stuck with thousands of inactive embeds. Do I have to manually enable that somewhere?

2001:16B8:48C1:8800:C005:5352:251B:77D9 (talkcontribs)

opened an issue in gitlab for it, but doesnt seem to be very active there either

CayceP (talkcontribs)

@OP: You sure your extension isn't broken/outdated or it's an issue with YT video you try to embed? I use EmbedVideo on a 1.35.x MediaWiki with the 1.35 master extension files currently and the <youtube width=450px></youtube> embed code still work for me.

2001:16B8:485B:2A00:4673:37D2:282A:743 (talkcontribs)

it's the latest mediawiki with the latest version of the extension... not sure what to check to narrow down the problem...

CayceP (talkcontribs)

Do you happen to use any other extension that uses a <youtube> hook?

2001:16B8:487B:D100:612C:B4F1:EB96:841C (talkcontribs)

no

Haseloffjr (talkcontribs)

Mine went funky as well and can be viewed at www.liberty.wiki . Getting this error:


Deprecated: EmbedVideo's extension.json or skin.json does not have manifest_version, this is deprecated since MediaWiki 1.29 in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service container [Called from ConfigFactory::getDefaultInstance in /home2/liberwf9/public_html/includes/config/ConfigFactory.php at line 52] in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /home2/liberwf9/public_html/includes/MediaWikiServices.php at line 252] in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /home2/liberwf9/public_html/includes/ServiceWiring.php at line 535] in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'ConfigFactory' [Called from ConfigFactory::getDefaultInstance in /home2/liberwf9/public_html/includes/config/ConfigFactory.php at line 52] in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /home2/liberwf9/public_html/includes/ServiceWiring.php at line 277] in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

2001:16B8:483A:8900:43A4:1BFC:B49:B211 (talkcontribs)

what bugs me also is that their gitlab thing is dead as disco, i mean hardly any issues get answers at all... and that even though it has evolved into a quasi monopoly extension for this use case

Reply to "Old YouTube Tag not working"

Please support privacy enhanced embedding for YouTube Videos as well for GDPR compliance

2
CayceP (talkcontribs)

Due to GDPR, websites are required to use privacy enhanced embedding for YouTube videos. The extension currently doesn't seem able to parse the privacy enhanced urls which are hosted on a different urls (youtube-nocookie dot com/embed/[YouTubeVideoID]) instead https://www.youtube.com/watch?v=[YouTubeVideoID].

This is what the iframe embed code from YouTube looks like <iframe width="560" height="315" src="https://www.youtube-nocookie dot com/embed/[YouTubeVideoID]" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

(Please note: due to spam filter here I had to change .com to dot com in the URls)

Octfx (talkcontribs)
Reply to "Please support privacy enhanced embedding for YouTube Videos as well for GDPR compliance"
Martynov Maxim (talkcontribs)
Reply to "Youtube player lazy load."
Nicole Sharp (talkcontribs)

EmbedVideo only plays audio (no video) for OGV files from Instant Commons. Nicole Sharp (talk) 05:18, 27 February 2021 (UTC)

[[file:Apollo 11 Landing - first steps on the moon.ogv|frame|left|Video: [[wikipedia:Apollo 11|Apollo 11]].]]
[[file:The Eagle Has Landed, The Flight of Apollo 11, 1969.webm|frame|left|Video: Apollo 11.]]
Reply to "OGV from Instant Commons"

How to add loop and autoplay commands to locally uploaded videos

1
77.58.82.123 (talkcontribs)

I wold like to add commands like autoplay and loop to a video that is locally uploaded

Reply to "How to add loop and autoplay commands to locally uploaded videos"

mp4 upload fails when EmbedVideo extension enabled

2
Relayman357 (talkcontribs)

I just installed the EmbedVideo extension on my personal wiki (1.35.1) and it works fine with .mp4 files that had previously been uploaded to my wiki. After enabling the extension I tried to upload a new .mp4 to the wiki and I get the following internal error message. I can upload other file types (e.g. *.pdf) fine.

[8fe29de11236b2126af20734] /mediawiki-1.35.1/index.php/Special:Upload Error from line 119 of /var/www/html/mediawiki-1.35.1/extensions/EmbedVideo/classes/media/FFProbe.php: Call to undefined method FSFile::getLocalRefPath()
Backtrace:
#0 /var/www/html/mediawiki-1.35.1/extensions/EmbedVideo/classes/media/FFProbe.php(136): EmbedVideo\FFProbe->getFilePath()
#1 /var/www/html/mediawiki-1.35.1/extensions/EmbedVideo/classes/media/FFProbe.php(48): EmbedVideo\FFProbe->invokeFFProbe()
#2 /var/www/html/mediawiki-1.35.1/extensions/EmbedVideo/classes/media/FFProbe.php(68): EmbedVideo\FFProbe->getMetaData()
#3 /var/www/html/mediawiki-1.35.1/extensions/EmbedVideo/classes/media/VideoHandler.php(103): EmbedVideo\FFProbe->getStream()
#4 /var/www/html/mediawiki-1.35.1/includes/utils/MWFileProps.php(89): EmbedVideo\VideoHandler->getImageSize()
#5 /var/www/html/mediawiki-1.35.1/includes/upload/UploadBase.php(547): MWFileProps->getPropsFromPath()
#6 /var/www/html/mediawiki-1.35.1/includes/upload/UploadBase.php(482): UploadBase->verifyPartialFile()
#7 /var/www/html/mediawiki-1.35.1/includes/upload/UploadBase.php(390): UploadBase->verifyFile()
#8 /var/www/html/mediawiki-1.35.1/includes/upload/UploadFromFile.php(95): UploadBase->verifyUpload()
#9 /var/www/html/mediawiki-1.35.1/includes/specials/SpecialUpload.php(516): UploadFromFile->verifyUpload()
#10 /var/www/html/mediawiki-1.35.1/includes/specials/SpecialUpload.php(214): SpecialUpload->processUpload()
#11 /var/www/html/mediawiki-1.35.1/includes/specialpage/SpecialPage.php(600): SpecialUpload->execute()
#12 /var/www/html/mediawiki-1.35.1/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run()
#13 /var/www/html/mediawiki-1.35.1/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#14 /var/www/html/mediawiki-1.35.1/includes/MediaWiki.php(940): MediaWiki->performRequest()
#15 /var/www/html/mediawiki-1.35.1/includes/MediaWiki.php(543): MediaWiki->main()
#16 /var/www/html/mediawiki-1.35.1/index.php(53): MediaWiki->run()
#17 /var/www/html/mediawiki-1.35.1/index.php(46): wfIndexMain()
#18 {main}

Below is what I have in my LocalSettings.php. If I comment out the wfLoadExtension( 'EmbedVideo' ); line then I am able to upload .mp4 files no problem. So, as a work around that is what i'm doing. After uploading the files I then uncomment that line and the EmbedVideo extension works fine.

wfLoadExtension( 'EmbedVideo' );
$wgEmbedVideoEnableVideoHandler = true;
$wgEmbedVideoEnableAudioHandler = true;
$wgEmbedVideoAddFileExtensions = false;

Is this a known bug?

I'm running MediaWiki 1.35.1 on Ubuntu Mate 20.10 (Groovy Gorilla). PHP 7.4.9, MariaDB 10.3.25. The EmbedVideo extension is version 2.8.0.

Bozhob (talkcontribs)

After updating EmbedVideo to v2.9.0 I received the same error: Error from line 119 of extensions/EmbedVideo/classes/media/FFProbe.php: Call to undefined method FSFile::getLocalRefPath() I was not able to solve the problem and had to downgrade to version 2.8.0

Reply to "mp4 upload fails when EmbedVideo extension enabled"
Summary by Dinoguy1000

Video was replaced.

Dinoguy1000 (talkcontribs)

@Pppery: could we use a video that isn't religious for the example image and code samples throughout the page? WMF properties have enough biases as it is, without adding a religious bias as well.

Pppery (talkcontribs)
Dinoguy1000 (talkcontribs)

Having a boring-looking video might be best anyways, since it'd discourage people from focusing on the video choice much.

Pppery (talkcontribs)

It seems a little far-fetched to me that someone would make a claim of bias that the documentation for a video-embedding extension shows a video that happens to be religious.

Nevertheless, I would be willing to re-make this screenshot if someone else provides me with a link to a suitable creative-commons-licensed video on YouTube -- I don't feel like searching for a video that no one could possibly claim is objectionable myself.

PseudoSkull (talkcontribs)

@Pppery: This was an eye-opener to me too. I knew immediately from looking at it that this was footage of Stephen Anderson, the same radical Baptist preacher who has publicly exclaimed that he wants the government to execute homosexuals! I'm not accusing you of religious bias here, since you picked the video at random and you may not even have been aware of who Anderson is and his horrible beliefs, but we really shouldn't be including anything religious or political, especially something from a blatantly bigoted preacher, in technical documentation that has nothing to do with religion or politics. I ask that you please remove the image and find a different video example to use here. Even just an image depicting a man like this is highly inappropriate and can be taken both as highly offensive and that MediaWiki has a fundamentalist Baptist bias.

Pppery (talkcontribs)

I repeat my offer from earlier. I'll remake the screenshot if somebody else provides a source creative-commons-licensed video.

PseudoSkull (talkcontribs)

Since you asked for a video example, I found this one in just a few minutes: from the Wikimedia Foundation's YouTube channel, look up "Knowledge Belongs to All of Us". This kind of video seems appropriate for technical documentation as an inoffensive and non-political example. (I tried to send you a video link here but the stupid filter disallowed it. It should know better; I've been active for years on several WMF projects through this account!)

Pppery (talkcontribs)

OK, Yes Done.

Emikulic (talkcontribs)

Pppery, eEveryone has a thing so asking someone to post a suitable video link vs just comment on yours is a good idea. That one would not bother me at all as I simply would not pay attention to it.

Dinoguy1000 (talkcontribs)

Admittedly I might be sensitized to it because I was raised in a Baptist church. That being said, I don't think we should say "it's just a hypothetical so there's no reason to bother", especially when we have so many potential alternatives. I'll probably poke around and see if I can find something else after a bit.

NemesisAT (talkcontribs)

Embedded videos don't appear nicely in the VisualEditor, is it possible for this to be fixed, or to add some wikitext surrounding the video that'll hide it when the VisualEditor is opened?

Reply to "VisualEditor"