XFileSharing Pro - Video Converting Button

Posts: 521
Joined: Dec 19, 2009 5:12 pm

Video Converting Button

#1 Postby PowerChaos » Aug 27, 2011 10:48 pm

hi all
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)
      print FILE "$dx:$file->{file_code}\n";
      close FILE;
     $ses->message("File Succesfully added to converting queue");
$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

Posts: 521
Joined: Dec 19, 2009 5:12 pm

#2 Postby PowerChaos » Aug 29, 2011 10:35 pm

it would be nice if i can get a answer on this 1 or a work around

at this moment the button is working perfect
but i just need to figure out how i am able to add the code to the right file or is it possible to run it on my webserver so it start encoding the file on my second server ??

the reason why i ask this is because i like to provide the users a option to manual covert files ( usefull with torrents)

else i need to force the users to get the files encoded and not all users like that part :'(

or if possible , can you provide me a code snipped of how i can make the users select if they want to encode or not ? , so i can manual add that option to the upload form

same would be nice from the remote uploads , so they can be public or encoded or just private or just as original

hopely you understand what i exactly mean

Thank you
Greetings From PowerChaos

User avatar
Posts: 2187
Joined: Mar 22, 2006 1:39 pm

#3 Postby PilgrimX182 » Aug 30, 2011 12:59 pm

This should be done via api.cgi. We can do this for you for $40 if you need it.
Contact [email protected] with site access details to Main and File servers.

Posts: 521
Joined: Dec 19, 2009 5:12 pm

#4 Postby PowerChaos » Aug 31, 2011 10:46 pm

Thank you
you dit a great Job, it is working perfect like it need to be

Thank you
Greetings From PowerChaos

Return to “XFileSharing Pro”