diff options
author | glen201 <glen201@527446.no-reply.drupal.org> | 2009-07-24 22:03:46 +0000 |
---|---|---|
committer | glen201 <glen201@527446.no-reply.drupal.org> | 2009-07-24 22:03:46 +0000 |
commit | 8f1f6e3d94558ca076b3d93f2a36e262f9dbd8ae (patch) | |
tree | 2d39aac399337ac20ae868ed2ec8848702d4ac30 /plugins/video_ffmpeg_helper/video_render.php | |
parent | 14baacf96de6458c394e288fa82af4b89b976428 (diff) | |
download | video-8f1f6e3d94558ca076b3d93f2a36e262f9dbd8ae.tar.gz video-8f1f6e3d94558ca076b3d93f2a36e262f9dbd8ae.tar.bz2 |
Fixed no timestamp on ffmpeg converted videos
Removed duplicative defines at top of files
#522148 by captix: fixed (Commit #242492 improperly marked): video_image updated to default promote of Image node to false if video_image Promote and Image Project module Promote settings not configured
Diffstat (limited to 'plugins/video_ffmpeg_helper/video_render.php')
-rw-r--r-- | plugins/video_ffmpeg_helper/video_render.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/video_ffmpeg_helper/video_render.php b/plugins/video_ffmpeg_helper/video_render.php index e4a6b6d..a6b1fbe 100644 --- a/plugins/video_ffmpeg_helper/video_render.php +++ b/plugins/video_ffmpeg_helper/video_render.php @@ -12,6 +12,7 @@ * @author Fabio Varesano <fvaresano at yahoo dot it> * porting to Drupal 6 * @author Heshan Wanigasooriya <heshan at heidisoft.com><heshanmw@gmail.com> + * @author Glen Marianko Twitter@demoforum <glenm at demoforum dot com> * @todo */ @@ -19,16 +20,13 @@ /** * video_scheduler.php configuration */ -// set to the ffmpeg executable -define('VIDEO_RENDERING_FFMPEG_PATH', '/home2/heidisof/bin/./ffmpeg'); +// set path to the ffmpeg executable +define('VIDEO_RENDERING_FFMPEG_PATH', '/usr/bin/ffmpeg'); // set to the temp file path. //IMPORTANT: the user who runs this script must have permissions to create files there. If this is not the case the default php temporary folder will be used. define('VIDEO_RENDERING_TEMP_PATH', '/tmp/video'); -// number of conversion jobs active at the same time -define('VIDEO_RENDERING_FFMPEG_INSTANCES', 5); - // nice value to append at the beginning of the command define('VIDEO_RENDERING_NICE', 'nice -n 19'); @@ -133,7 +131,8 @@ function video_render_main() { if (file_copy($file, $dest_dir)) { //$file->fid = db_next_id('{files}_fid'); //print_r($file); - db_query("INSERT INTO {files} (fid, uid, filename, filepath, filemime, filesize, status) VALUES (%d, %d, '%s', '%s', '%s', %d, %d)", $file->fid, $job->uid, $file->filename, $file->filepath, $file->filemime, $file->filesize, 1); + //GMM: fixed added timestamp column for completeness (otherwise 0), D6 FILE_STATUS + db_query("INSERT INTO {files} (fid, uid, filename, filepath, filemime, filesize, status, timestamp) VALUES (%d, %d, '%s', '%s', '%s', %d, %d, %d)", $file->fid, $job->uid, $file->filename, $file->filepath, $file->filemime, $file->filesize, FILE_STATUS_PERMANENT, time()); // to know other modules of fid $file->fid = db_last_insert_id('files', 'fid'); |