What's new in video module 6.x-4.2-ALPHA2
Submitted by heshan on Sun, 12/05/2010 - 08:17
On Dec 4th I released an enhanced video module build with many new features. Specially now its supporting HTML5 videos on Drupal sites. Not only they we added number of new enhancements to the module to improve the user experience and many other aspects.
Here are the list of new features and would like to get more user inputs to improve the usability of the module.
What's new?
- HTML5 Support
Upload one file and let it convert to proper HTML5 formats (mp4, webm, ogv). - HTML5 Player
In the video module settings -> player tab, you can see a new player is been added. If you want to play your mp4, ogv, webm video using HTML5 native video player you can select HTML5 player for proper filetypes.

- Transcoder Interfaces
Simplified transcoder interface and now you can select eigther locally installed transcoders or remote WS based transcoders(Zencoder)

- Transcoder Presets
This is the best feature we have and now anyone can have any number of their own transcoding presets, users can use any type of transcoder to use transcode videos.

Simple video preset interface let you select any type of presets and multiple or single presets.

- FileSystem
Switch between local file system and enhanced Amazon S3

How to create my own video preset?
Download the video module
Creating your own video preset is pretty easy, go to your downloaded video module files and you can see video_presets folder. Get one file and open it up in a favorite editor you have.
Create a module (hope you know how to create new module), there you can add new folder called video_preset, then create new file eg:demo_file.inc.
Open up the demo_file.inc and paste the code form the existing one.
Sample code is as below.
<?php
/*
* @file
* Class file used to store preset on the video conversion.
*
*/
class demo_file implements video_preset_interface {
protected $name = 'Demo Preset';
protected $value = 'demo_file';
public function __construct() {
}
/**
* Interface Implementations
* @see sites/all/modules/video/includes/preset_interface#get_name()
*/
public function get_name() {
return $this->name;
}
/**
* Interface Implementations
* @see sites/all/modules/video/includes/preset_interface#get_help()
*/
public function get_help() {
return t('<b>Demo Preset Help</b>', array());
}
/**
* Interface Implementations
* @see sites/all/modules/video/includes/preset_interface#get_value()
*/
public function get_value() {
return $this->value;
}
/**
* Interface Implementations
* @see sites/all/modules/video/includes/preset_interface#get_properties()
*/
public function get_properties() {
$properties = array(
// output file extension
'extension' => 'mp4',
// this is how you can use 2 pass encoding videos
'command' => array(
'!cmd_path -i !videofile -an -pass 1 -vcodec libx264 -vpre slow_firstpass -b 500k -threads 0 !convertfile',
'!cmd_path -i !videofile -acodec libfaac -ab 128k -pass 2 -vcodec libx264 -vpre slow -b 500k -threads 0 !convertfile'
)
);
return $properties;
}
}
?>»
- heshan's blog
- 4087 reads




Coastal wave heights will
Coastal wave heights will generally be less labatterie especially the break does not have unobstructed exposure to the open ocean...
Post new comment