aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_ffmpeg_helper
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/video_ffmpeg_helper')
-rw-r--r--plugins/video_ffmpeg_helper/video_ffmpeg_helper.info4
-rw-r--r--plugins/video_ffmpeg_helper/video_ffmpeg_helper.install43
-rw-r--r--plugins/video_ffmpeg_helper/video_ffmpeg_helper.module5
-rw-r--r--plugins/video_ffmpeg_helper/video_render.php2
-rw-r--r--plugins/video_ffmpeg_helper/video_scheduler.php2
5 files changed, 37 insertions, 19 deletions
diff --git a/plugins/video_ffmpeg_helper/video_ffmpeg_helper.info b/plugins/video_ffmpeg_helper/video_ffmpeg_helper.info
index e5ce7aa..9706e09 100644
--- a/plugins/video_ffmpeg_helper/video_ffmpeg_helper.info
+++ b/plugins/video_ffmpeg_helper/video_ffmpeg_helper.info
@@ -1,6 +1,8 @@
+;$Id$
name = Video ffmpeg Helper
description = Provide apis for ffmpeg. Simplify video nodes creation.
dependencies[] = video
dependencies[] = video_upload
package = "Video"
-core = 6.x \ No newline at end of file
+core = 6.x
+
diff --git a/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install b/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install
index 36289d5..f4b2ed9 100644
--- a/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install
+++ b/plugins/video_ffmpeg_helper/video_ffmpeg_helper.install
@@ -1,11 +1,11 @@
<?php
+//$Id$
/**
* @file
* Provide installation functions for video_ffmpeg_helper.module .
*
- * @author Fabio Varesano <fvaresano at yahoo dot it>
- * porting to Drupal 6
- * @author Heshan Wanigasooriya <heshan at heidisoft.com><heshanmw@gmail.com>
+ * @author Heshan Wanigasooriya <heshan at heidisoft dot com>
+ * <heshanmw at gmail dot com>
* @todo
*/
@@ -14,64 +14,83 @@
*/
function video_ffmpeg_helper_schema() {
$schema['video_rendering'] = array(
- 'description' => t('TODO'),
+ 'description' => t('Store video transcoding queue'),
'fields' => array(
'vid' => array(
- 'description' => t('TODO'),
+ 'description' => t('video id : primary key'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
- 'description' => t('TODO'),
+ 'description' => t('Node id : index of the {node}.nid'),
+ 'type' => 'int',
+ 'unsigned' => TRUE,
+ 'not null' => TRUE,
+ 'default' => 0,
+ ),
+ 'fid' => array(
+ 'description' => t('FIle id, index to the {files}.fid'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'origfile' => array(
- 'description' => t('TODO'),
+ 'description' => t('original file path'),
'type' => 'text',
'not null' => TRUE,
'default' => '',
),
'pid' => array(
- 'description' => t('TODO'),
+ 'description' => t('Pid'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'status' => array(
- 'description' => t('TODO'),
+ 'description' => t('status of the transcoding'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'started' => array(
- 'description' => t('TODO'),
+ 'description' => t('Started transcodings'),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'completed' => array(
- 'description' => t('TODO'),
+ 'description' => t('Transcoding completed'),
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
),
+ 'indexes' => array(
+ 'fid' => array('fid'),
+ 'nid' => array('nid'),
+ ),
'primary key' => array('vid'),
);
return $schema;
}
-
+/**
+ * Implementation of hook_install().
+ */
function video_ffmpeg_helper_install() {
// Create tables.
drupal_install_schema('video_ffmpeg_helper');
}
+/**
+ * Implementation of hook_uninstall().
+ */
+function video_ffmpeg_helper_uninstall() {
+ drupal_uninstall_schema('video_ffmpeg_helper');
+} \ No newline at end of file
diff --git a/plugins/video_ffmpeg_helper/video_ffmpeg_helper.module b/plugins/video_ffmpeg_helper/video_ffmpeg_helper.module
index 446058d..b22a0f4 100644
--- a/plugins/video_ffmpeg_helper/video_ffmpeg_helper.module
+++ b/plugins/video_ffmpeg_helper/video_ffmpeg_helper.module
@@ -1,5 +1,5 @@
<?php
-
+//$Id$
/**
* @file
* Provide some api for use ffmpeg. Simplify video nodes creation.
@@ -405,9 +405,6 @@ function _video_ffmpeg_helper_get_video_info(&$node, $value=null) {
* Return the video resolution
*/
function _video_ffmpeg_helper_auto_resolution(&$node) {
- if(!$node->new_video_upload_file && !$node->new_video_upload_file_fid) { // no new files uploaded. skipping auto resolution process
- return null;
- }
if(variable_get('video_ffmpeg_helper_auto_resolution', false)) {
diff --git a/plugins/video_ffmpeg_helper/video_render.php b/plugins/video_ffmpeg_helper/video_render.php
index bba9220..83bae31 100644
--- a/plugins/video_ffmpeg_helper/video_render.php
+++ b/plugins/video_ffmpeg_helper/video_render.php
@@ -1,5 +1,5 @@
<?php
-
+//$Id$
/**
* @file
* Renders a video. This script is called concurrently by video_scheduler.php
diff --git a/plugins/video_ffmpeg_helper/video_scheduler.php b/plugins/video_ffmpeg_helper/video_scheduler.php
index 7faf446..b33da11 100644
--- a/plugins/video_ffmpeg_helper/video_scheduler.php
+++ b/plugins/video_ffmpeg_helper/video_scheduler.php
@@ -1,5 +1,5 @@
<?php
-
+//$Id$
/**
* @file
* Implement video rendering scheduling.