Extension talk:TimedMediaHandler/Flow export
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Where to find mwEmbedSupport extension
I'm trying to install your extension but i'm stuck at first step. How/where cna i find the mwembedsupport extension that needs to be installed. Furthermore, the firefogg files are available for all major platforms. So once i download the one from the source, where do i place it in relation to my server, within the extensions or anywhere in my server. Similarly it also says I need a copy of ffmpeg2theor in my server and I'm not clear for that too. I'm guessing the suggested configuration lines is for comman line instructions for the settings and do we run that from root or from specific folder. Obviously I'm a bit of a starter so my question may sound very simple or studid but I apologize if it comes off like that. I've always had a difficulty of how we can install programs made for linux, windows, mac being 'installed' on my server. Thanks MW1.17, apache server, php 5.3, shared host. User:Wikimanz 15:48, 13 October 2011 (UTC)
- You can get mwEmbedSupport from the same parent directory as TimedMediaHandler:
- http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/MwEmbedSupport/
- You need to setup the paths in the local settings for your encoder binaries see the README for more info
- You may have some challenges running this off of a shared host because it includes transcoding support dependent on shell scripts / cron jobs. Mdale 09:45, 17 October 2011 (UTC)
- Is there any way to get an easier download of MwEmbedSupport rather than downloading all those files and creating the folders manually?
- Alternately, is MwEmbedSupport necessary if I'm not using the transcoding features of TimeMediaHandler? I run a audio-themed Wiki, and I'm looking into updating from the old OggHandler extension to this one, but I don't need any video features. TheAlmightyGuru (talk) 20:20, 9 December 2013 (UTC)
Missing or misplaced files
I'm getting the following error: Failed opening required 'File/Ogg.php' being thrown from extensions/TimedMediaHandler/handlers/OggHandler/OggHandler.php on line 12.
There's a folder called File in the PEAR subfolder, which contains the Ogg.php. However, changing the line of code to that (or copying the File directory and placing it in the OggHandler folder) will then get a new error thrown:
Failed opening required 'PEAR.php' from extensions/TimedMediaHandler/handlers/OggHandler/File/Ogg.php on line 114.
Any ideas?
Thannks. Peter. 85.80.205.112 15:31, 21 January 2012 (UTC)
- If you have installed the php-pear package (or whatever the PHP pear packe is named) and this error still occours, than PHP does not find the
PEAR.php
file from the php-pear package. Make sure that PEAR is found. Check the include_path inphp.ini
- My solution was to add
include_path=".:/usr/share/php5/PEAR/"
to myphp.ini
Andreas P.18:03, 5 January 2015 (UTC)
- Can you provide a detailed, simplified walkthrough on how to get Pear installed and configured properly so the TimedMediaHandler extension functions correctly? I have read a ton of info and instructions, and I am still at a loss on what to do. My media extension refuses to work. All I need to do is get the embed player to appear inside the Template:Listen box. RigganRose (talk) 23:50, 5 June 2015 (UTC)
- Difficult to provide details from your vague “how to get Pear installed and configured properly” (what system, architecture, environment?). I cannot guess what help you exactly need to succeed in installing and configuring. Regarding Pear installation generally:
- just follow the official instructions step by step, documented on http://pear.php.net
- if you have a software manager that provides Pear as well then you can try to use a package instead that is offered by your distribution. But again: follow official instruction. I'm confident, they are out there ;-) Andreas P.
08:37, 6 June 2015 (UTC)
- |-
- ! Version Info
- |-
- | MediaWiki
- | 1.24.1
- |-
- | PHP
- | 5.4.37 (cgi-fcgi)
- |-
- | MySQL
- | 5.1.56-log
- |-
- | Lua
- | 5.1.5
- |}
- (Windows)
- I will kindly state it again; I have read a ton of info and instructions, and I am still at a loss on what to do. I have tried to follow the instructions, with your added emphasis on follow, at the link you provided. I've also spent hours trying to sort out the instructions on the TimedMediaHandler page. Have tried (and tried). There are too many gaps of unexplained details, otherwise I would've never resorted to spending three days asking questions on forums and support pages where the common reply is typically: follow the instructions.
- I can understand your reluctance to provide a walkthrough, as Pear seems to be quite the headache in common consensus.
- Here's another question I've tried asking people but have yet to receive a response:
- Is there another media extension that would work? All I want to do is embed a short audio clip in the Listen box. That's it. All the severe gas I'm getting in dealing with this Pear nightmare seems a bit overkill for what I need. I have tried other extensions and have gotten them to work (easily), but so far, have not figured out a way to actually get the player embedded inside the listen box which is the ultimate goal. RigganRose (talk) 21:46, 6 June 2015 (UTC)
- Hi, as you stated you have read a lot, OK we now know twice, but that‘s not your real issue. You want PEAR to be installed on Windows then use or check out for a fitting subject thread, be precise and detailed in providing error messages, warnings etc. so that people can help you most. We want to help you on this—that‘s the purpose of these forums—but telling the issue just vague is not effective.
- I don't know how to install PEAR on Windows—so I can't help you here. And this very issue is probably misplaced here in the thread “Missing or misplaced files”. You know what I mean. You haven’t got to the step that PEAR is already installed and working, you know. There is a German documentation page to install PEAR on Windows 7 and PHP 5.4 but it also states that it is difficult and is a complicated installation by hand :-/. To understand those pages you can try to use machine translation services that translate URLs.
- The other issue is configuring Extension:TimedMediaHandler but you are not there yet. If you get thee same error messages as above in this thread then my solution might bring you closer to the solution, if you have other error messages that are totally not related to this thread than check it out or open a new thread.
- Is there another media extension that would work?
- try the categories on the extension page (e.g. Category:Media handling extensions) or read recommendations on MediaWiki.
- That‘s (almost) all I can help you with. Andreas P.
09:09, 8 June 2015 (UTC)
- Yes, I stated it twice. I typically do this when I initially state I've read the instructions but am confused, and someone replies and tells me to follow the instructions. In that instance I feel it should be asserted again, and seemingly effectively so, for despite your attempt to paint the gesture as frivolous, this time you've responded with an actual link to info I've not yet seen, and I thank you. That's easily further than I've gotten in days of rewriting/rephrasing the issue on various outlets.
- Thanks. RigganRose (talk) 00:37, 10 June 2015 (UTC)
- Hi, as you stated you have read a lot, OK we now know twice, but that‘s not your real issue. You want PEAR to be installed on Windows then use or check out for a fitting subject thread, be precise and detailed in providing error messages, warnings etc. so that people can help you most. We want to help you on this—that‘s the purpose of these forums—but telling the issue just vague is not effective.
Seek bar
Hi all, thank you for hacking such a good extension.
Now, installed this extension on Wikipedias, some problems occurred, so I need your help. See en:template:listen, the seek bars are not shown, because the seek bar is not shown when the width is more than 180 px and less than 240 px (see en:template talk:listen). It may be more important to show seek bar than the time. Could you change the setting to show the seek bar only not the time when the width is less than 240 px? Akaniji (talk) 08:54, 11 November 2012 (UTC)
How am I supposed to create the table mywikidb.mywiki_transcode in the first place?
Hello!
MediaWiki 1.20.0 TimedMediaHandler (Version 0.3)
I get this error: Une erreur de syntaxe de la requête dans la base de données est survenue. Ceci peut indiquer un bogue dans le logiciel. La dernière requête traitée par la base de données était :
(Requête SQL cachée)
depuis la fonction « WebVideoTranscode::getTranscodeState ». La base de données a renvoyé l’erreur « 1146 : Table 'wikimassiliadb.massilia_transcode' doesn't exist (localhost) ».
I've read your doc many times and nowhere is said how we create the new tables during install...
Help appreciated. Google didn't work at all.
j. Arkanoid2 (talk) 05:46, 28 November 2012 (UTC)
- Same problem, same question.
- With this configuration :
- MediaWiki 1.20.2
- MwEmbedSupport (Version 0.2)
- TimedMediaHandler (Version 0.3)
- Thanks for any help ;-) Dieudo (talk) 22:19, 12 February 2013 (UTC)
- A temporary solution to this problem, is to set this in the file LocalSettings.php :
$wgEnableTranscode = false;
Dieudo (talk) 10:01, 13 February 2013 (UTC)- Thank you to user:Parent5446 for the solution given with this line :
This extension also requires schema changes, so run update.php after installing.
- ; ) Dieudo (talk) 21:17, 3 March 2013 (UTC)
Fatal error: Call to undefined method Message::numParams()
Hello,
I just installed the extension TimedmediaHandler on my wiki. When I try to disaply a ogg file I receive this error: Fatal error: Call to undefined method Message::numParams() in C:\inetpub\wwwroot\Mediawiki\extensions\TimedMediaHandler\handlers\OggHandler\OggHandler.php on line 246
Here my installation: Windows server 2008 IIS 7 MediaWiki 1.17.0 PHP 5.3.5 (cgi-fcgi) MySQL 5.5.9
PEAR installation PACKAGE VERSION STATE Archive_Tar 1.3.3 stable Console_Getopt 1.2.3 stable PEAR 1.9.0 stable Structures_Graph 1.0.2 stable XML_Util 1.2.1 stable
TimedMediaHandler-master-84fa501 Any idea ?
Thanks for your help Roberto IT90061 (talk) 15:05, 2 January 2013 (UTC)
How to enable transcoding to H.264 ?
Default enabled transcodes :
$wgEnabledTranscodeSet = array( // A high end web streamable ogg video WebVideoTranscode::ENC_OGV_480P, // A web low bandwidth streamable WebM video WebVideoTranscode::ENC_WEBM_360P, // A web streamable WebM video WebVideoTranscode::ENC_WEBM_480P, // A high quality WebM stream WebVideoTranscode::ENC_WEBM_720P,
How do we specify enabling transcoding to H.264 in order to have this format available as seen in Extension:TimedMediaHandler/Platform testing ? Dieudo (talk) 22:10, 3 March 2013 (UTC)
- The beginning of a solution in the file TimedMediaHandler.php :
- Extract :
/** * Default enabled transcodes * * -If set to empty array, no derivatives will be created * -Derivative keys encode settings are defined in WebVideoTranscode.php * * -These transcodes are *in addition to* the source file. * -Only derivatives with smaller width than the source asset size will be created * -Regardless of source size at least one WebM and Ogg source will be created from the $wgEnabledTranscodeSet * -Derivative jobs are added to the MediaWiki JobQueue the first time the asset is displayed * -Derivative should be listed min to max */ $wgEnabledTranscodeSet = array( // Small WebM version for default small embed size thumbs WebVideoTranscode::ENC_WEBM_360P, // Ogg fallback for IE/cortado WebVideoTranscode::ENC_OGV_480P, // A web streamable WebM video WebVideoTranscode::ENC_WEBM_480P, // A high quality WebM stream WebVideoTranscode::ENC_WEBM_720P, // A least common denominator h.264 stream; first gen iPhone, iPods, early android etc. WebVideoTranscode::ENC_H264_320P, // A mid range h.264 stream; mid range phones and low end tables WebVideoTranscode::ENC_H264_480P, /* // An high quality HD stream; higher end phones, tablets, smart tvs WebVideoTranscode::ENC_H264_720P, */ ); $wgEnabledAudioTranscodeSet = array( WebVideoTranscode::ENC_OGG_VORBIS, //opus support must be available in avconv //WebVideoTranscode::ENC_OGG_OPUS, //avconv needs libmp3lame support //WebVideoTranscode::ENC_MP3, //avconv needs libvo_aacenc support WebVideoTranscode::ENC_AAC, ); // If mp4 source assets can be ingested: $wgTmhEnableMp4Uploads = true;
- But even set as above the h.264 and transcoded, this format remains not visible in the choices offered.
- Below a copy of what it looks like :
- Any idea where is the bug ? Dieudo (talk) 10:51, 8 March 2013 (UTC)
- Once you change any transcode setting you should clear out all your transcodes. ( see maintenance/cleanupTranscodes.php )
- Also you should check that the commands being run will work to generate your mp4 files. i.e run the maintenance/WebVideoJobRunner.php job on the command line and observer the ffmpeg commands being called and confirm they are are successfully being executed. Mdale (talk) 19:44, 8 March 2013 (UTC)
- Thank you Mdale for theses informations.
- I'll try them.
- But even before that isn't there another problem shown by the fact that when I upload an mp4 file it's not readable by TMH : it only gives this message :
For best viewing, using an HTML 5 broswer is recommanded.
- even though it is viewed with Firefox.
- And I confirm the commands were successfully being executed :
2013-03-08 09:34:12 webVideoTranscode Fichier:Patrick_Viveret-Oct_2010.webm transcodeMode=derivative transcodeKey=320p.mp4 STARTING Encoding to codec: h264 Running cmd: '/usr/bin/avconv' -y -i '/var/www/rc/images/Patrick_Viveret-Oct_2010.webm' -threads 1 -vcodec libx264 -profile:v baseline -preset slow -coder 0 -bf 0 -flags2 -wpred-dct8x8 -level 13 -maxrate 768k -bufsize 3M -b '400k' -f mp4 -s 426x320 -ab 40000 -ac '2' -acodec 'libvo_aacenc' /tmp/transcode_320p.mp422999f1774bc-1.mp4 2013-03-08 09:39:15 webVideoTranscode Fichier:Patrick_Viveret-Oct_2010.webm transcodeMode=derivative transcodeKey=320p.mp4 t=302868 good
- Do theses informations help ?
- Would you agree to copy here the different from default settings necessary and sufficient to read mp4 files within TMH ? Dieudo (talk) 23:12, 8 March 2013 (UTC)
- if you click on the direct link in the transcode table to the mp4 can you play that in your browser?
- mp4 might only show up if you dont support any of the other encodings. i.e. in Safari. JanGerber (talk) 17:28, 12 March 2013 (UTC)
- reply to self: looks like h264 support was not working anymore since source elements have a type now, https://gerrit.wikimedia.org/r/#/c/53392/ fixes this. JanGerber (talk) 17:55, 12 March 2013 (UTC)
- Great !
- It works now also on Safari and on iPad : )
- But strangely on Firefox it still doesn't show the mp4 or h.264 in the list of available formats.
- Never mind, the most important is that it works in at least one format (actually webm and ogv).
- THANK YOU ! Dieudo (talk) 11:44, 13 March 2013 (UTC)
- THANK YOU!
- Wish I'd found this hours ago, but I guess I'm more familiar with the extension code than I would have been otherwise, LOL. FWIW, this change is still not rolled into the latest snapshot (currently): version 729afbe of the TimedMediaHandler extension for MediaWiki REL1_21 Jack Stenner (talk) 12:49, 30 November 2013 (UTC)
- reply to self: looks like h264 support was not working anymore since source elements have a type now, https://gerrit.wikimedia.org/r/#/c/53392/ fixes this. JanGerber (talk) 17:55, 12 March 2013 (UTC)
- Looks like this recipe is outdated. Do you know, by any chance, how to force transcoding of existing files to the formats newly added to $wgEnabledTranscodeSet? As of now, Transcoding Status shows only the formats that were set up when the file in question was uploaded. cleanupTranscodes.php only removes transcoded files that are no longer needed. Alex Mashin (talk) 16:39, 30 September 2014 (UTC)
Bigger subtitles when switching to fullscreen
How to have bigger subtitles when switching to fullscreen ?
MP3 patents
What's the source for MP3 patents expiring in 2012? A Big List of MP3 Patents (and supposed expiration dates) has some lasting to 2017. It is possible A Big List is wrong. Nevertheless, a source for 2012 would be useful. Superm401 - Talk 15:33, 16 June 2013 (UTC)
Bug: Causes /tmp directory to fill up
After installing this extension on Zelda Wiki, I noticed that our /tmp directory was filling up. I didn't quite make the connection that it could be this extension, however, until one of our affiliate sites had the same problem right after installing it. This extension seems to have messed with the image conversion process somehow, to the point where /tmp will be filled with files like magick-3904813098028394298347289.png or something. This is a pretty nasty bug that needs fixing. To anyone encountering this problem, a temporary fix is to make a cron. For linux, that would be
rm -f /tmp/magick*
96.254.175.113 23:57, 5 October 2013 (UTC)OggHandler error
I am getting the error:
OggHandler requires oggThumb version $1 or later.
I have the latest version of oggvideotools from Debian, it would seem that the latest version available from SF is 0.8a. Any ideas? 129.215.210.114 10:19, 15 October 2013 (UTC)
Popup behaviour
When playing a video, it causes it to pop up and cover up the entire screen. Unless you're actually wanting to watch something in fullscreen mode, this is incredibly jarring, especially with small videos. What is the reason for this behaviour? -— Isarra ༆ 18:15, 30 October 2013 (UTC)
Support for FLAC
I have this extension enabled and working for Ogg files but I can't get it to work for FLAC files. As per the documentation, I added
$wgMediaAudioTypes = array( 'Vorbis', 'Speex', 'FLAC' );
to my LocalSettings.php file and ran update.php. Still, no FLAC. To double check that what I'm trying to accomplish is possible, I embedded a FLAC file in a sandbox article on WP and it worked as expected. I'm running the same version of the extension as WP and version 1.21.3 of MW. So, I realized that I must not have something enabled/configured correctly but now I'm at a loss for what to do next. Here's an example of an attempt to embed a FLAC file on my wiki: http://preservapedia.org/Bruce_Sharky_discusses_the_use_of_wikis_in_graduate_level_courseworkAny advice would be appreciated. Fitzed (talk) 22:25, 17 December 2013 (UTC)
SQL is MySQL specific
transcode_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT
in the file TimedMediaHandler.sql is not standard SQL. I use postgres and had to change it totranscode_id SERIAL PRIMARY KEY
.Further,
transcode_error longtext NOT NULL
must be changed totranscode_error TEXT NOT NULL
for postgres.It would be nice if this extension could be made to also support postgres, as this only needs the above changes. Thanks. 93.220.206.104 16:37, 21 December 2013 (UTC)
- Hi yes the sql is for MySQL. Postgres is currently not supported but may be in the future. 151.227.77.167 (talk) 23:58, 9 October 2015 (UTC)
No error, but now player.
I've uploaded both the TimedMediaHandler and mwEmbedSupport extensions and added them to my LocalSettings.php file. I then ran update.php and both extensions are showing up in my Version page as being installed with the correct versions. However, when I try to place an ogg file in a page, I don't get a player, nor do I get a player in the thumbnail section of the ogg's File page. I'm trying to debug this, but no PHP errors are being generated on my server so I don't know where to go. Any thoughts? TheAlmightyGuru (talk) 19:12, 23 January 2014 (UTC)
- Oh yes, I'm running MediaWiki version 1.22.1, TimedMediaHandler version 0.3, and MwEmbedSupport version 0.2. TheAlmightyGuru (talk) 19:15, 23 January 2014 (UTC)
Subtitles
I installed this extension on my wiki, uploaded an .ogg file and created corresponding TimedText file with subtitles. The media players on the file page in File: namespace and on the subtitles page in TimedText: do display subtitles. However when I embed the player in the main namespace with File:….ogg, no subtitles button appear on the player. Is it how it should be? Alex Mashin (talk) 12:22, 2 February 2014 (UTC)
- no. subtitles should work on all pages. (i have no idea whats wrong though. if your wiki is public, do you have a link?) Bawolff (talk) 21:07, 3 February 2014 (UTC)
- They work now. Looks like the job had not been run. Alex Mashin (talk) 05:10, 8 February 2014 (UTC)
Fatal error: Call to undefined method ForeignDBRepo::fetchImageQuery
Dear Sir,
0) Background
I develop WP-MIRROR which is a utility for building a set of mirrors of WMF wikis. Home: <http://http://www.nongnu.org/wp-mirror/>. For WP-MIRROR 0.7, my objective is this: A wiki page rendered by the mirror site, should look the same as that page rendered by the WMF site. Version 0.6 fell short in this regard because: a) it depends upon the DEB package for MediaWiki 1.19 LTS which is not able to render many features that were introduced in 2013 (e.g. wikidata, scribunto, ...); and b) it depends upon several DEB packages for extensions compatible with 1.19 LTS which do not include many extensions currently used by WMF (e.g. math w/ mathjax, score, timeline, timedmediahandler, etc.)
In support of this objective, I am preparing a DEB package of MediaWiki 1.23alpha, and a DEB package of most of the extensions listed on <http://en.wikipedia.org/wiki/Special:Version>. So far I have packaged a couple dozen extensions with good results, but have hit a snag with TimedMediaHandler.
1) Mirror
1.1) WP-MIRROR builds a mirror of <http://simple.wikipedia.org/> out of the box using dump files from <http://ftpmirror.your.org>.
1.2) For MediaWiki, I am using the latest `git pull' from the GIT repository <https://gerrit.wikimedia.org/r/p/mediawiki/core.git>. For MediaWiki extensions, I am using the latest `git pull' from the GIT repositories under <https://gerrit.wikimedia.org/r/p/mediawiki/extensions/>. MwEmbedSupport and TimedMediaHandler are installed and configured as per the README.
1.3) As Debian dependencies, I have installed: cortado 0.6.0-1, ffmpeg 6:0.8.10-1, fmpeg2theora 0.27-2, imagemagick 8:6.7.7.10-5+deb7u2, libav-tools 6:0.8.10-1, libvpx1 1.1.0-1, oggvideotools 0.8a-1, php5-cli 5.4.4-14+deb7u7, php-getid3 1.9.3-1, php-pear 5.4.4-14+deb7u7.
1.4) `LocalSettings.php' contains:
... require_once( "$IP/extensions/MwEmbedSupport/MwEmbedSupport.php" ); require_once( "$IP/extensions/TimedMediaHandler/TimedMediaHandler.php" ); ini_set( 'include_path', ".:$IP:$IP/includes:$IP/languages:/usr/share/php" . PATH_SEPARATOR . ini_get( 'include_path' ) ); $wgVideoPlayerSkin = 'kskin'; $wgEnableTranscode = true; $wgEnableNiceBackgroundTranscodeJobs = true; $wgFFmpeg2theoraLocation= '/usr/bin/ffmpeg2theora'; $wgFFmpegLocation = '/usr/bin/avconv'; $wgOggThumbLocation = '/usr/bin/oggThumb'; ...
2) Testing
Special pages all work: <http://simple.wikipedia.site/wiki/Special:Version>, <http://simple.wikipedia.site/wiki/Special:TimedMediaHandler>, <http://simple.wikipedia.site/wiki/Special:FileList>.
Most ordinary pages display properly: <http://simple.wikipedia.site/wiki/Apple>.
3) Errors
Ordinary pages with OGV files render as blank. Two examples:
3.1) Use Firefox to view: <http://simple.wikipedia.site/wiki/Burnout> Error message in `/var/log/apache2/wp-mirror.site-error.log':
[Wed Feb 26 12:17:30 2014] [error] [client ::1] PHP Fatal error: Call to a member function doTransform() on a non-object in /usr/share/wp-mirror-mediawiki/extensions/TimedMediaHandler/TimedMediaThumbnail.php on line 2013.2) Use Firefox to view: <http://simple.wikipedia.site/wiki/Sintel> Error message in `/var/log/apache2/wp-mirror.site-error.log':
[Wed Feb 26 11:04:41 2014] [error] [client ::1] PHP Fatal error: Call to undefined method ForeignDBRepo::fetchImageQuery() in /usr/share/wp-mirror-mediawiki/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php on line 396Under `/tmp/', can be found many files like `/tmp/transform-aaaabbbbcccc-1.jpg', where the string `aaaabbbbcccc' is composed of hexadecimal characters.
4) Request
Any advise would be appreciated. I am now reading the code but do not yet grasp where the problem is; hence this note.
If this is not the right location to write such a note, please let me know if there is an appropriate mailing list.
Sincerely Yours,
KentHardware: x86x64, 6G DRAM
OS: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1 x86_64 GNU/Linux
Distribution: Debian 7.4 (wheezy), with back-ports
MediaWiki: most recent version (1.23alpha) obtained from GIT repository
Extensions: most recent versions obtained from GIT repository
Wp mirror (talk) 18:24, 26 February 2014 (UTC)- Its a bug in TimedMediaHandler. TimedMediaHandler isn't compatible with ForeignDBRepo based image stores. Try using ForeignDBViaLBRepo instead (They're basically the same, One just uses a $wgLBFactoryConf instead).
- Issue filed as bugzilla:61986 Bawolff (talk) 05:44, 27 February 2014 (UTC)
- Thank you for your advice regarding $wgLBFactorConf. Pages such as <http://simple.wikipedia.site/wiki/Sintel> now render and behave correctly.
- WP-MIRROR 0.7 is released. Please give it a try. See the announcement or the home page if interested.
- Feedback is welcome. Wp mirror (talk) 14:33, 12 April 2014 (UTC)
- @Bawolff Could you explain better your solution? DonPaolo (talk) 20:36, 10 July 2020 (UTC)
- which part? There is documentation at https://www.mediawiki.org/wiki/Manual:$wgLBFactoryConf and https://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos#ForeignDBViaLBRepo_class Bawolff (talk) 23:21, 10 July 2020 (UTC)
When subtitles are on two lines, the second one is not visible. Why ?
When using this extension on a personal server, when subtitles are on two lines, the second one is not visible.
It's not the case on theses pages for example :
- https://commons.wikimedia.org/wiki/TimedText:Eben_Moglen_-_From_the_birth_of_printing_to_industrial_culture;_the_root_of_copyright.ogv.en.srt
- https://commons.wikimedia.org/wiki/TimedText:Eben_Moglen_-_From_the_birth_of_printing_to_industrial_culture;_the_root_of_copyright.ogv.fr.srt
Any idea why ?
My configuration is :
- MediaWiki 1.22.4
- PHP 5.3.10-1ubuntu3.10 (apache2handler)
- MySQL 5.5.35-0ubuntu0.12.04.2
How to enable MP3 support?
If not be able to support then when will mp3 support added? Zoglun (talk) 04:02, 30 May 2014 (UTC)
- That format is not a priority for this extension (The primary goal is to support a/v formats used by Wikimedia. For political reasons its very unlikely Wikimedia will be using this format)
- If you put the following at the bottom of LocalSettings.php, it might work, no guarantees:
$wgMediaHandlers['audio/mpeg'] = 'Mp4Handler'; $wgFileExtensions[] = 'mp3';
- ------
- You may want to consider something like mw:Extension:Mp3Handler Bawolff (talk) 18:38, 17 June 2014 (UTC)
- Well, in fact setting wgMediaHandlers & wgFileExtensions like you wrote in reply generate lots of strange buggy problem. Such as existing mp3 file become not exist on both File: page and [[File: ]] link. (at least in MW 1.27.1)
- It work awhile in test environment but generate numerous problem in production. So this work around is not recommend for mw users.
- Here is the error message:
- MediaHandler::getHandler: no handler found for audio/mp3.
- Linker::makeImageLink: File:Aa5ba7ca70265445_0..mp3 does not allow inline display
- LocalFile::upgradeRow: file does not exist, aborting
- ForeignAPIRepo: HTTP GET: https://commons.wikimedia.org/w/api.php?titles=File%3AKancollebgmB12.mp3&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=zh
- File::transform transformation deferred.
- File::transform transformation deferred.
- File::transform transformation deferred. Deletedaccount4567435 (talk) 11:36, 6 November 2016 (UTC)
- I can confirm the mp3 file will not be load with both $wgForeignFileRepos ForeignDBRepo class and ForeignDBViaLBRepo class. Loading mp3 locally work in most of case as well as using ForeignAPIRepo class.
- There is another bug which prevent ogg from loading if ForeignDBRepo class were used. Using ForeignDBViaLBRepo can by pass that ogg bug. Unfortunately, this is not the case for MP3. Moreover, due to the political reasons , this bug is not like to be fixed. Deletedaccount4567435 (talk) 06:50, 7 November 2016 (UTC)
Switch off CC by code?
Over at en:wiki:VPT I started "Subtitles showing up with soundfile". My question (and need) is to switch off any CC (Closed captioning). DePiep (talk) 23:14, 12 June 2014 (UTC)
Fix editing the page
Hi when editing this mediawiki page and you click edit section it brings up a different section that you doint want to edit please fix it. 151.229.249.125 15:32, 21 December 2014 (UTC)
- Fixed it.
- All you have to do is move </translate> under ==xxx== 151.229.249.125 17:47, 21 December 2014 (UTC)
Update minimal install instructions
Extension:TimedMediaHandler#Minimal_install_under_Ubuntu_12.04 doesn't sound very good, those repositories have not been updated since 2011; also, it conflicts with advice above which says to use a firefogg repository. How about libav, ibvpx? Nemo 12:20, 11 January 2015 (UTC)
- I've also filed phab:T86477 for further simplification. In the meanwhile I checked the readme and the following commands were enough for me to embed a WebM video from Commons (might be different when not using apt.wikimedia.org though):
- Nemo 12:46, 11 January 2015 (UTC)
apt-get libav-tools oggvideotools ffmpeg2theora nano LocalSettings.php # Enable mwEmbedSupport, TimedMediaHandler, InstantCommons php maintenance/update.php php maintenance/rebuildLocalisationCache.php # Update magic words to avoid exceptions, if using l10n cache
flash fallback doesn't work
Thanks for a writing a great extension. It is working perfectly for me in chrome, firefox, and for mobile devices. I cannot get the flash fallback to work, however. In IE9 I get the notification "For a better video playback experience we recommend an HTML5 video browser." and when I click play it tries to download the webm version of the file. I've made sure to enable transcoding to h264 which completed successfully. I've tried setting EmbedPlayer.DisableVideoTagSupport to true for debugging. This causes all browsers to behave similarly - ie trying to download the file. Is there a setting I'm missing to enable the flash fallback player? 63.144.65.106 18:32, 4 February 2015 (UTC)
- Keep in mind, the flash fallback is not used on Wikimedia, and hence nobody has tested it in years, so perhaps its just broken.
- You need to set the following at the bottom of LocalSettings.php
$wgMwEmbedModuleConfig['EmbedPlayer.DisableHTML5FlashFallback' ] = false;
Bawolff (talk) 20:00, 25 February 2015 (UTC)
Wiki with Multimedia Viewer and TimedMedia
Does anybody know how to combine Multimedia Viewer and TimedMedia extensions in one wiki. It works on Wikipedia, but in my case doesn't. I need Multimedia viewer functionality to present images at full screen. Thanks for tips in advance. Peter 31.61.140.142 07:37, 19 February 2015 (UTC)
videos don't show on page
Greetings all. I'm using mediawiki 1.24.0 and I have the extensions installed, they show in special:version.
When I upload a video, and call it with File:Xyz.ogg it shows as a red link. When I go to the upload log, it shows the file there. If I click the file from its file page, it plays fine. Just cant load it on an article.
I tried ogg and webm both do the same.
I have timedmediahandler and mwembedsupport.
What am I missing here? Vapblack (talk) 00:14, 13 May 2015 (UTC)
Help with installing/configuring PEAR
Does anyone have a simplified walkthrough on how to properly install Pear and get it configured? The instructions on the TimedMediaHandler page are confusing at best, and no one seems to have any helpful info. I cannot get TimedMediaHandler working until Pear is installed and running. I am at a total loss. Can anyone please help? RigganRose (talk) 23:10, 5 June 2015 (UTC)
Screen shot
Would someone please fix the link to the screen shots? Cpiral (talk) 20:19, 22 June 2015 (UTC)
TimedMediaHandler directly links to file even on HTML5 browsers after upgrading
I tried Firefox and Chrome with a webm file and it would just direct link to the file and give the prompt.
TimedMediaHandler used to work before I upgraded from MW 1.23 to 1.25
Can anyone help? 98.196.93.46 21:19, 27 June 2015 (UTC)
- Additionally, I am using the REL1_25 versions of TimedMediaHandler and MwEmbedSupport
- This is the log I got while trying to find the problem
- processEmbedPlayers:: Do: 1 players
- EmbedPlayer:: addElement:: mwe_player_0
- EmbedTypes::detectPlayers running detect
- EmbedTypes::addJavaPlayer: adding cortadoPlayer (19)
- EmbedPlayer::trigger:embedPlayerUpdateMediaPlayersEvent
- processEmbedPlayers::runPlayerSwap::mwe_player_0
- EmbedPlayer: initEmbedPlayer: 800
- EmbedPlayer::init:mwe_player_0 duration is: 310.294
- EmbedPlayer::mediaElement:init:mwe_player_0
- processEmbedPlayers::swapEmbedPlayerElement: mwe_player_0
- processEmbedPlayers::trigger:: EmbedPlayerNewPlayer mwe_player_0
- TimedText: init()
- EmbedPlayer::addPlayerElement :trigger
- startPlayerBuildOut:mwe_player_0 EmbedPlayer::checkPlayerSources: mwe_player_0 EmbedPlayer::setupSourcePlayer: mwe_player_0 sources: 2 EmbedPlayer::mediaElement::autoSelectSource MediaElement::GetPlayableSources mimeFilter:undefined 0 sources playable out of 2 EmbedPlayer::showPlayerError MediaElement::GetPlayableSources mimeFilter:undefined 0 sources playable out of 2 EmbedPlayer:updatePosterHTML::mwe_player_0 load.ph...214618Z (line 12976) mw.PlayerControlBuilder: addWarningBinding: EmbedPlayer.ShowNativeWarning wm: For a better video playback experience we recommend an <a href="//www.mediawiki.org/wiki/Extension:TimedMediaHandler/Client_download" target="_blank">HTML5 video browser</a>. EmbedPlayer:: setupSourcePlayer > player ready ( but with errors ) EmbedPlayer:: Trigger: widgetLoaded
ComputeVictory (talk) 17:34, 11 July 2015 (UTC)
- Never mind I found the cause of the problem at T91431 ComputeVictory (talk) 01:05, 26 August 2015 (UTC)
- Hi has your problem be fixed yet. The patch was backported to the REL1_25 branch. Please could you try the latest from the REL1_25 branch. 151.225.22.50 (talk) 23:15, 14 October 2015 (UTC)
No thumbnail at file page
Where this extension stores thumbnail images?
I've get stumbled with error when extension cannot save thumbnails in their storeplace. As I understand, there is incorrect rights on folder, but I can't find where this folder is. Dmitry Russkih (talk) 15:40, 30 September 2015 (UTC)
MP3 player vanishes
I wrote an MP3 handler to work with TimedMediaHandler (as a MediaWiki extension), based on WAV handler and extending ID3Handler. Unfortunately, under Internet Explorer 10, the player is removed on page load by some JavaScript. How can I prevent this? Alexander Mashin talk 04:34, 3 October 2015 (UTC)
- $wgEnabledAudioTranscodeSet [] = WebVideoTranscode::ENC_MP3; is not enough to make an MP3 player appear. It needs a handler and I didn't find it in handlers directory, so I wrote one. Alexander Mashin talk 09:28, 10 October 2015 (UTC)
- Ok maybe you could upload the patch to gerrit where users can look at it and find errors. and tell you if you need to edit other files to get it working.
- You could try this
$wgMediaHandlers['audio/mpeg'] = 'Mp4Handler';
$wgFileExtensions[] = 'mp3';
151.227.77.167 (talk) 10:17, 10 October 2015 (UTC)- Thank you, Mp4Handler really can handle MP3, and even under IE 10. Alexander Mashin talk 19:49, 10 October 2015 (UTC)
- There is also a problem when your Mp3Handler writes an <audio> tag then it gets automatically rewritten and the tag may vanish too. But there is a setting in TimedMediaHandler/MwEmbedModules/EmbedPlayer/EmbedPlayer.config.php this can then be modified to not rewrite <audio> tag:
$wgMwEmbedModuleConfig['EmbedPlayer.RewriteSelector' ] = 'video,playlist';
- In my case Mp4Handler did not work Andreas P.
22:57, 2 March 2016 (UTC)
$wgEnableNiceBackgroundTranscodeJobs and cron
If I set $wgEnableNiceBackgroundTranscodeJobs = true; , should I still create a cron job to run video transcodes? Alexander Mashin talk 18:40, 3 October 2015 (UTC)
Source not found
Is line 139 of WebVideoTranscode/WebVideoTranscodeJob.php the only place that can set staus "Source not found" on transcode job? Alexander Mashin talk 05:17, 6 October 2015 (UTC)
- Hi please could you explain your problem including which MediaWiki version your using and which branch for timedmediahandler your using. 151.227.77.167 (talk) 23:43, 9 October 2015 (UTC)
- MW 1.25.2, TMH REL1_25.
- My problem is that some of the transcode jobs fail with "Source not found" but may succeed next time. I inserted some code to give me debug information in the place I mentioned, but it is never called. I therefore suspect there may be another place setting the status "Source not found". Alexander Mashin talk 09:09, 10 October 2015 (UTC)
Transcode job: entry point
Is running maintenance/runJobs.php --type webVideoTranscode the only way to run a video transcode job? Can it be called from somewhere else; if so, how can it be prevented? Alexander Mashin talk 16:30, 11 October 2015 (UTC)
View remote repo Ogg files?
Is there a way to view ogg audio files from a remote repo, eg. commons? I use MW 1.26.2, Extension:TimedMediaHandler 0.5.0 and
$wgUseInstantCommons=true;
. I can see Ogg video from commons but not ogg audio from commons repo. Extension:MultimediaViewer is disabled. Any hints to resolve this? Andreas P.15:39, 5 February 2016 (UTC)
- Hmm, it should work as-is... brooke (talk) 17:34, 20 March 2016 (UTC)
- It works now, but the setup got a little complicated because I uses several foreign repos including commons. Another issue was that extension:TimedMediaHandler does not work presently with ForeignDBRepo (see Topic «Fatal error: Call to undefined method ForeignDBRepo::fetchImageQuery») so a setup with
$wgLBFactoryConf
and$wgForeignFileRepos[]
was needed:- set up a correct
$wgLBFactoryConf
- set
$wgUseInstantCommons=false;
set it instead with$wgForeignFileRepos[]
at the position you want it to be, e.g. as the last or as the first foreign repo. You may check the resulting order via api checkmeta=filerepoinfo
, e.g. http://your-server.org/w/api.php?action=query&format=json&meta=filerepoinfo&uselang=content - set up a correct
$wgForeignFileRepos[]
with 'wiki' => 'db-in-wgLBFactoryConf' corresponding to$wgLBFactoryConf
- if you use additionally extension:MultimediaViewer make also sure that your other foreign repo media issue a header appropriate for cross-origin resource sharing or it will complain not be able load the media
- set up a correct
- I guess, finally the mistake was the wrong repo order and its configuration Andreas P.
10:34, 21 March 2016 (UTC)
Player turns to the spinner
RESOLVED Apparently downloading a version dedicated for 1.26 worked even tho my wiki is on 1.25 The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I just installed the TimedMediaHandler extension and even reuploaded the Example.ogg on my website but right after the player appears on the page it turns into the spinner.
If you are fast enough you can press the play button and it will work, for a second.
Weird thing, if I place two players on the same page, the 2nd one will work properly.
Any ideas what might be causing it? I turned off my twitter plugin, disqus and adsense but none of those were the problem. Cristal01 (talk) 12:10, 11 March 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.Embed YouTube videos
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How can I use this extension to embed YouTube and Vimeo videos and videos from other hosting services into my wiki? Innosflew (talk) 01:55, 25 March 2016 (UTC)
- TimedMediaHandler supports only locally-uploaded video files. You can use Extension:Video I believe for externally-hosted videos. brooke (talk) 07:05, 1 April 2016 (UTC)
- Or Extension:Youtube or Extension:EmbedVideo. —TheDJ (Not WMF) (talk • contribs) 11:05, 26 April 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.Database error
RESOLVED Database error was resolved after restart of the VPS The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
file's page will show it. 114.35.110.220 (talk) 14:59, 6 May 2016 (UTC)
- if i stop use TimedMediaHandler, OGG file's page will regular. 114.35.110.220 (talk) 00:30, 7 May 2016 (UTC)
- What kind of error exactly ? And did you try running ./maintenance/update.php ? —TheDJ (Not WMF) (talk • contribs) 07:34, 7 May 2016 (UTC)
- I have been run it.
- The page will show like this:
- Database error
- A database query error has occurred. This may indicate a bug in the software.
- But I delete TimedMediaHandler, the page will normal. 114.35.110.220 (talk) 09:43, 7 May 2016 (UTC)
- thank for your help,TheDJ. It's normal after I restart my VPS. 114.35.110.220 (talk) 04:52, 8 May 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.Progress bar for audio?
Hi there, thanks for this great extension! Is there a way to configure it so that the audio player shows a progress bar, which ideally the user would be able to grab and reset? Also all the usual buttons, like fast-fwd, rewind? Thanks! ~ 91.125.85.186 (talk) 10:12, 21 June 2016 (UTC)
- You can set the width of the player like you would for images, and that should make it wide enough to show the progress bar. This was broken until quite recently however, so you will need a recent version of the extension (possibly from git). I'm personally working on an update for the player to enable some more options, but that will still take some time. —TheDJ (Not WMF) (talk • contribs) 08:41, 22 June 2016 (UTC)
- Nice one, thanks. I added an example in the extension page, to show this. 160.83.42.136 (talk) 13:22, 22 June 2016 (UTC)
Mp3 support?
Hello, I am evaluating this extension for use in my wiki. I still see this as part of the roadmap:
"Add support for mp3 uploads and audio transcoding to mp3 and ogg. ( Off by default until mp3 patents expire in 2012 )"
It's not crossed out. Does it mean that at the moment I will still be unable to use it for the mp3 files that I have uploaded in my wiki?
Thanks 160.83.36.129 (talk) 13:28, 22 June 2016 (UTC)
- Hey there. This code is working in master, but you have to configure it on (set
$wgTmhEnableMp3Uploads
totrue
). Relatively soon I imagine we'll remove the disablement. Jdforrester (WMF) (talk) 01:25, 29 November 2017 (UTC)
Upload mp4 file failed
I installed TimedMediaHandler with latest version. but when I upload a mp4 file, I received below error. There are no problem to upload a jpeg file. Could help me solve this problem?
[93b9cad69e1e225a65fe86a1] /Special:Upload Error from line 1091 of /var/www/mediawiki/includes/specials/SpecialUpload.php: Call to a member function getUrl() on boolean Backtrace:
- 0 /var/www/mediawiki/includes/specials/SpecialUpload.php(893): UploadForm->getDescriptionSection()
- 1 /var/www/mediawiki/includes/specials/SpecialUpload.php(267): UploadForm->__construct(array, DerivativeContext, MediaWiki\Linker\LinkRenderer)
- 2 /var/www/mediawiki/includes/specials/SpecialUpload.php(446): SpecialUpload->getUploadForm(string, string, boolean)
- 3 /var/www/mediawiki/includes/specials/SpecialUpload.php(519): SpecialUpload->showUploadWarning(array)
- 4 /var/www/mediawiki/includes/specials/SpecialUpload.php(209): SpecialUpload->processUpload()
- 5 /var/www/mediawiki/includes/specialpage/SpecialPage.php(522): SpecialUpload->execute(NULL)
- 6 /var/www/mediawiki/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)
- 7 /var/www/mediawiki/includes/MediaWiki.php(283): SpecialPageFactory::executePath(Title, RequestContext)
- 8 /var/www/mediawiki/includes/MediaWiki.php(851): MediaWiki->performRequest()
- 9 /var/www/mediawiki/includes/MediaWiki.php(512): MediaWiki->main()
- 10 /var/www/mediawiki/index.php(43): MediaWiki->run()
- 11 {main} 114.246.84.109 (talk) 10:36, 18 January 2017 (UTC)
- This means that the server was unable to generate a thumbnail preview for this image for some reason.
- Probably something is wrong with the ffmpeg or the likes. It shouldn't crash on it of course. I filed ticket phab:T155771 for the crash. —TheDJ (Not WMF) (talk • contribs) 19:52, 19 January 2017 (UTC)
Interwiki breaking video display?
I currently use a shared repository wiki a la Commons to host files that should be on multiple wikis. When I upload a mp4 file to this shared repository (http://retrocdn.net/File:FinalBlasterBurningForce_MD-PCE_JP_TVAdvert.mp4) and try to use it on another site (http://segaretro.org/Burning_Force) I receive the following PHP Fatal Error:
Fatal error: Call to undefined method FileRepo::fetchImageQuery() in extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php on line 686
Any help on why this may be happening? For the record, locally-uploaded video files to either wiki are fine. Scarred Sun (talk) 14:02, 12 February 2017 (UTC)
- This is phab:T63986. You can bypass this problem, by using ForeignDBViaLBRepo instead of ForeignDBRepo. —TheDJ (Not WMF) (talk • contribs) 09:37, 24 April 2017 (UTC)
- Do you mean that we should use $wgForeignFileRepos with 'class' => 'ForeignDBViaLBRepo'?
- But what if using old syntax with $wgSharedUploadPath, $wgSharedUploadDirectory etc? Nbrouard (talk) 22:00, 2 August 2017 (UTC)
- I was having this problem too. The easiest solution was switching to Extension:EmbedVideo, which met my needs. T0lk (talk) 21:27, 2 October 2017 (UTC)
Options menu colours
It is dark text on black and really hard to see. Can we do something about that? Could we get the text in a nice, bright yellow? ~ Anna Frodesiak (talk) 04:30, 10 March 2017 (UTC)
First Kaltura Player didn't work
http://jurtenland.de/wiki/Yuchungfang
On this article, I use the the following code.
Spirit of BP
[[Datei:spiritofbp.mp3|thumb|Spirit of Bipi]]
[[Datei:spiritofbp.mp3|thumb|Spirit of Bipi]]
...
The first player didn't work.
The second is fine... whats wrong for me?
Using Mediawiki 1.27.1 on Centos7 Scoutladen (talk) 20:22, 18 March 2017 (UTC)
- Error seams to be only with .mp3
- While using .ogg, everything is fine. Scoutladen (talk) 19:49, 19 March 2017 (UTC)
- The extension doesn't really support MP3 yet. See also phab:T115170. That ticket has some patches that you might be able to use to add this functionality locally. Hopefully support will be added in the next version of the extension, since it seems the the patents for MP3 have lapsed. —TheDJ (Not WMF) (talk • contribs) 09:27, 24 April 2017 (UTC)
Database Error
RESOLVED Make sure that the required database tables are being created. The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello. I am really new to TMH to please forgive me if these questions are too basic. I've installed the extension and can play the uploaded file when looking at the recent files list. But, when I click on the file name, I am taken to a page with this message: "A database query error has occurred. This may indicate a bug in the software." I see others with a similar problem and the solution was to restart the server. But, I'm on a shared server so a restart isn't possible. Does anyone have a different suggestion or could possibly point me in the right direction?
I also get the error message when I go to Special Pages/TimedMediaHandler. Ponkabonk (talk) 17:13, 8 June 2017 (UTC)
- You need to run "update.php" after installing this extension. Otherwise the required database tables are not being created which in turn results in what you are currently experiencing. [[kgh]] (talk) 17:23, 8 June 2017 (UTC)
- OK. I turned on verbose SQL error reporting and found that I'm missing at least one DB table. Where can I find a DB schema for TMH? Is there a .sql file available I can run to manually create the necessary tables? Ponkabonk (talk) 17:26, 8 June 2017 (UTC)
- I did that. Didn't work. I found a file called TimedMediaHandler.sql which gave me the SQL required to manually create the table. Seems to be working now. Ponkabonk (talk) 17:32, 8 June 2017 (UTC)
- Usually running the script should indeed create the tables. Dunno why it was not working for you. However, glad that you managed to manually create the tables. [[kgh]] (talk) 19:31, 8 June 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.Unterminated string literal in file 'MediaWiki:Common.js' on line 8
OK. New question. I'm trying to play .ogg files on my site. Chrome works great but Firefox doesn't. When I press "play" nothing happens.
I see the error "Unterminated string literal in file 'MediaWiki:Common.js' on line 8" in the console for both FF and Chrome. Don't know if that's related to the problem
I've heard that Safari and IE aren't working either but I haven't verified that yet. Probably have some questions about ogv.js sometime in the future. Ponkabonk (talk) 17:46, 8 June 2017 (UTC)
- Here's a link to my test page. The first few seconds of the file are blank so be patient and someone will eventually start talking.
- http://islapedia.com/index.php?title=Mikey_test Ponkabonk (talk) 17:54, 8 June 2017 (UTC)
- I wonder why it is not working. Since this is an extension used on WMF sites. I use the Html5mediaAudio widget via the Widgets extension instead of this one. [[kgh]] (talk) 19:38, 8 June 2017 (UTC)
- When I look at that site and use "debug=true" i see dozens of errors. It seems as if the html being served is generating incorrect links to load.php (which serves up much of the javascript and css), instead all referring to the non-existing "http://islapedia.com/?d41d8"
- You'll have to figure out why it does that, because it's not normal. —TheDJ (Not WMF) (talk • contribs) 13:30, 11 June 2017 (UTC)
- I'm getting much closer. Chrome, Safari, Edge and IE all work. But, when I try to play the file in Firefox, I get the following message:
- HTTP load failed with status 403. Load of media resource http://islapedia.com/images/1/10/Mike_Test_DH_1.ogg failed.
- Any ideas why FF is having trouble with this file? I've tried dumping my cache and cookies and have tried a second machine. It didn't help. There may be other issues with the site but I'm only trying to get TMH working for now.
- -Mike Ponkabonk (talk) 22:16, 21 June 2017 (UTC)
- Got that one fixed. I modified .htaccess to redirect to www. when the www. is missing. No more 403 errors. But, I'm still getting the "Unterminated string literal in file 'MediaWiki:Common.js' on line 8" error and the file doesn't play. I believe it's caused by FF just stopping when it encounters that error but all the other browsers ignore the error.
- Help is greatly appreciated. Ponkabonk (talk) 22:39, 21 June 2017 (UTC)
Not Working - uploaded files not found
Once I activate TimedMediaHandler (and MwEmbedSupport), "[[File:XXXX]]" links simply change to red as if the file wouldn't exist (previously they were ok).
Files have been uploaded correctly.
Tested on a vanilla MW 1.27.3 (LTS) with TMH 1.27 and 1.28. 194.154.200.228 (talk) 13:54, 27 July 2017 (UTC)
- Same with MW 1.29.0 194.154.200.228 (talk) 14:28, 27 July 2017 (UTC)
- Same with MW 1.33 Ivan Mudrik (talk) 06:20, 12 September 2019 (UTC)
This extension work with audio stream from external server?
Does this extension allow you to listen to an audio stream from another external server?
You seem to me not to ...
Does anyone know if this is possible in MediaWiki?
My intention is to put this streaming: http://icecast.taina.net.br/radiosapo.mp3
with a small player to listen to in our Wiki.
Thanks! Tartarugav (talk) 20:09, 8 September 2017 (UTC)
Syntax for embedding a .ogv file?
I'm trying to get my first video file to play.
I've tried the following:
[[Video:Foxhat.ogv]|Video Test]]
[[File:Foxhat.ogv]|Video Test 2]]
But when clicking on either of the links, it opens the file upload page.
If I use: [[Media:Foxhat.ogv]] then it plays the video but in a full-screen player but I'd really like to be able to embed the video on the page.
I have no idea how to approach fixing this. Any help would be greatly appreciated.
Thanks. Ponkabonk (talk) 17:40, 14 September 2017 (UTC)
- You have an extra ]. Syntax is [[file:Foxhat.ogv]].
- If its just rendering as a link, it means that the extension is not installed properly Bawolff (talk) 01:54, 15 September 2017 (UTC)
- I`am having an exact same problem, i tried everything and it simply isn`t working.
- The ogg, and oga files are displayed, and played properly. But link with
- [[File:sample.ogv|sample]] always opens upload files page.
- Since installation is a simple unpacking of files to certain spot i doubt that any 1 can miss install it. 194.126.214.218 (talk) 15:01, 16 February 2018 (UTC)
Updates on GIF mode?
Are there any updates to the this item on the roadmap?
- "GIF mode" for autoplay silent videos
it's something I've been wanting to try in MediaWiki for a while, and would be great to have.
Or, at least, are there ways to make an embedded video autoplay/silent/looping as individual parameters?
Thanks! 2604:2000:2440:3400:4054:F1F3:64C3:E44B (talk) 01:56, 13 January 2018 (UTC)
Further cleanup of docu?
RESOLVED Content cleared and moved to subpages. The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
@Brion Vibber (WMF): I just saw that you recently made an effort in cleaning up the docu. I wonder if the sections "Roadmap" and "Notes" need to be kept. I guess that the "Roadmap" should somehow be part of some Phabricator tasks and the "Notes" date from 2013 and appear to be very WMF specific. [[kgh]] (talk) 21:21, 27 March 2018 (UTC)
- I just moved the respective content to subpages. I guess that this is acceptable. [[kgh]] (talk) 20:21, 31 March 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.Doesn't work with PostgreSQL Backend
Needed to modify the database table creation as follows:
CREATE TABLE /*_*/transcode (
transcode_id SERIAL PRIMARY KEY,
transcode_image_name VARCHAR(255) NOT NULL,
transcode_key VARCHAR(48) NOT NULL,
transcode_error TEXT NOT NULL,
transcode_time_addjob VARCHAR(14) NULL,
transcode_time_startwork VARCHAR(14) NULL,
transcode_time_success VARCHAR(14) NULL,
transcode_time_error VARCHAR(14) NULL,
transcode_final_bitrate INT NOT NULL
); 192.119.205.244 (talk) 19:24, 14 May 2018 (UTC)
- Should actually be
- CREATE TABLE /*_*/transcode (
- transcode_id SERIAL PRIMARY KEY,
- transcode_image_name VARCHAR(255) NOT NULL,
- transcode_key VARCHAR(255) NOT NULL,
- transcode_error TEXT NOT NULL,
- transcode_time_addjob VARCHAR(255) NULL,
- transcode_time_startwork VARCHAR(255) NULL,
- transcode_time_success VARCHAR(255) NULL,
- transcode_time_error VARCHAR(255) NULL,
- transcode_final_bitrate INT NOT NULL
- ); 192.119.205.244 (talk) 19:38, 14 May 2018 (UTC)
Error creating thumbnail
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 Elbiztec (talk) 22:24, 28 May 2018 (UTC)
- 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; brooke (talk) 21:45, 18 June 2018 (UTC)
- Assuming ffmpeg is installed....add
- $wgFFmpegLocation = '/path/to/ffmpeg';
- after wfLoadExtension( 'TimedMediaHandler' ); Silkwood (talk) 11:54, 11 July 2019 (UTC)
- Indeed, this is the error message I got:
Error generating thumbnail Error creating thumbnail: File::transform() returned false
- This requires you to do the following configuration, at least on a Ubuntu 18.04:
wfLoadExtension( 'TimedMediaHandler' ); $wgFFmpegLocation = '/usr/bin/ffmpeg';
- The default setting that comes with the extension points to a "avconv" binary which is not present in Ubuntu 18.04. Silkwood's recommendation is a time saver. [[kgh]] (talk) 22:23, 2 September 2019 (UTC)
Extension:MwEmbedSupport
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.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 (talk) 08:46, 1 August 2018 (UTC)
- "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? InkluPedia (talk) 10:32, 1 August 2018 (UTC)
- You can download it from here: Special:ExtensionDistributor/MwEmbedSupport —TheDJ (Not WMF) (talk • contribs) 11:41, 1 August 2018 (UTC)
- @TheDJ. Thank you. I already found the way to download it for MediaWiki 1.31. What must be fixed is Extension:MwEmbedSupport InkluPedia (talk) 11:49, 1 August 2018 (UTC)
- I have already expanded the message on that page to be more descriptive. —TheDJ (Not WMF) (talk • contribs) 11:53, 1 August 2018 (UTC)
- 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 Sanfrupedia (talk) 19:21, 26 December 2018 (UTC)
- https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/MwEmbedSupport/+refs 189.217.121.62 (talk) 18:19, 3 February 2019 (UTC)
TimedMediaHandler for MediaWiki 1.30
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
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? StormKyleis (talk) 22:22, 7 September 2018 (UTC)
- https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/MwEmbedSupport/+archive/REL1_30.tar.gz is an archive of the MediaWiki 1.30-compatible version of that extension. Sorry for the difficulty! Jdforrester (WMF) (talk) 23:03, 7 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.TimedMediaHandler for MediaWiki 1.31
RESOLVED Documentation was adjusted. The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
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) Daniel K. Schneider (talk) 16:21, 12 September 2018 (UTC)
- 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. [[kgh]] (talk) 19:22, 12 September 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.Please help me disable this Kaltura player
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! HausaDictionary (talk) 11:42, 26 September 2018 (UTC)
still Call to undefined method ForeignDBRepo::fetchImageQuery()
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:
- 0 /var/wwwc/cathopedia.org/w-1.31/extensions-unmodified/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php(519): WebVideoTranscode::getRemoteSources(ForeignDBFile, array)
- 1 /var/wwwc/cathopedia.org/w-1.31/extensions-unmodified/TimedMediaHandler/TimedMediaTransformOutput.php(520): WebVideoTranscode::getSources(ForeignDBFile)
- 2 /var/wwwc/cathopedia.org/w-1.31/extensions-unmodified/TimedMediaHandler/TimedMediaTransformOutput.php(304): TimedMediaTransformOutput->getMediaSources()
- 3 /var/wwwc/cathopedia.org/w-1.31/extensions-unmodified/TimedMediaHandler/TimedMediaTransformOutput.php(144): TimedMediaTransformOutput->getHtmlMediaTagOutput()
- 4 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/Linker.php(452): TimedMediaTransformOutput->toHtml(array)
- 5 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/parser/Parser.php(5370): Linker::makeImageLink(Parser, Title, ForeignDBFile, array, array, boolean, boolean, integer)
- 6 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/parser/Parser.php(2344): Parser->makeImage(Title, array, LinkHolderArray)
- 7 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/parser/Parser.php(2091): Parser->replaceInternalLinks2(string)
- 8 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/parser/Parser.php(1318): Parser->replaceInternalLinks(string)
- 9 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/parser/Parser.php(443): Parser->internalParse(string)
- 10 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/content/WikitextContent.php(323): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
- 11 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/content/AbstractContent.php(516): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
- 12 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/page/WikiPage.php(2129): AbstractContent->getParserOutput(Title, NULL, ParserOptions)
- 13 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/page/WikiPage.php(1655): WikiPage->prepareContentForEdit(WikitextContent, NULL, User, string, boolean)
- 14 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/EditPage.php(2214): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User, string, array, integer)
- 15 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/EditPage.php(1506): EditPage->internalAttemptSave(array, boolean)
- 16 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/EditPage.php(652): EditPage->attemptSave(array)
- 17 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/actions/EditAction.php(60): EditPage->edit()
- 18 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/actions/SubmitAction.php(38): EditAction->show()
- 19 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/MediaWiki.php(500): SubmitAction->show()
- 20 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
- 21 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/MediaWiki.php(861): MediaWiki->performRequest()
- 22 /var/wwwc/cathopedia.org/mediawiki-1.31.1/includes/MediaWiki.php(524): MediaWiki->main()
- 23 /var/wwwc/cathopedia.org/mediawiki-1.31.1/index.php(42): MediaWiki->run()
24 {main}
However, I don't use any foreign repository... Why am I getting this error? DonPaolo (talk) 09:39, 23 October 2018 (UTC)
- If you use a shared upload, you're implicitly using a foreign file repo. Unfortunately, it's a know bug: phabricator:T63986 Ciencia Al Poder (talk) 09:17, 24 October 2018 (UTC)
- I got same bug too. Deletedaccount4567435 (talk) 20:58, 28 October 2018 (UTC)
PHP Warning: Invalid argument supplied for foreach()
RESOLVED 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. The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
PHP Warning: Invalid argument supplied for foreach() in extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php on line 679 Deletedaccount4567435 (talk) 08:15, 4 November 2018 (UTC)
- The versions of TMH, MW and PHP are? Please consider creating an issue at phabricator. [[kgh]] (talk) 10:24, 4 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.[481534518f1aa907bf368137] /wikiwiki/index.php/Especial:TimedMediaHandler Wikimedia\Rdbms\DBQueryError from line 1457 of C:\xampp\htdocs\wikiwiki\includes
RESOLVED Needed to run the SQL manipulation files manually The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
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} 181.55.114.245 (talk) 15:37, 9 November 2018 (UTC)
- 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! Jdforrester (WMF) (talk) 17:43, 9 November 2018 (UTC)
- No, I'm running on MySQL. But I've created the table directly and It worked :D
- Thank you :* 186.116.10.62 (talk) 18:30, 9 November 2018 (UTC)
- Excuse me, do you have the sql from the tables of OAuth extension?, I have the same problem :( 186.116.10.62 (talk) 18:37, 9 November 2018 (UTC)
- Yup! In general, you can go from the repo to the extension registration file (in this case, as almost always,
extension.json
), find theLoadExtensionSchemaUpdates
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 theoauth_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
, andoarc_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! Jdforrester (WMF) (talk) 19:12, 9 November 2018 (UTC)
- Thank you very much! 181.55.114.245 (talk) 19:40, 9 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.playlisting
RESOLVED Not available from TMH or any known alternative, except for YouTube plugins using that platform's playlist feature. The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
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. 2604:6000:1404:4DE1:BD95:1806:E6B1:2001 (talk) 13:03, 12 November 2018 (UTC)
- 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. —TheDJ (Not WMF) (talk • contribs) 09:51, 13 November 2018 (UTC)
- 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 ^.^ 2604:6000:1404:4DE1:BD95:1806:E6B1:2001 (talk) 17:42, 13 November 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.Sounds from another Site
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). Micha8532 (talk) 16:03, 24 December 2018 (UTC)
WAV support
I was wondering if this extensions does (or will) support WAV files. TheROFL98 (talk) 01:02, 16 March 2019 (UTC)
- It does.
- https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/TimedMediaHandler/+/master/includes/handlers/WAVHandler/WAVHandler.php Jdforrester (WMF) (talk) 21:08, 16 March 2019 (UTC)
- The extension won't load .wav files on my wiki, only working when I use the new media player. TheROFL98 (talk) 22:28, 16 March 2019 (UTC)
- As an example: https://commons.wikimedia.org/wiki/File:Cy-Arthur.wav Bawolff (talk) 20:59, 20 March 2019 (UTC)
Class 'getID3' not found trying to upload a video file
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. Krusher (talk) 11:50, 1 May 2019 (UTC)- Did you install from git ? Because it looks like the composer dependencies of the extension were not installed. —TheDJ (Not WMF) (talk • contribs) 12:36, 1 May 2019 (UTC)
- Correct, after executing composer update it works. Thanks! Maybe it should be noted in the installation process. Krusher (talk) 14:16, 1 May 2019 (UTC)
- 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 Bowdzone (talk) 10:55, 15 May 2019 (UTC) - 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. Madewild (talk) 13:44, 3 July 2019 (UTC)
- 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 Ciencia Al Poder (talk) 20:59, 3 July 2019 (UTC)
- 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). —TheDJ (Not WMF) (talk • contribs) 12:33, 5 July 2019 (UTC)
- 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! Bttfvgo (talk) 17:51, 14 July 2019 (UTC) - In a similar vein: with TimedMediaHandler REL1_33 installed (via the ExtensionDistributor download) I recently ran into an issue where the missing getID3 interfered with the operation of refreshImageMetadata, which in turn prevented PdfHandler from working properly. To follow up on TheDJ's point above, could someone describe what files specifically are missing from the download that are needed for the extension to operate correctly? Huwmanbeing (talk) 18:44, 11 September 2019 (UTC)
- You need to run composer install --no-dev in the extension directory Ciencia Al Poder (talk) 19:26, 11 September 2019 (UTC)
- Yeah, it's this huge note in the page:
- After downloading this extension, please note that it requires Composer.
- So, after installation change to the directory containing the extension e.g. "../extensions/TimedMediaHandler/" and run
composer install --no-dev
, or when updating:composer update --no-dev
. - Alternatively as well as preferably add the line
"extensions/TimedMediaHandler/composer.json"
to the "composer.local.json" file in the root directory of your wiki like e.g. {
"extra": {
"merge-plugin": {
"include": [
"extensions/TimedMediaHandler/composer.json"
]
}
}
}
—TheDJ (Not WMF) (talk • contribs) 19:46, 11 September 2019 (UTC)- If you are on shared hosting, follow the following steps:
- 1. Download James-heinrich/getid3 from [php-download.com/package/james-heinrich/getid3]
- 2. Go to your file manager and on the extension/TimedMediaHandler folder, upload James-...
- 3. Extract James
- 4. Go back to your wiki and run the upload again.
Goodman Andrew (talk) 14:33, 28 December 2019 (UTC)
PostgreSQL not supported
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. Bowdzone (talk) 11:01, 15 May 2019 (UTC)
HOWTO LOOP video. +Opus 44.1k failure & Same-size re-encodes
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. 2001:2002:51ED:CEE0:DC5D:AE01:E6DE:3306 (talk) 14:04, 6 June 2019 (UTC)
- Hi,
- for 1) as a dirty hack, to get a button below the player to replay the video sequence, one may edit the extension as shown below. This solution is just a first approach an need to be further improved regarding stability, readability etc. but its a starting point.
- This adds an individual javascript function under each videoplayer tag in the document, using the specific id of the video tag. the javascript function is started by clicking the button and will restart and play the video sequence.
- edit the file [PathToYourMediawiki]/extensions/TimedMediaHandler/includes/TimesMediaTransformOutput.php
- search for function 'getHtmlMediaTagOutput(...'
- specifically search for the following code lines:
- // Build the video tag output:
- $s = Html::rawElement( $this->getTagName(), $this->getMediaAttr( $sizeOverride, $autoPlay ),
- // The set of media sources:
- self::htmlTagSet( 'source', $mediaSources ) .
- // Timed text:
- self::htmlTagSet( 'track', $mediaTracks )
- );
- add the following lines below:
- $s .= '<script type="text/javascript">';
- $s .= 'function replayVideo'.self::$serial.'() {';
- $s .= "var el = document.getElementById('";
- $s .= "mwe_player_";
- $s .= self::$serial-1;
- $s .= "'); ";
- $s .= "el.muted = 'true'; el.load(); el.play(); }</script>";
- $s .= '<form><input type="button" onclick="replayVideo';
- $s .= self::$serial.'()" value="(re)play"</form>';
- Note: i'm sure this can be written in a nicer way, it's decades since i used php ;) 78.54.53.70 (talk) 23:54, 13 September 2019 (UTC)
- some additional notes:
- 1) correct filename is TimedMediaTransformOutput.php (not TimesMedia...)
- 2) dont use the <form> and </form> tag from the source above, it will result in errors with input button afterwards (like formlink etc.)
- 3) el.muted = 'true' has no effect for most browsers and is not wanted for most users (mute video)
77.11.15.116 (talk) 00:27, 5 October 2019 (UTC)- I would like to chime in on issue nr. 4. I use SimpleScreenRecorder to produce a VP8-720p video file. When uploaded, it is unnecessarily transcoded to another VP8-720p video file.
- For instance, I have Video.webm of 51.3 MB with VP8-720p-15fps-398kbps and Vorbis-48kHz-112kbps. The transcoding produces Video.720p.webm with almost exactly the same specs, the only difference lying in the bitrate (581kbps) and thus an increased file size of 74.9 MB. This does not make sense as the video quality of the transcoded copy cannot get any better with an increased bitrate.
- I think the extension should only mark the WEBM-video file for transcoding if any of the basic settings (frame size, fps, video/audio bit rate) of the original are (strictly) greater than the standard settings. Does that make sens? I am no expert at all with video encoding. Sm8ps (talk) 15:37, 22 October 2020 (UTC)
- So the problem is that there can be a LOT of settings and knowing which combination works in all browsers is actually pretty hard. This is why it will always transcode, to ensure that it has a known usable version to present to browsers. (FYI: Youtube does this as well, you never see your original again after uploading it there). —TheDJ (Not WMF) (talk • contribs) 08:34, 17 March 2021 (UTC)
- Thanks for your response, @TheDJ (and sorry for my late reaction)! Your explanations do make perfect sense to me. Sm8ps (talk) 08:04, 20 December 2021 (UTC)
Error loading shared libraries and Undefined index: vorbis
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: libgobject-2.0.so.0: 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 (talk) 17:21, 14 July 2019 (UTC)
- 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! Bttfvgo (talk) 23:56, 14 July 2019 (UTC)
Commons Creator template doesnt work well with TimedMediaHandler's menu display
c:File:The_Kid_(1921).webm for example. TimedMediaHandler takes c:Template:Information's author field, which is malformed when it's a creator template.
local discussion: c:Commons:Village_pump/Technical#Creator_template_doesnt_work_well_with_TimedMediaHandler's_menu_display Roy17 (talk) 22:50, 1 August 2019 (UTC)
MwEmbedSupport needed for MW 1.31+ or not?
RESOLVED No. The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
It is still unclear to me if the MwEmbedSupport extension is needed for REL1_31. The instructions here at TimedMediaHandler clearly state it is not needed, the instructions on MwEmbedSupport clearly state that it is needed. I'd really appreciate if somebody could look into this. Thanks. [[kgh]] (talk) 21:34, 2 September 2019 (UTC)
- Trying to self answer. It is not needed for a fresh install on MW 1.31 and later.
- Perhaps you still need to have it on MW 1.31 to gracefully upgrade and migrate from earlier versions. Cannot tell since I have not used this one before. [[kgh]] (talk) 23:04, 2 September 2019 (UTC)
- It's not needed even for an upgrade Ciencia Al Poder (talk) 09:45, 3 September 2019 (UTC)
- Thanks for clarifying. I removed the contradictory information from the MwEmbedSupport page. [[kgh]] (talk) 13:01, 3 September 2019 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.extension.json not included in download file
Does anyone know if this will stream a video when importing a page from wikipedia or will it download the video to my server first?
Also I am getting this error PHP Fatal error: Uncaught Exception: xxxx/TimedMediaHandler/extension.json does not exist! in xxxx/includes/registration/ExtensionRegistry.php:117
I have checked the paths and it does not seem to be in the download file. I assume that we could add this file in there from github /wikimedia/mediawiki-extensions-TimedMediaHandler/blob/master/extension.json? 118.148.171.25 (talk) 09:51, 4 September 2019 (UTC)
- This extension supports local files and files hosted on 'foreign repos', like Wikimedia Commons via InstantCommons. It does not handle anything like Youtube etc. —TheDJ (Not WMF) (talk • contribs) 14:46, 4 September 2019 (UTC)
- Your error likely means you are using an old version/download of the extension, in combination with the newer wfLoadExtension method of loading the extension. wfLoadExtension depends on extension.json being present. If extension.json is not present you have an old version of it.
- I always advise to download the branch version (REL_***) of an extension that matches the version of MediaWiki core that you are running. —TheDJ (Not WMF) (talk • contribs) 14:50, 4 September 2019 (UTC)
- It depends. If you import the file while importing the page, it will be on your server. If you don’t import the file, it has to be on Wikimedia Commons and you need to have InstantCommons to be able to use the file directly from Commons (otherwise the file will be marked as missing, i.e. a red link will appear instead of the file). This applies to all kinds of files, with videos being no exception. If a video is displayed from Commons, it’s played from Commons entirely (you can confirm this by playing a video on MediaWiki.org, and check your browser console to see it’s played from
https://upload.wikimedia.org/wikipedia/commons/*
). - Where did you download the extension from? I checked the four versions available at Special:ExtensionDistributor/TimedMediaHandler, and all of them had extension.json.
- (N.B. I started writing this answer before the above ones arrived, and this *** haven’t warned me of them.) Tacsipacsi (talk) 15:22, 4 September 2019 (UTC)
Transcode key [resolution].ogv not found, skipping
I'm running into an issue where upon running webVideoTranscode jobs, I wind up getting skipping and errors over any OGV files (and potentially OGG/MP3 files, though it's hard to tell with video backlogs). For what it's worth, I have all the requisite codecs (libtheora, lame, etc.) on the server. Any idea why this may be happening? Scarred Sun (talk) 21:47, 23 November 2019 (UTC)
- I believe this message will come up when there's a job to run a transcode, but there's no entry in the data loaded from the
transcode
table that matches that id. One possibility is that the configured transcode settings are messed up... we did an incompatible config change last year or so which might be tripping up some configs that recently updated. If you're manually altering or setting$wgEnabledTranscodeSet
make sure you're using the current format -- instead of a list of constants, it's an associative array of the actual string keys to a boolean which indicates whether they're on or off. If the config is damaged, it might be causing some trouble there. - If that doesn't seem to be the problem, we may need to check logs or double-check that the database table is ok. (And confirm what version you're running etc before we try debugging!)
brooke (talk) 22:40, 27 November 2019 (UTC)
OGG file won't play in mobile devices, but works fine for desktop
I am creating a wiki for people to learn how to pronounce some difficult names in my language. I have recorded audio in OGG files and uploaded to the wiki, and they play fine in desktop browsers like Chrome and Microsoft Edge. Here is an example: https://chinesenamesinenglish.com/wiki/A
However, in mobile devices (both Safari and Chrome in iphone X), if I use MobileFrontend (I tried different skins), the audio is not played after I click the play button but the player is displayed. If I use desktop view in mobile devices, the player is not even displayed. In contrast, Wikipedia's audio plays fine in mobile devices. For example, https://en.wikipedia.org/wiki/The_Star-Spangled_Banner
Can anyone help? Thank you! I am using MediaWiki v1.33.1 and the extensions and skins are latest compatible versions. Boxiao (talk) 00:57, 27 January 2020 (UTC)
- For now, I bypassed this issue by replacing OGG files with mp3 files. However, I still hope to know how to solve this problem. Your help will be greatly appreciated! Boxiao (talk) 03:33, 3 February 2020 (UTC)
- I’m noticing the same issue with the ogg media on the Audio Samples provided on Fandom’s Soundeffects Wiki. I would really like to use this resource on Apple mobile devices. Is there a workaround? Chuck.Kahn (talk) 12:54, 17 January 2023 (UTC)
Empty thumbnails being generated
The extension correctly creates 640px thumbnails for videos, but all smaller thumbnails are empty zero byte files. What could possibly be the reason for this? Þjarkur (talk) 12:15, 27 March 2020 (UTC)
only one <source> in <video>, no derivative
Hi, I installed and configured Ti!edMediaHandler latest version on Mediawiki 1.34. Uploading a video works fine and does transcode several derivatives.
However when inserting File:xxx.mp4 in a page, I only have the original video inserted in HTML, there is only one < source > tag inside the < video > tag. Thus I can't get any benefit of the derivatives.
In my config, I do have wgEnableTranscode=true and I do have wgEnabledTranscodeSet with the derivatives configured (hence transcoding works :) ) .
What could I possibly miss ? Or what could the plugin miss ? Pio~frwiki (talk) 07:34, 3 May 2020 (UTC)
- This often happens when there is no active jobrunner to quickly take care of purging the pages that the video is included on, after the transcodes finished. —TheDJ (Not WMF) (talk • contribs) 11:13, 3 May 2020 (UTC)
$wgMinimumVideoPlayerSize doesn't work on MediaWiki 1.34
Hello, I just installed the extension on our (private) MediaWiki 1.34. We do not need transcode at the moment and want to use just the video player. The problem is that: there is not any popup window, no matter the value of
$wgMinimumVideoPlayerSize
.When the video is smaller than the value of
$wgMinimumVideoPlayerSize
, when I click on the play button (located at the upper left corner), then appears an embedded player instead of popup window.Does this option is available for MW 1.34? And, id yes, how to achieve it?
Here is the relevant part of the
LocalSettings.php
file:wfLoadExtension( 'TimedMediaHandler' ); $wgFFmpegLocation = '/usr/bin/ffmpeg'; $wgMaxShellMemory = 907200; $wgEnableTranscode = false; $wgMinimumVideoPlayerSize = 10; $wgEnabledTranscodeSet = [];
Spas.Z.Spasov (talk) 15:31, 5 May 2020 (UTC)Support for other video formats (+ issue on transcoding failing on height/width detection)
I had a legacy bunch of hundreds of videos medias in different videoformats on my wiki, and needed all to get supported with few efforts, as long as to allow my users to continue to upload new ones. I just customized a bit TimedMediaHandler code and the magic happened.
If other people get the same interest, here the record of what I did :
- I created the new handler "OtherVideoHandler.php" : it basically extends Mp4Handler and simply adjust a couple of methods relying on metadatas (frequently not well recognized). I declared this new handler into extension.json (and added messages "timedmedia-other-short-video" and "timedmedia-other-long-video" into i18n (english) file for displaying descriptions that do not mention 'mp4' :D ).
- In includes/TimedMediaHandlerHooks.php , I added several mime types support, and modified an if-clauses accordingly :
70,88d69 < $wgMediaHandlers['video/flv'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['video/x-flv'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['application/x-shockwave-flash'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['video/mpeg'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['video/x-m4v'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['video/m4v'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['video/x-mp4'] = 'OthervideoHandler';//PMU alternate for m4v < $wgMediaHandlers['application/smil'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['video/3gpp'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['video/avi'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['video/x-ms-wmv'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['video/x-ms-asf'] = 'OthervideoHandler';//PMU alternate for wmv < $wgMediaHandlers['video/x-msvideo'] = 'OthervideoHandler';//PMU < $wgMediaHandlers['video/quicktime'] = 'OthervideoHandler';//PMU mov < $wgMediaHandlers['image/vnd.wap.wbmp'] = 'OthervideoHandler';//PMU alternate for mov < $wgMediaHandlers['application/x-font-gdos'] = 'OthervideoHandler';//PMU alternate for mov 292,293c273 < if ( ( $mediaType == 'webm' || $mediaType == 'ogg' || $mediaType == 'mp4' || $mediaType == 'othervideo' /*PMU*/)
- Also, I noted that transcoding and thumbnailing failed on several videos, because the height/width couple was not well detected. I don't know if it only happens on my alternate videoformats or if it is a bug. Nevertheless I mention it here so if people encounter the same issue you can debug more easily : I added a "not null not zero" test in several places of TimedMediaThumbnail.php + WebVideoTranscode.php + WebVideoTranscodeJob.php . (Note : if a video still doesn't want to trigger transcodes at all, check out in mysql its record into the image table, you may have surprises on how it was described...)
- And last but not least, I triggered transcodes : I re-ran the scripts "requeueTranscode --missing", "requeueTranscode --error", "runJobs --type webVideoTranscodePrioritized ", purged the related wiki-pages-cache with the general maintenance purgePage.php script.
Pio~frwiki (talk) 23:32, 13 May 2020 (UTC)- Why don't you file a bug with Phabricator ad upload a patch? Just make the extra formats disabled by default, to calm paranoia.
Alex Mashin (talk) 04:51, 6 June 2020 (UTC)
Notice: Undefined index
Hello,
we are getting the following PHP errors in the pages where TimedMediaHandler is used, and the entire content of the page becomes blank:
Notice: Undefined index: oga in /var/www/OUR WEBSITE/www/w/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php on line 1070 Notice: Undefined index: ogv in /var/www/OUR WEBSITE/www/w/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php on line 1070 Notice: Undefined index: vorbis in /var/www/OUR WEBSITE/www/w/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php on line 1070 Notice: Undefined index: oga in /var/www/OUR WEBSITE/www/w/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php on line 1070 Notice: Undefined index: ogv in /var/www/OUR WEBSITE/www/w/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php on line 1070 Notice: Undefined index: vorbis in /var/www/OUR WEBSITE/www/w/extensions/TimedMediaHandler/includes/WebVideoTranscode/WebVideoTranscode.php on line 1070
LocalSettings.php contains:
wfLoadExtension( 'TimedMediaHandler' ); $wgEnableTranscode = true; $wgFFmpegLocation = '/usr/bin/ffmpeg'; $wgEnabledAudioTranscodeSet = [ 'vorbis' => true, 'mp3' => true, 'ogg' => true, 'oga' => true, 'ogv' => true ];
Special:Version contains:
MediaWiki 1.32.0 PHP 7.2.33-1+0~20200807.47+debian10~1.gbpcb3068 (fpm-fcgi) MariaDB 10.3.23-MariaDB-0+deb10u1 ICU 65.1 ... TimedMediaHandler 0.6.0 (13591c8) 01:23, 13 ott 2019
From the error log: https://pastebin.com/wLB2R3db
We tried uninstalling and re-installing the extension, following every step. We tried TimedMediaHandler 0.5.0 and then 0.6.0 with no success. Ffmpeg is installed. Note that the extension was working until a few days ago, when we moved to a new server, any other extension is working like before.
Any idea of what the problem might be? StormKyleis (talk) 11:34, 17 August 2020 (UTC)
- The only valid audio profiles are: ogg, opus, mp3 and m4a. I notice that the main documentation page is also wrong here. I'll update that. —TheDJ (Not WMF) (talk • contribs) 14:31, 17 August 2020 (UTC)
- I have also filed https://phabricator.wikimedia.org/T260560 to make this a more easier to understand error. —TheDJ (Not WMF) (talk • contribs) 14:40, 17 August 2020 (UTC)
- As I remember correctly, I experienced a similar issue before I set
$wgMaxShellMemory = 907200;
withinLocalSettings.php
. Spas.Z.Spasov (talk) 08:15, 5 September 2020 (UTC)
Forcing use of Kaltura HTML5 Player instead of VideoJS
I'm struggling to get Kaltura HTML5 player working on a wiki, since it is consistently attempting to force VideoJS. This is undesirable for me, since my primary use of TimedMediaHandler is to handle OGG files, which work much better with Kaltura (it's not fullscreen!). Is it possible to force Kaltura HTML5, or otherwise just allow VideoJS to work without going fullscreen on audio files? ~ KevTYD (talk) 12:32, 14 January 2021 (UTC)
- Yes, add the line
$wgTmhWebPlayer = "mwembed";
to your LocalSettings.php file. Note, however, that we're expecting to delete the legacy Kaltura player entirely quite soon. Jdforrester (WMF) (talk) 23:33, 14 January 2021 (UTC) - exist the probably of use fullscreen in the files of video with the player kaltura html? Uvas magicas (talk) 02:50, 18 June 2021 (UTC)
- There is currently an incompatibility between the Score extension and the VideoJS player (see phabricator:T245377), whereas the Kaltura player seems to play nicely with the Score extension. Please don't remove the Kaltura player until this compatibility issue is ironed out :) Lwangaman (talk) 20:06, 12 October 2021 (UTC)
Open photos
Is it possible to open images with this extension? 41.254.66.25 (talk) 19:36, 8 February 2021 (UTC)
- No, this extension is for audio and video files only. You can try Extension:MultimediaViewer, which is for (still) images only. Tacsipacsi (talk) 23:05, 8 February 2021 (UTC)
Webm file not working
Dear all,
My wiki when install TimedMediaHandler but webm file not working, please help me. Link: https://wikigiaitri.com/wiki/T%E1%BA%ADp_tin:H%C6%B0%E1%BB%9Bng_d%E1%BA%ABn_t%E1%BA%A1o_v%C3%A0_s%E1%BB%ADa_b%C3%A0i_tr%C3%AAn_Wiki_Gi%E1%BA%A3i_Tr%C3%AD.webm
My LocalSetting.php: wfLoadExtension( 'TimedMediaHandler' ); $wgFFmpegLocation = '/usr/bin/ffmpeg'; $wgMaxShellMemory = 907200; $wgEnableTranscode = false; $wgMinimumVideoPlayerSize = 10; $wgEnabledTranscodeSet = []; $wgTmhWebPlayer = "mwembed"; Xuanthucit (talk) 08:18, 17 March 2021 (UTC)
Use a different content model?
I've noticed that pages in the TimedText namespace actually use the Wikitext content model. This is far from ideal and causes confusion and some problems with editing.
The extension should probably extend the "plain text" model instead. This would probably be a decently-hard change to make... but I think it should be considered. Elli (talk) 05:08, 12 April 2021 (UTC)- The intention is to get rid of the namespace altogether. See phab:T135221. I don't know when this goal will be achieved, though. May be worth a bugreport, since this can be done by config on WMF wikis. Ciencia Al Poder (talk) 07:56, 12 April 2021 (UTC)
- Oh, interesting.
- That is probably a good idea, because of how painful this namespace is to work with. Elli (talk) 11:46, 12 April 2021 (UTC)
Is there some equivalent of $wgMinimumVideoPlayerSize?
Hello, I wonder is it possible to play video files inline without using the popup feature? Spas.Z.Spasov (talk) 17:03, 2 October 2021 (UTC)
TimeMediaHandler and EmbedVideo comparison
RESOLVED mp4 included as type of video to upload via any method for uploading files (Special:Upload, UploadWizard etc) : details are referred at Extension:TimedMediaHandler#Client support. The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I am using EmbedVideo at the moment. It fits my needs 80%. I think it's an amazing extension. I am not interested in embedding videos from external sources but to upload and stream my own on a local server.
I have few questions for those of you using TMH:
- is it possible to use mp4?
- is the process of uploading and embedding the video in a page flawless?
- can I upload a video as I would upload a picture, using the VisualEditor?
- does TMH perform an encoding for every uploaded video?
- is TMH stable/future proof? (sorry for this question, I know it might sound a bit silly but I am working on a corporate wiki and need to comply to a long-term strategy)
Thank you. Carloposo (talk) 11:07, 19 November 2021 (UTC)
- is it possible to use mp4?
- According to § Client support, yes. Support for formats not used on Wikimedia wikis can be a bit more spotty (e.g. thumbnails may not be supported), though.
- - is the process of uploading and embedding the video in a page flawless?
- - can I upload a video as I would upload a picture, using the VisualEditor?
- TimedMediaHandler plays videos and sound files uploaded in the File namespace, so any method for uploading files (Special:Upload, UploadWizard…) should work. I don’t have experience with VisualEditor, but I don’t see any reason for it not to work.
- does TMH perform an encoding for every uploaded video?
- Yes, as far as I know, for every video. See c:File:Videoonwikipedia.ogv#transcodestatus for an example.
- is TMH stable/future proof?
- It’s used on public Wikimedia wikis, so probably yes. Unless something catastrophic happens, it should be supported “forever” (or if goes unsupported, there will be a proper replacement). Tacsipacsi (talk) 17:25, 20 November 2021 (UTC)
- Thank you @Tacsipacsi I am testing it as we speak. Carloposo (talk) 14:26, 23 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.Disable transcoding
Hello,
I am trying to disable all the transcoding jobs as I don't need to provide different versions of the video.
I have included $wgEnableTranscode = false; in my Localsettings.php. Unfotunately it keeps on converting every time I upload an mp4.
I have also added $wgEnabledTranscodeSet = [] but didn't change much.
Thank you. Carloposo (talk) 17:00, 23 November 2021 (UTC)
- Just edit extension.json in the extension files. This is not ideal, a bit hackish and thus not recommended but TimedMediaHandler never handled variables from LocalSettings properly - at least not this one anyway.
- You may want to try setting
$wgEnabledTranscodeSet = [];
which might work for you - it didn't for me. Misdre (talk) 18:33, 2 January 2022 (UTC)
In-page video player
Hi,
I am using $wgMinimumVideoPlayerSize to no success. I am using the VisualEditor to place an mp4 inside my page, and I am setting its width to be bigger than the value I put for the variable. I expect no modal window wo appear on click. Unfortunately, that does not happen.
Question about a placeholder
Hi, I need to know if placeholders for languages ($1) in the following messages "MediaWiki:Mwe-timedtext-language-subtitles-for-clip" and "MediaWiki:Mwe-timedtext-language-no-subtitles-for-clip" support
{{GRAMMAR:...}}
?Would the following translation work for the first mentioned message?
Субтитры на {{GRAMMAR:prepositional|$1}} для $2
Pacha Tchernof (talk) 12:59, 10 May 2022 (UTC)- The placeholder for $1 is a language name. Whether or not that works with Grammar depends on the language i think. You should ask at translatewiki support.
- Based on https://commons.wikimedia.org/wiki/TimedText:%22Die_Stem_van_Suid-Afrika%22_-_National_anthem_of_Apartheid-era_South_Africa.oga.es.srt it looks like the $1 is in the name of language of the current language and not the name in its own language. Bawolff (talk) 20:16, 10 May 2022 (UTC)
- I'm not sure that I completely understood what you wrote, but thanks a lot for a try!
- Just in case: in Russian language, words could have different forms - cases. And I would like to know if I add a GRAMMAR with prepositional case before mysterious "$1", would the language name change depending on the provided case?
- For example, in Russian, the word "English" have seven forms (even if two forms are equal, they are used in the different places): английский, английского, английскому, английский, английским, английском.
- You see? Most of them have different endings and to make smooth and good translation (instead of weird construction I build there) I just need to know, may I use GRAMMAR: to use cases, proper word order and syntax to contribute better translations. Dixi. Pacha Tchernof (talk) 20:50, 10 May 2022 (UTC)
- So the thing is, GRAMMAR is implemented differently in different languages. Some languages have a complete implementation, where it works with any word. In Other languages it doesn't work very well and only works for select words. I am not sure what the case is for russian (which is why i suggested asking at translatewiki support as they are more familiar). You could test GRAMMAR at
- ru:Special:expandTemplates
- .
- If i had to guess though, i would guess the answer is yes, but i'm not 100% sure. Bawolff (talk) 22:42, 10 May 2022 (UTC)
Thumbnail creation error
Hi, i have some problem with an thumbnail creation.
I have two wikis - prod and test.
OS - Debian 11
bullseye
Wiki - 1.35
On the test, the extension works without problems, on prod, when loading some videos, an error thubnail creation. The problem is not observed with all video files. However, problematic videos load fine on the test wiki.
I can't figure out where to look for the problem.
Reinstalled the extension. LocalSettings compared. ffmpeg reinstalled. ImageMagick installed
Error creating thumbnail: '/usr/bin/ffmpeg' -nostdin -threads 1 -ss 102 -y -i '/usr/share/mediawiki/images/8/81/Vіdeo_іnstruction_configurator_of_gearboxes15.mp4' -ss 1 -s 1280x720 -f mjpeg -an -vframes 1 '/tmp/transform_75cc2215ccd5.jpg' 2>&1 wgMaxShellMemory: 307200 ffmpeg version 4.3.4-0+deb11u1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 10 (Debian 10.2.1-6) configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/usr/share/mediawiki/images/8/81/Vіdeo_іnstruction_configurator_of_gearboxes15.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.12.100 Duration: 00:03:27.01, start: 0.000000, bitrate: 1367 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1169 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 193 kb/s (default) Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native)) [swscaler @ 0x5643c4470f40] deprecated pixel format used, make sure you did set range correctly Output #0, mjpeg, to '/tmp/transform_75cc2215ccd5.jpg': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.45.100 Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc58.91.100 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A [h264 @ 0x5643c4115ec0] get_buffer() failed [h264 @ 0x5643c4115ec0] thread_get_buffer() failed [h264 @ 0x5643c4115ec0] decode_slice_header error [h264 @ 0x5643c4115ec0] no frame!
And this message repeating many times:
Error while decoding stream #0:0: Invalid data found when processing input [h264 @ 0x5643c4115ec0] get_buffer() failed [h264 @ 0x5643c4115ec0] thread_get_buffer() failed [h264 @ 0x5643c4115ec0] decode_slice_header error [h264 @ 0x5643c4115ec0] no frame!
And then
Cannot allocate memory frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A speed= 0x video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) Conversion failed!
If i run in console:'/usr/bin/ffmpeg' -nostdin -threads 1 -ss 102 -y -i '/usr/share/mediawiki/images/8/81/Vіdeo_іnstruction_configurator_of_gearboxes15.mp4' -ss 1 -s 1280x720 -f mjpeg -an -vframes 1 '/tmp/transform_75cc2215ccd5.jpg' 2>&1
jpeg alrady created.
What else needs to be checked? I have no idea... Asterton (talk) 10:19, 4 August 2022 (UTC)- The error message states that it exceeded the $wgMaxShellMemory limit—this is a MediaWiki configuration, so it of course doesn’t apply if you run ffmpeg directly from the command line, and it may be configured differently for the two wikis (although it’d be weird to do so). In any case, you’ll need to increase the limit. Tacsipacsi (talk) 22:33, 4 August 2022 (UTC)
- Thanks a lot!
- I tried to set this parameter, but left the value 307200 and, of course, did not get a result. Asterton (talk) 06:27, 5 August 2022 (UTC)
How to make .mov files appear on their file pages
Hello, I'm trying to know how I would be able to make uploaded .mov files able to be played on the TimedMediaHandler player? I know mine works as it plays mp4 and webm files, but for some weird reason, despite .mov files making up a portion of the types of video files now, they are unable to be played. Is it possible to add new types of video files like .mov and .wmv files to be able to be played by the videojs player? And if so how? Thanks Guillaume Taillefer (talk) 00:08, 6 October 2022 (UTC)
Download From Extension Distributor not working
The download link from Extension Distributor is not found. 5.193.68.230 (talk) 07:36, 8 December 2022 (UTC)
- Not working in what way ? As in the download doesn't start, it doesn't finish, what you downloaded is not working ? Which version did you try to download ? Please be comprehensive when making reports about problems. —TheDJ (Not WMF) (talk • contribs) 10:16, 8 December 2022 (UTC)
- Click on the download link, then version 1.39 to reproduce the same error.
- last checked, 20250515143103 2001:8F8:1E6D:C2FB:1894:CC1D:9EE7:6A9D (talk) 06:57, 13 December 2022 (UTC)
- Both of the big download links on Download work for me – the big blue button takes me to https://releases.wikimedia.org/mediawiki/1.39/mediawiki-1.39.0.zip, and the text underneath it goes to https://releases.wikimedia.org/mediawiki/1.39/mediawiki-1.39.0.tar.gz. Do those links not work for you, or are there other links that are broken? Jdforrester (WMF) (talk) 15:45, 13 December 2022 (UTC)
Database error
if i installed this extension i got database error 112.209.61.222 (talk) 03:25, 13 December 2022 (UTC)
- Did you run update.php ? Bawolff (talk) 07:19, 13 December 2022 (UTC)
- yes 112.209.61.222 (talk) 09:34, 13 December 2022 (UTC)
- Can you set $wgShowExceptionDetails=true; and then copy and paste the full error message. Bawolff (talk) 09:41, 13 December 2022 (UTC)
- its already update but it wont show the video player (thumbnail) 112.209.61.222 (talk) 09:53, 13 December 2022 (UTC)
Shellbox
Is integration with Shellbox expected? Alexander Mashin talk 18:06, 4 March 2023 (UTC)
- WebVideoTranscodeJob does since January 2024, but T356241 remains open. skierpage (talk) 00:31, 25 May 2024 (UTC)
How to change resolution permanatly?
I would like to change the resolution settings for all videos in my mediawiki page - has anyone an idea how to do it? 80.153.140.71 (talk) 13:36, 30 June 2023 (UTC)
Error running /bin/bash - syntax error near unexpected token
[exec] Error running /bin/bash '/volume2/www/test2.example.com/w/vendor/wikimedia/shellbox/src/Command/limit.sh' ''\''/volume2/www/bin/ffmpeg-6.0-amd64-static/ffmpeg'\'' -nostdin -threads 1 -y -i '\''/volume2/www/test2.example.com/w/images/6/6b/Test.ogv'\'' -ss 1 -s 1920x1080 -f mjpeg -an -vframes 1 '\''/tmp/transform_7eb9fb4c6892.jpg'\'' 2>&1' 'SB_INCLUDE_STDERR=;SB_CPU_LIMIT=180; SB_CGROUP='\'''\''; SB_MEM_LIMIT=629145600; SB_FILE_SIZE_LIMIT=104857600; SB_WALL_CLOCK_LIMIT=180; SB_USE_LOG_PIPE=yes': /volume2/www/test2.example.com/w/vendor/wikimedia/shellbox/src/Command/limit.sh: line 4: $'\r': command not found
/volume2/www/test2.example.com/w/vendor/wikimedia/shellbox/src/Command/limit.sh: line 6: syntax error near unexpected token `$'{\r''
/volume2/www/test2.example.com/w/vendor/wikimedia/shellbox/src/Command/limit.sh: line 6: `cleanup() { 195.80.103.225 (talk) 10:56, 30 August 2023 (UTC)
- Does by any chance your host computer run Windows? The error messages complain about excess carriage return characters, which are used by Windows, but not by Linux. Tacsipacsi (talk) 09:56, 31 August 2023 (UTC)
- Apologies for the delay. The host is running on a Synology NAS Web Station, which I believe is using a Linux kernel. 195.80.103.225 (talk) 07:27, 11 September 2023 (UTC)
- Then maybe you copied from a Windows computer? I have no experience administering Linux servers from Windows, but I can imagine line endings could be problematic. If not, then I have no idea what’s going wrong. Tacsipacsi (talk) 08:47, 13 September 2023 (UTC)
Problems with the player at WikiFarm
Hello!
I have wiki farm with language subdomains and subdomain with keeping all files.
- en.mywiki.org - My English wiki
- de.mywiki.org - German one
- files.mywiki.org - Keep all images, video etc.
# One storage and uploads $wgUseSharedUploads = true; $wgHashedSharedUploadDirectory = true; $wgUploadNavigationUrl = 'https://files.wikijournal.org/wiki/Special:Upload'; $wgUploadPath = '/w-wiki/images'; $wgSharedUploadPath = $wgUploadPath; $wgUploadDirectory = "/var/www/admin/www/w/images"; $wgSharedUploadDirectory = $wgUploadDirectory; # Shared files $wgFetchCommonsDescriptions = true; $wgSharedUploadDBname = 'mywiki_org'; $wgSharedUploadDBprefix = 'files__'; # Table name prefix $wgRepositoryBaseUrl = "https://files.mywiki.org/wiki/File:";
When installed the extension and uploaded my video, I can view the video with the player on the page of uploaded file https://files.mywiki.org/wiki/File:MyVideo.mp4.But when I insert the file to the page at en.mywiki.org I see the warning "Error missing media source". Can you please help to setup the extension so that I can use player at my all wiki farm subdomains. Fokebox (talk) 10:00, 14 November 2023 (UTC)
- It is/was incompatible with ForeignDBRepo phab:T63986 until MediaWiki 1.41. Ciencia Al Poder (talk) 10:15, 14 November 2023 (UTC)
- it's also not super well tested with mp4 honestly. —TheDJ (Not WMF) (talk • contribs) 10:34, 14 November 2023 (UTC)
- Well, I'll try to use other format then as well Fokebox (talk) 10:55, 14 November 2023 (UTC)
Poster / hero / thumbnail image for a video?
I see from the extension page that
[[File:Video.ogv|File:Video.ogv]]
"Display a video at its nominal size. Displays a still image from the midpoint with a play button to start an embedded player."
My first question is, why does the file have to be specified twice? When I specify it just once, it seems to work just fine. So I'm not sure what I am missing.
But my real question is, "Is there ay way to override the the default behavior of displaying a still image from the midpoint of the video?" I have uploaded a hero / poster image from the video as an image file. But I can't see any syntax that let's me specify it as the image to use.
Is this possible? Calvin27516 (talk) 19:43, 2 December 2023 (UTC)
My first question is, why does the file have to be specified twice? When I specify it just once, it seems to work just fine. So I'm not sure what I am missing.
- The second occurrence is actually the caption, I have no idea why the examples look like this.
Is there ay way to override the the default behavior of displaying a still image from the midpoint of the video?
- It is possible to override which frame of the video to display (using
|thumbtime=
). It is not possible to display a completely different image. (I’m not the developer who made this decision, but to be honest, I like that it’s this way: I always find it annoying when I click on a YouTube video, and the scene visible on the thumbnail – because of which I clicked on it – doesn’t come up at all in the video. With TimedMediaHandler’s restrictions, this couldn’t happen.) Tacsipacsi (talk) 21:21, 2 December 2023 (UTC) - Thank you for the response. I was so hung up on specifying an alternate image file the way YouTube lets do that I completely skipped over the thumbtime parameter. I can live with that. Calvin27516 (talk) 09:44, 3 December 2023 (UTC)
- I've corrected the examples (will take some time to update due to the translations) —TheDJ (Not WMF) (talk • contribs) 10:40, 4 December 2023 (UTC)
MP4 handling
I've gotten this extension installed and working, but I am very confused with (local) MP4 video handling. Please give me a clue.
1) Is it possible to upload an MP4 (HTML5, right?) video that can be played without transcoding it to some other (OGV?) format?
2) Is it possible to have the video (auto)play inside the page without the "lightbox" player popping up?
Thanks in advance. 128.183.226.220 (talk) 18:49, 12 January 2024 (UTC)- Autoplay is currently being worked on phab:T116501, but non-autoplay videos will get the lightbox player regardless.
- Maybe Extension:EmbedVideo (fork) will serve you better than TimedMediaHandler, though. It appears it allows autoplay and embed the inline player, without generating derivative transcodings. Ciencia Al Poder (talk) 15:48, 13 January 2024 (UTC)
- And mp4 handling by TMH isn't really well tested/validated, because mp4 is not in use by Wikimedia. —TheDJ (Not WMF) (talk • contribs) 13:23, 9 April 2024 (UTC)
TimedText
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. Kimmywingz (talk) 16:44, 3 April 2024 (UTC)- EmbedVideo and TimedMediahandler are not really compatible and probably shouldn't both be installed at the same time.
- wrt to the error. I think that happens when timedmediahandler is unable to generate a thumbnail. Which likely means that timedmediahandler wasn't told about the path of the ffmpeg command. —TheDJ (Not WMF) (talk • contribs) 09:30, 4 April 2024 (UTC)
- Thank you for your response. EmbedVideo is disabled.
- For the ffmpeg command, this is the line in the LS.p - $wgFFmpegLocation = '/usr/bin/ffmpeg';
- I've tried it with and without this line with no change (same error). I don't know if it should point to a different location, and if so how would I determine that location. Would I need ImageMagick enabled/disabled to work with TMH? Does it make a difference?
- Thank you Kimmywingz (talk) 16:06, 4 April 2024 (UTC)
- How might I determine what the correct path for wgFFmpegLocation should be if not the default /usr/bin/ffmpeg?
- Are there any other thoughts on resolving this error, it is still persisting and I am unsure how to proceed?
- Thank you Kimmywingz (talk) 12:49, 9 April 2024 (UTC)
- Best is looking at the logs. See also Manual:How to debug. and see if you can find more details about the error context.
- > How might I determine what the correct path for wgFFmpegLocation should be if not the default /usr/bin/ffmpeg?
- I'm assuming you are on linux, but
which ffmpeg
will generally give you the right path of the binary. —TheDJ (Not WMF) (talk • contribs) 13:19, 9 April 2024 (UTC)
Documentation for auto-transcoding things on Commons
- Hi, I've uploaded File:3-4A set class on C.mid (a MIDI file) on Commons, and I'm wondering if I need to just wait (how long?) or perform any other magical incantations in order to generate Ogg/MP3 files for it (and several other MIDI files I'll need to upload for List of set classes). Is there some documentation somewhere I can look at, or does someone know? Thanks — Jonathanischoice (talk) 21:34, 24 June 2024 (UTC)
- It looks like we had a batch upload of many large, high-resolution videos which clogged up the queue a bit. For the time being we've disabled 1440p and 2160p output (so 1080p will be the high-resolution video transcode made) until I have a chance to rework some queue stuff to more cleanly prioritize things. Even with that it took a few days to clear everything that was backed up out of the queue, but it should be more or less consistent again.
- I definitely want to provide better visibility on the queue status in future, but might now it's just ugly to query. Needs some database table rearrangement and some different logic on the jobs. This'll be among my ongoing maintenance tasks, and I *really hope* to finish it this calendar year. Brooke Vibber (WMF) (talk) 21:00, 1 July 2024 (UTC)
- Hi, thanks for investigating. If the codebase is visible to a mere muggle such as myself, I'd be happy to try and help and/or contribute a pull request on Gerrit. Jonathanischoice (talk) 02:41, 3 July 2024 (UTC)
- The repository of each extension is linked from the Extension pages in the infobox. In this case it is is: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/TimedMediaHandler/+/refs/heads/master —TheDJ (Not WMF) (talk • contribs) 10:02, 3 July 2024 (UTC)
- It seems there is a bug at this moment. No audio-only files seem to be getting transcoded at all.
- I have filed phab:T368364 —TheDJ (Not WMF) (talk • contribs) 08:31, 25 June 2024 (UTC)
MIDI Soundfont
Hiya, is is possible to change the soundfont this extension uses when transcoding MIDI files? 2.28.117.139 (talk) 15:51, 17 August 2024 (UTC)
- Yes, you can set
$wgTmhSoundfontLocation
to the path of a soundfont file, which is then passed to FluidSynth as-is (apparently FluidSynth supports specifying multiple soundfont files, but this extension supports only one). Tacsipacsi (talk) 09:14, 19 August 2024 (UTC)
Adding missing language codes
The following language codes and corresponding should be added as they currently don't appear in many places, including TimedText language text such as this, despite having valid ISO codes:
'bfw' => 'Bonda/Remosam/ବଣ୍ଡା',
'gju' => 'गुज्जरी/Gujari/Gojri',
'hoc' => 'Ho/𑢹𑣉𑣉 𑣎𑣋𑣜',
'kgg' => 'Kusunda/Gemehaq gipan' Psubhashish (talk) 03:52, 11 December 2024 (UTC)
- This is handled via MediaWiki core. If the language code is a known language code to MediaWiki, it will show up in the list of All languages that is presented. —TheDJ (Not WMF) (talk • contribs) 13:15, 11 December 2024 (UTC)
- Thanks for clarifying, @TheDJ. Can you share the link to that, please? Psubhashish (talk) 14:31, 11 December 2024 (UTC)
- Difficult to provide details from your vague “how to get Pear installed and configured properly” (what system, architecture, environment?). I cannot guess what help you exactly need to succeed in installing and configuring. Regarding Pear installation generally:
- Can you provide a detailed, simplified walkthrough on how to get Pear installed and configured properly so the TimedMediaHandler extension functions correctly? I have read a ton of info and instructions, and I am still at a loss on what to do. My media extension refuses to work. All I need to do is get the embed player to appear inside the Template:Listen box. RigganRose (talk) 23:50, 5 June 2015 (UTC)