Issue: 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.
Resolution: 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:
if(!file_exists($new_flv)){
$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";
@exec("$mencoder_cmd 2>&1", $output);
}
and replace with:
Code:
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);
}