Support Central » Knowledgebase » Knowledgebase Article Not logged in. Login
 
Announcements

Knowledge Base

Submit a Ticket

Client Login
Article » [PHPMotion] WMV Files play too fast

Rating:
Was this article helpful? YES NO MODERATELY
Views: 1742
Printable Version


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);
}



Follow-up and discuss this topic in our forums
Help Desk Powered By ProSupport v0.9.1