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
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
I am currently running version 2.7
Hi,
This fix only for vshare 2.7
open file include/functions_upload.php
find
replacePHP Code:
if ($file_extn == 'mp4')
{
$rand_flv_name = $rand_name . '.mp4';
$outExtn = '.mp4';
}
again findPHP Code:
/*
if ($file_extn == 'mp4')
{
$rand_flv_name = $rand_name . '.mp4';
$outExtn = '.mp4';
}
*/
replacePHP Code:
if ($file_extn == 'flv' || $file_extn == 'mp4')
ThanksPHP Code:
if ($file_extn == 'flv')
What about for version 2.8.1?
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.
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
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:
How do I make my vShare convert all the different file formats that get submitted into flv?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;
Bookmarks