Index: trunk/extensions/WikiAtHome/WikiAtHome.php |
— | — | @@ -83,6 +83,7 @@ |
84 | 84 | 'noUpscaling' => "--no-upscaling", |
85 | 85 | 'videoQuality' => "-v", |
86 | 86 | 'videoBitrate' => "-V", |
| 87 | + 'twopass' => "--two-pass", |
87 | 88 | 'framerate' => "-F", |
88 | 89 | 'aspect' => "--aspect", |
89 | 90 | 'starttime' => "--starttime", |
— | — | @@ -155,7 +156,7 @@ |
156 | 157 | if( isset( $wah->foggMap[$key] ) ){ |
157 | 158 | if( is_array( $wah->foggMap[$key] ) ){ |
158 | 159 | $cmd.= ' '. implode(' ', $wah->foggMap[$key] ); |
159 | | - }else if($val == 'true'|| $val===true){ |
| 160 | + }else if($val == 'true' || $val===true){ |
160 | 161 | $cmd.= ' '. $wah->foggMap[$key]; |
161 | 162 | }else if( $val === false){ |
162 | 163 | //ignore "false" flags |
— | — | @@ -273,14 +274,16 @@ |
274 | 275 | 'framerate' => '15', |
275 | 276 | 'channels' => '1', |
276 | 277 | 'maxSize' => '200', |
277 | | - 'noUpscaling' => 'true' |
| 278 | + 'noUpscaling' => 'true', |
| 279 | + 'twopass' => 'true' |
278 | 280 | ); |
279 | 281 | $wgDerivativeSettings[ WikiAtHome::ENC_WEB_STREAM ] = |
280 | 282 | array( |
281 | 283 | 'maxSize' => '400', |
282 | 284 | 'videoBitrate' => '512', |
283 | 285 | 'audioBitrate' => '96', |
284 | | - 'noUpscaling' => 'true' |
| 286 | + 'noUpscaling' => 'true', |
| 287 | + 'twopass' => 'true' |
285 | 288 | ); |
286 | 289 | |
287 | 290 | $wgDerivativeSettings[ WikiAtHome::ENC_HQ_STREAM ] = |