i am wondering if some1 can help me to create a video converting button
i need to say , i use 2 servers , 1 file server and 1 webserver
the video's are encoded when i upload them public ( custom edit) but not when private ( custom edit)
now i was creating a button so a user can convert the video after they got it stored on the site
but i can not seems to get teh button to work
here is my code so far , it would be nice if i can get a edit of it that shoul work over 2 servers
Code: Select all
if($f->{convert_file} && $f->{file_id})
{
my $file = $db->SelectRow("SELECT * FROM Files
WHERE file_id=?",$f->{file_id});
my $dx = sprintf("%05d",$file->{file_id}/$c->{files_per_folder});
$file->{dx} = $dx;
if ($file->{file_name}=~/\.(avi|divx|xvid|mpg|mpeg|vob|mov|3gp|flv|mp4|wmv|mkv)$/i)
{
open(FILE,">>enc.list");
print FILE "$dx:$file->{file_code}\n";
close FILE;
$ses->message("File Succesfully added to converting queue");
exit;
}
$ses->message("You Selected files that are not video files");
}
the >>enc.list is the biggest problem
because i do not have that file on my main server ( renamed it to enc2.list as else my vid mod refused to work)
but i see that it adds my server code to it and my video link i need
so the final question and basicly only problem i have is to know how i can get it on my second server .. and not on my first server like it does now
i got to less knowledge about this script/system to figure it out on my own :s
Thank you for your support/help
Greetings From PowerChaos