|Thread title||Replies||Last modified|
|How to enable transcoding to H.264 ?||7||12:49, 30 November 2013|
|Popup behaviour||0||18:15, 30 October 2013|
|OggHandler error||0||10:19, 15 October 2013|
|Bug: Causes /tmp directory to fill up||0||23:57, 5 October 2013|
|MP3 patents||0||15:33, 16 June 2013|
|Bigger subtitles when switching to fullscreen||0||22:12, 13 March 2013|
|How am I supposed to create the table mywikidb.mywiki_transcode in the first place?||3||21:17, 3 March 2013|
|Fatal error: Call to undefined method Message::numParams()||0||15:05, 2 January 2013|
|Seek bar||0||08:59, 11 November 2012|
|Missing or misplaced files||0||15:31, 21 January 2012|
|Where to find mwEmbedSupport extension||1||09:46, 17 October 2011|
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 ?
The beginning of a solution in the file TimedMediaHandler.php :
/** * 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 ?
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.
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 ?
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.
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*
How am I supposed to create the table mywikidb.mywiki_transcode in the first place?
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.
Same problem, same question.
With this configuration :
- MediaWiki 1.20.2
- MwEmbedSupport (Version 0.2)
- TimedMediaHandler (Version 0.3)
Thanks for any help ;-)
A temporary solution to this problem, is to set this in the file LocalSettings.php :
$wgEnableTranscode = false;
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
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?
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.
Last edit: 15:52, 13 October 2011
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.
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.