aboutsummaryrefslogtreecommitdiff
path: root/modules/video_zencoder
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-06 23:22:38 +0530
committerHeshan <heshan@heidisoft.com>2011-03-06 23:22:38 +0530
commit7235ebc06e881ebefe1d2c45a3b0f5304e26b936 (patch)
tree43a58a1a988ad29a03fde22e638f234564cfc275 /modules/video_zencoder
parentf1b598ecbcc28304aa33d98d6c42ab29af1c2b42 (diff)
downloadvideo-7235ebc06e881ebefe1d2c45a3b0f5304e26b936.tar.gz
video-7235ebc06e881ebefe1d2c45a3b0f5304e26b936.tar.bz2
Completed general video upload with Video field and auto thumbnails creation using FFMPEG
Diffstat (limited to 'modules/video_zencoder')
-rw-r--r--modules/video_zencoder/includes/zencoder.inc2
-rw-r--r--modules/video_zencoder/transcoders/video_zencoder.inc2
-rw-r--r--modules/video_zencoder/video_zencoder.module2
3 files changed, 3 insertions, 3 deletions
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';