Extension talk:TimedMediaHandler

From MediaWiki.org
Jump to: navigation, search

Contents

Thread titleRepliesLast modified
MP3 patents015:33, 16 June 2013
Bigger subtitles when switching to fullscreen022:12, 13 March 2013
How to enable transcoding to H.264 ?611:44, 13 March 2013
How am I supposed to create the table mywikidb.mywiki_transcode in the first place?321:17, 3 March 2013
Fatal error: Call to undefined method Message::numParams()015:05, 2 January 2013
Seek bar008:59, 11 November 2012
Missing or misplaced files015:31, 21 January 2012
Where to find mwEmbedSupport extension109:46, 17 October 2011

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 - Talk15:33, 16 June 2013

Bigger subtitles when switching to fullscreen

How to have bigger subtitles when switching to fullscreen ?

Any idea ?

Dieudo (talk)22:12, 13 March 2013

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

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 :

Statut de transcodage.png
Available formats.png

Any idea where is the bug ?

Dieudo (talk)10:51, 8 March 2013

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

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

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

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
 
 
 
 
 

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

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

A temporary solution to this problem, is to set this in the file LocalSettings.php :

$wgEnableTranscode = false;
Dieudo (talk)10:01, 13 February 2013

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
 
 
 

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

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

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.11215:31, 21 January 2012

Where to find mwEmbedSupport extension

Edited by another user.
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.

User:Wikimanz15:48, 13 October 2011

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.

Mdale09:45, 17 October 2011