Results 1 to 8 of 8

Thread: How Can I force mp4 to convert to .flv

  1. #1

    Default How Can I force mp4 to convert to .flv

    I noticed that .mp4 videos stay in .mp4 format. How can I change the code to force the script to convert all .mp4 files to .flv

  2. #2
    Join Date
    Dec 2009
    Posts
    71

    Default

    Hai

    which vshare version you are using?

    Thanks

  3. #3

    Default

    I am currently running version 2.7

  4. #4
    Join Date
    Dec 2009
    Posts
    71

    Default

    Hi,

    This fix only for vshare 2.7
    open file include/functions_upload.php
    find

    PHP Code:
    if ($file_extn == 'mp4')
                {
                    
    $rand_flv_name $rand_name '.mp4';
                    
    $outExtn '.mp4';
                } 
    replace
    PHP Code:
    /*
    if ($file_extn == 'mp4')
                {
                    $rand_flv_name = $rand_name . '.mp4';
                    $outExtn = '.mp4';
                }
    */ 
    again find

    PHP Code:
    if ($file_extn == 'flv' || $file_extn == 'mp4'
    replace

    PHP Code:
    if ($file_extn == 'flv'
    Thanks

  5. #5

    Default

    What about for version 2.8.1?

  6. #6
    Join Date
    Dec 2009
    Posts
    71

    Default

    Hi,

    Open include/settings/video_format.php

    change mp4 instead flv

    $video_output_format = 'flv';

    Thanks

    Buyscripts Team
    Last edited by vshare2; 02-19-2013 at 05:02 AM.

  7. #7

    Default

    Hi,

    Is there's a way to reconverted old converted MP4 videos to be FLV? i try to reconvert it using admin but i am getting an error reconverting it, wont success (original source file was AVI)

    Regards,
    Mark

  8. #8
    Join Date
    Jan 2012
    Posts
    2

    Default

    Quote Originally Posted by vshare View Post
    Hi,

    Open include/settings/video_conversion.php

    change mp4 instead flv

    $video_output_format = 'flv';

    Thanks

    Buyscripts Team
    I am using 2.8.1 and in my video_conversion.php there is no lines to edit like what you show above. I have this:

    PHP Code:
    <?php


    $cmd_ffmpeg 
    "$config[ffmpeg] -i '$video_src' -acodec libmp3lame -ar 22050 -ab 32 -f flv $video_flv";


    # For old version of mplayer
    # $cmd_mencoder = "$config[mencoder] '$video_src' -o $video_flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames";


    # For latest version of mplayer
    $cmd_mencoder "$config[mencoder] '$video_src' -o $video_flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf harddup";


    # Convert video to mp4
    $cmd_mp4 "$config[ffmpeg] -i '$video_src' -acodec libfaac -ab 96k -vcodec libx264 -vpre hq -crf 22 -threads 0 -b 500k $video_flv";


    $convert_mp4 $cmd_mencoder;
    $convert_3gp $cmd_mencoder;
    $convert_mov $cmd_mencoder;
    $convert_asf $cmd_mencoder;
    $convert_mpg $cmd_mencoder;
    $convert_avi $cmd_mencoder;
    $convert_mpeg $cmd_mencoder;
    $convert_wmv $cmd_mencoder;
    $convert_rm $cmd_mencoder;
    $convert_dat $cmd_mencoder;
    How do I make my vShare convert all the different file formats that get submitted into flv?

Bookmarks

Posting Permissions

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