l'exécution de la conversion d'upload ne ce fait pas, je suis obligé d'appeler le script manuellement ...
//============================START OF FFMPEG ACTIONS ==================================
// sending command to convertor.php tp convert the movie named : uploaded_file_name ..
// conversion happens in background so user is not delayed browser window can even be closed.
$base_path = installation_paths();
$convertor = $base_path . '/convertor.php';
//check if we are debugging so the convertor is called as url
if ($debugmodex == 1){ //yes debug mode
header("Location: " . "convertor.php?id=$uploaded_file_name&debug=1");
die;
}
//else load convertor in background
exec("$path_to_php $convertor $uploaded_file_name> /dev/null &");// (>/dev/null & part is what sends to background)
//=================================== START OF TBS DISPLAY ====================================
/////////////////////////////////////////
// V3 video response done via thickbox
// don't fire up main_1 or site complete
if ( $vid_response == 'vid_response' ) {
$template = "themes/$user_theme/templates/response_upload_complete.htm";
} else {
$template = "themes/$user_theme/templates/main_1.htm";
$inner_template1 = "themes/$user_theme/templates/inner_upload_complete.htm";
}
$covertor_url = $config["site_base_url"].'/convertor.php';
@exec("curl -G $covertor_url > /dev/null &");// (required where background process does not work)
$TBS = new clsTinyButStrong;
$TBS->NoErr = true;
$TBS->LoadTemplate("$template");
$TBS->Render = TBS_OUTPUT;
$TBS->Show();
@exec("$path_to_php $convertor $uploaded_file_name> /dev/null &");// (>/dev/null & part is what sends to background)
@mysql_close();
die();
en fin d'upload le script convertor.php doit se lancer et effectuer la conversion automatiquement, mais ca ne marche pas, sauf si je l'envoie manuellement.une idée ?