I would like to first thank bplex for your input, a lot of your previous posts has helped me out when I was having trouble with this script. So thanks again.
As for the functions_upload.php file. I have uploaded the new file and I did test it and it converted the .flv file with the watermark with no issues. I have delete the code below
**REMEMBER TO BACKUP YOUR FILES**
Code:
if ($file_extn == 'flv' || $file_extn == 'mp4')
{
$log_text = "<h2>MOVING UPLOADED FLV: $video_src => $video_flv</h2>";
write_log($log_text, $log_file_name, $debug, 'html');
if (! copy($video_src, $video_flv))
{
$log_text = 'ERROR: moving uploaded file failed';
write_log($log_text, $log_file_name, $debug, 'html');
}
if ($file_extn == 'flv')
{
if (get_config('enable_flvtool') == 1)
{
$cmd_flvtool = $config['flvtool'] . ' -U ' . $video_flv;
$tmp = exec($cmd_flvtool, $exec_result);
$log_text = "<h2>Running flvtool2: $cmd_flvtool</h2>";
write_log($log_text, $log_file_name, $debug, 'html');
}
}
}
else
This tells vshare to skip the encoding process for .flv files and only insert the meta data in to the .flv file. Now vShare wil convert all .flv files and add the watermark to all uploaded videos.
Please let me know if this did or did not work. Thanks
Bookmarks