Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

In PHPmotion (in versions before V2 RC1) WMV Files play too fast after they have been converted, and the sound plays at the normal speed.

Solution

This is an issue related to the code in all versions of PHPMotion up to the date of this post. It can be corrected by editing convertor.php

Find the following lines in convertor.php:

...

Code Block
languagephp
linenumberstrue
if(!file_exists($new_flv)){
if ($extension != 'wmv'){
$mencoder_cmd = "$path_to_mencoder $raw_video_path -o $new_flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=450:400 -srate 22050";
}
if ($extension == 'wmv'){
$mencoder_cmd = "$path_to_mencoder $raw_video_path -o $new_flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=450:400 -srate 22050 -ofps 13";
}
@exec("$mencoder_cmd 2>&1", $output);
}



 

Content by Label
showLabelsfalse
max5
spacesGKB
sortmodified
showSpacefalse
reversetrue
typepage
labelsWMV video fast PHPmotion PHP

...