r54562 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54561‎ | r54562 | r54563 >
Date:00:58, 7 August 2009
Author:dale
Status:deferred
Tags:
Comment:
* added two pass to encode setting for fixed bitrate encodes
Modified paths:
  • /trunk/extensions/WikiAtHome/WikiAtHome.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiAtHome/WikiAtHome.php
@@ -83,6 +83,7 @@
8484 'noUpscaling' => "--no-upscaling",
8585 'videoQuality' => "-v",
8686 'videoBitrate' => "-V",
 87+ 'twopass' => "--two-pass",
8788 'framerate' => "-F",
8889 'aspect' => "--aspect",
8990 'starttime' => "--starttime",
@@ -155,7 +156,7 @@
156157 if( isset( $wah->foggMap[$key] ) ){
157158 if( is_array( $wah->foggMap[$key] ) ){
158159 $cmd.= ' '. implode(' ', $wah->foggMap[$key] );
159 - }else if($val == 'true'|| $val===true){
 160+ }else if($val == 'true' || $val===true){
160161 $cmd.= ' '. $wah->foggMap[$key];
161162 }else if( $val === false){
162163 //ignore "false" flags
@@ -273,14 +274,16 @@
274275 'framerate' => '15',
275276 'channels' => '1',
276277 'maxSize' => '200',
277 - 'noUpscaling' => 'true'
 278+ 'noUpscaling' => 'true',
 279+ 'twopass' => 'true'
278280 );
279281 $wgDerivativeSettings[ WikiAtHome::ENC_WEB_STREAM ] =
280282 array(
281283 'maxSize' => '400',
282284 'videoBitrate' => '512',
283285 'audioBitrate' => '96',
284 - 'noUpscaling' => 'true'
 286+ 'noUpscaling' => 'true',
 287+ 'twopass' => 'true'
285288 );
286289
287290 $wgDerivativeSettings[ WikiAtHome::ENC_HQ_STREAM ] =

Status & tagging log