Results 1 to 8 of 8

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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.

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
  •