Results 1 to 1 of 1

Thread: [PHPMotion] WMV Files play too fast

  1. #1
    Matt's Avatar
    Matt is online now GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    6,208

    Default [PHPMotion] WMV Files play too fast

    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);
    }
    Last edited by admin; 05-12-2008 at 03:42 PM.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

Similar Threads

  1. [PHPMotion] Change the player logo for PHPmotion
    By Matt in forum Knowledge Base
    Replies: 1
    Last Post: 03-12-2011, 08:49 AM
  2. Local Files - Firefox
    By rlhanson in forum Programming Talk
    Replies: 22
    Last Post: 02-27-2009, 06:49 PM
  3. Can't delete files -- re-install prevented
    By JohnMorris in forum General Support
    Replies: 1
    Last Post: 04-30-2008, 11:54 PM
  4. I want to play Flash video in my server
    By ebookmania in forum General Support
    Replies: 8
    Last Post: 06-15-2007, 02:59 AM
  5. Can't delete files in cPanel and I am over quota
    By Matt in forum Knowledge Base
    Replies: 2
    Last Post: 06-15-2006, 12:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14