From 7235ebc06e881ebefe1d2c45a3b0f5304e26b936 Mon Sep 17 00:00:00 2001 From: Heshan Date: Sun, 6 Mar 2011 23:22:38 +0530 Subject: Completed general video upload with Video field and auto thumbnails creation using FFMPEG --- modules/video_zencoder/includes/zencoder.inc | 2 +- modules/video_zencoder/transcoders/video_zencoder.inc | 2 +- modules/video_zencoder/video_zencoder.module | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/video_zencoder') diff --git a/modules/video_zencoder/includes/zencoder.inc b/modules/video_zencoder/includes/zencoder.inc index c3023b0..fd273ba 100644 --- a/modules/video_zencoder/includes/zencoder.inc +++ b/modules/video_zencoder/includes/zencoder.inc @@ -53,7 +53,7 @@ class video_zencoder_api { // watchdog('zencoder', $input_name); // thumbnails // Setup our thmbnail path. - $video_thumb_path = variable_get('video_thumb_path', 'video_thumbs'); + $video_thumb_path = variable_get('video_thumb_path', 'videos/thumbnails'); $final_thumb_path = file_default_scheme() . ':/' . $video_thumb_path . '/' . $file->fid; // Notifications diff --git a/modules/video_zencoder/transcoders/video_zencoder.inc b/modules/video_zencoder/transcoders/video_zencoder.inc index 1eb246a..baaffc2 100644 --- a/modules/video_zencoder/transcoders/video_zencoder.inc +++ b/modules/video_zencoder/transcoders/video_zencoder.inc @@ -19,7 +19,7 @@ class video_zencoder implements transcoder_interface { public function generate_thumbnails($video) { global $user; // Setup our thmbnail path. - $video_thumb_path = variable_get('video_thumb_path', 'video_thumbs'); + $video_thumb_path = variable_get('video_thumb_path', 'videos/thumbnails'); $final_thumb_path = file_default_scheme() . ':/' . $video_thumb_path . '/' . $video['fid']; // Ensure the destination directory exists and is writable. diff --git a/modules/video_zencoder/video_zencoder.module b/modules/video_zencoder/video_zencoder.module index 7f2218e..0919866 100644 --- a/modules/video_zencoder/video_zencoder.module +++ b/modules/video_zencoder/video_zencoder.module @@ -88,7 +88,7 @@ function _video_zencoder_postback_jobs() { // update the thumbanils // this will update the default thumbnails, if user want to select another one then they wil need to edit the node // Setup our thmbnail path. - $video_thumb_path = variable_get('video_thumb_path', 'video_thumbs'); + $video_thumb_path = variable_get('video_thumb_path', 'videos/thumbnails'); $final_thumb_path = file_default_scheme() . ':/' . $video_thumb_path . '/' . $fid; // $i = rand(0, (variable_get('no_of_video_thumbs', 5) - 1)); $filename = $fid . '_' . sprintf("%04d", 1) . '.png'; -- cgit v1.2.3