Welcome to the Video Module Documentation

Welcome to Video Module Handbook!


Open Source is all about contributions. Countless numbers of developers are all giving of their time and talents to code, document, test, design, and deliver software so that the end user may benefit from it. The video module is here to contribute service to the community.

The non-profit video module team is able to provide its services to the open source community thanks to the generous support of individual donors.

Our main goal is to provide a helpfull, easy and good understandable handbook to all Video Module users. The simplicity is the main reson of using video module addition to its solid technical background.

This handbook containg installation guide and traubleshoot guide

Your rating: None Average: 8.6 (207 votes)

Introduction to Video Module

The Video module allows users to post video content to their site using CCK and filefield module support. The emergence of portable devices with video capture and playback capabilities has made online video ubiquitous.
Video logging, or "vlogging" as a medium for personal video broadcasting has proven to be popular and is following the blogging and podcasting phenomenon. Videos are useful for creative collaboration among community members, for cases where community members cannot meet in person, videos cataloguing of meetings are valuable for enhancing the interaction between community members.
The video module can be configured to use a variety of players depending on formats, using either built in browser plug-ins, SWF tools or Flowplayer.
Combined with FFMPEG (default), Zencoder transcoders support, the Video module allows users to create video thumbnails and convert videos to flash format (and others), the Video module also has built in support for Amazon CDN further enhancing video content delivery.
Specially released in the 6.x-3, 6.x-4 versions of the Video module shipped with a solid API for converting videos and creating thumbnails with any other type of video transcoder.

Download Latest version from project page

Your rating: None Average: 7.8 (50 votes)

Installing Video Module

Download Video Module from project page

 

Required and Enhancement Modules for Video Module

At its core, the Video module is a field and handler for CCK; it enhances CCK and Filefield to provide video uploading, video transcoding (local ffmpeg default), video thumbnail creation and selection; and choice of playback method per format.
Additional features for Video module include: Zencoder transcoding integration, Amazon S3 integration and attaching FTP'd file to nodes.
Other modules which Video module integrates with are; SWF Tools and Flowplayer (use these if you need more video player options).
 

Required

Enhancement

Once you have installed and configured CCK, Filefield and video player (optional) you can then install Video module from the module administration page (Administer > Site building > Modules).

Link : Detailed description on installing contributed modules.

  

Your rating: None Average: 7.8 (29 votes)

Configuring Video Module

Configuring Video Module

Now that Video module is installed, it's time to configure it from Admin > Settings > Video (admin/settings/video). Configuration is split into tabs:

Your rating: None Average: 7.4 (61 votes)

General

General

These options allow you to control how the Video module acts.

Your rating: None Average: 5.6 (11 votes)

Players

Each video extension, has a Drop down choice for the type of player to be used for the video, when selecting SWF Player or FLV Flash Players, a radio list will appear with a choice of Flash players. If you are using Zencoder/Amazon S3 configuration please use Flowplayer *without* Flowplayer enabled in SWF Tools as they share the same folder name and will conflict.

 

Your rating: None Average: 5.1 (10 votes)

Transcoders

On the transcoder page you have a choice of two built in transcoders, if you would like to use Zencoder module, you can do so from here, otherwise you will be using FFMPEG.

FFMPEG will use locally installed FFMPEG so, it is REQUIRED (ffmpeg.org/) to have installed the FFMPEG on your server, FFMPEG will only have basic options but for advanced FFMPEG like watermarking etc. FFMPEG is processor intensive and you will need to have fast server and lot of resources to handle FFMPEG properly, so if you need light weight, fast way to convert videos or if your in a shared hosting you can use Zencoder transcoding API. Zencoder is a award winning video delivery platform.

 Configure Zencoder video.heidisoft.com/documentation/configure-zencoder

Your rating: None Average: 5.9 (9 votes)

Presets

Drupal 7 presets are exportable so you can download the Features package from here(D7 only).

Presets are set of predefined transcoding profiles. Read more about presets. In presets you can select these combinations.

  • You can select Flash only (In Players tab you have to select Flash Player).
  • You can select HTML5 MP4, HTML5 Theora, HTML5 WebM togethor to work as HTML5. Fallback will work with MP4 and Flowplayer (You have to select HTML5 player for mp4, ogv, ogg, webm formats).
  • iPhone MOV to play on mobile devices.

Currently you can only select those combinations. If you need any more you can create new presets. This module is still incompatible with HTML5 and Flash combinations. You can contact author for more details or new features.

 

 

Your rating: None Average: 8.6 (5 votes)

Metadata

Metadata is particularly useful in video, where information about its contents (such as transcripts of conversations and text descriptions of its scenes) are not directly understandable by a computer, but where efficient search is desirable. To extract metadata from video we are using FLVTools2, so we strongly recommend you to install FLVTools2. github.com/unnu/flvtool2, once you successfully install module just check the Enable Meta Data check box

Required Install : github.com/unnu/flvtool2

 


Your rating: None Average: 10 (1 vote)

File System

Enable the Amazon S3 to use Amazon S3 storage.

In order to enable the Amazon S3 service, you must have already signed up or sign-up here (aws.amazon.com/s3/), enter your Access Key ID, Secret Access Key (available from AWS - Amazon Web Service). Create a bucket name, we suggest you to have "sitename.drupal.video". Clicking the Save Configuration will store your details for later use. 

Enable the Amazon S3 service to use with video module.

Your rating: None Average: 6 (5 votes)

Cron

Cron setting to convert videos, this will use Drupal cron if you enable it from here, it is easy for testing but not for products, for the production we highly recommend you to set up crontab for video_scheduler.php as below. You can find that file in the video directory.

 

The crontab should look something like this:

  # m     h       dom     mon     dow     user            command

  */20     *       *       *       *       www-data        cd /absolute/path/to/video/module; php video_scheduler.php

 # m     h       dom     mon     dow     user            command

  */20     *       *       *       *       www-data        cd /absolute/path/to/drupal; php cron.php

This will execute the video_scheduler every 20 minutes.

Note that the video_scheduler doesn't produce any output and cannot be called from the web. It will, however, put some information in the watchdog.

You can use Drush too, video module is compatible with Drush, this means you can just drop the video module within the module directory like any other module, enable it and the video-scheduler command is available, nothing extra to do in the setup.

Your rating: None Average: 7 (8 votes)

Zencoder for Drupal

Zencoder is the best encoding technology on the market with hundreds of custom optimizations delivers your video in less time than the length of the video. Even at HD quality.

Your rating: None Average: 8 (6 votes)

Configure Zencoder for Video Module

Note : This module will need to have public access to your development server, once you submit a job then Zencoder will postback some info to your server once conversion is completed, then only autothumbnail and status update in the database will happen. In the Zencoder Transcoder settings you can see the post back URL there.

How to configure Zencoder with the Video Module.

Go to Admin->Site Configurations->video->transcoders

Select Zencoder as your transcoder and type your email address to start using it. If you want to enter new Zencoder account always use Drupal interface. You can simply reset to default value and create new acccount. Make sure you register your Zencoder acccount only through the module page.

Once you save your site configurations, you will receive a email with all the details, including how to login to this and how to manage a job. Once you create your Zencoder for Drupal account now you will need to change permissions of your Amazon S3 bucket (Hope you already have configured Amazon S3 settings, if not do it now.)

Check for post back settings permissions.

You need to grant Write access to aws@zencoder.com so we can upload the processed file. The easiest way to do this is to use a S3 client, like S3Fox or S3Hub. Please note that it is the S3 bucket and not the S3 folders, which are part of the key, that need Write permissions

Now you can change the output configurations as you wish and now your ready to create videos with Zencoder support. You must set up and run cron properly to work, this.

 

 

Your rating: None Average: 9.4 (14 votes)

Features Overview

Zencoder is based on the needs of hundreds of real-world customers. We’ve even built several video websites ourselves over the years. So we know what’s important in a video transcoding service (and what’s not). Zencoder is designed to be incredibly powerful where it matters, and dead simple whenever possible. And if there’s something specific that you need that we don’t already do, get in touch!

Compatible

  • Can handle hundreds of input video formats, including many that other encoders can’t.
  • Automatically fixes many inherent issues with user-generated content, like A/V syncing.
  • Creates output videos for all major viewing devices, including web and mobile.

Fast

  • Little to no queue times. No more waiting in long lines for your encoding job to start.
  • Uses the biggest, baddest encoding machines, with a little sauce on top. So watch us rip through your jobs.

Powerful

  • 1080p HD video? Our system won’t even break a sweat.
  • Audio-only files are fine too, of course.
  • We can actually make your bad movies look better.

Scalable

  • Need a dozen servers or a million files processed? No problem – we can scale up for you.
  • We can also scale down. Just need a few files processed? Pay us pennies.

Secure

  • SSL encryption included in every version.
Your rating: None Average: 6.2 (6 votes)

Compatible

File compatibility is one of our top priorities. In fact, we often have our customers send us files that don’t work in other systems, and to date, we can process 95% of files that other systems can’t handle. We even fix problems with some corrupt files.

Input Video Codecs

  • MPEG-1 (VCD), MPEG-2 (SVCD/DVD/DVB)
  • MPEG-4 ASP (DivX, XviD)
  • H.264 (MPEG-4 AVC)
  • H.263, H.263+, Flash Video
  • Windows Media Video 7, 8, and 9 (WMV1, WMV2, WMV3)
  • Real Video 1.0, 2.0. 3.0. 4.0
  • YUV
  • Sorenson v1/v3 (SVQ1, SVQ3)
  • Cinepack, RPZA, and other Quicktime video
  • DV Video
  • 3ivx
  • Intel Indeo 3.1, 3.2, 4.1, 5.0
  • MJPEG, AVID, VCR2, ASV2
  • HuffYUV
  • Schroedinger, Dirac
  • Ogg Theora
  • … Plus dozens more (full list)

Input Audio Codecs

  • MP3
  • AAC
  • AC3/DTS
  • WMA
  • WAV
  • RealAudio
  • Ogg Vorbis, Speex, FLAC
  • AMR-NB, AMR-WB
  • alaw/ulaw, gsm, pcm, adpcm
  • … Plus dozens more (full list)

Container Formats

  • 3GP/3GP2
  • 3GPP AMR
  • Adobe Filmstrip
  • Apple Core Audio
  • ASF (Windows Media)
  • AVI
  • AVS video
  • DNxHD (SMPTE VC-3)
  • DTS
  • DV video
  • FFM (FFserver live feed)
  • Flash
  • FLI/FLC/FLX animation
  • FLV
  • GXF
  • Material eXchange
  • Matroska
  • Motion Pixels MVI
  • MOV (Quicktime)
  • MP4 Audio-only
  • MP4 Video/Audio
  • MPEG audio layer 3
  • MPEG-1 System
  • MPEG-2 PS (VOB)
  • MPEG-2 raw transport stream
  • MPEG-2 transport stream
  • Musepack
  • NC camera feed
  • Nippon Telegraph and Telephone Corporation (NTT) TwinVQ
  • Nullsoft Streaming Video
  • Ogg
  • PCM (32/64 bit floating point, big- or little-endian)
  • PCM (signed and unsigned, 8/16/24/32 bit, big- or little-endian)
  • PCM A-law
  • PCM mu-law
  • QCP
  • RealMedia
  • REDCODE R3D
  • RTSP output
  • Sony OpenMG audio
  • Sony Playstation STR
  • SoX native
  • WAV
  • WavPack
  • WebM
  • … Plus many more
Your rating: None Average: 5.5 (6 votes)

Fast

We know that fast encoding is important. You shouldn’t wait 10 minutes for your job to start, and once it starts, it should be blazingly fast. So we’ve optimized Zencoder for speed.

  • Encode HD video in realtime – even 1080p, with the right settings.
  • Near-zero queue time. Unlike most encoding services, we don’t make you wait in a queue. As soon as our system is full, we immediately launch more capacity. So most of the time, you’ll see an average queue time of, oh, 10 seconds.
  • Fast servers. We use the fastest 8-core servers available in the cloud today, and saturate several cores with each job.
  • Pick your speed. Our “Speed” setting lets you control speed vs. compressibility. Want your video back quickly, and don’t mind if the file is a bit bigger? Set Speed to 5. Or, if you don’t mind the wait, set Speed to 1 and you’ll get a smaller file.
  • Optimized encoding workflow. We’ve optimized our transcoding for speed, and are constantly adding new optimizations.
Your rating: None Average: 7 (3 votes)

Quality

We care about video quality. At low bitrates, video should look good – there is no reason why users on a slow DSL connection shouldn’t see good quality video. At high bitrates, video should look amazing – as good as broadcast HDTV. And on the flip side, there is no reason why excellent video shouldn’t be small enough to stream.

  • The best codecs. We use the best audio and video encoders, open-source or commercial.
  • Tons of optimizations. We’ve researched and tested hundreds of settings and tools, and have optimized
  • Powerful bitrate controls. Set a target quality, target bitrate, or both.
  • Control the speed/compression tradeoff. Get better quality by slowing down encoding, or speed things up and increase file sizes.
  • Automatic deinterlacing.
  • Automatic rotation.
  • Presets for optimized film or animation encoding.
  • Preprocessing and postprocessing. Remove noise, deblock, and auto-adjust color levels.
Your rating: None Average: 7.7 (3 votes)

Scalable

Zencoder scales to massive levels. Need 50,000 files processed a month? Got it. 5,000,000? No problem. 5? That’s fine too. Our system scales automatically to handle any load.

  • Scale up – as you grow, we automatically grow with you.
  • Scale down – if you only need a few files a month, just pay for what you use. Why commit to $100/month for three files?
  • Minimal queue times, no matter the load. Even if you send us a thousand jobs, your wait times will be a few minutes at most (and usually just a few seconds).
Your rating: None Average: 10 (2 votes)

Output Formats

Zencoder supports a plethora of inputs, but we’ve focused on only the most important output formats. We’d rather do an awesome job with 4-5 output formats than a mediocre job with 20.

Output Video codecs

  • H.264 and MP4 for Flash Video, HTML5, mobile, and desktop
  • VP8 and WebM for HTML5
  • Ogg Theora for HTML5
  • VP6 for Flash Video
  • MPEG-4 and 3GP
  • WMV
  • …Others coming soon

Output Audio codes

  • MP3
  • AAC
  • Vorbis
  • WMA
  • … Others coming soon
Your rating: None Average: 10 (1 vote)

Create Video Content Type

In order for you or your users to start uploading video using Video Module, you must add a Video as a content type on your site.
 

Go to Administer->Content management->ContentTypes.

Click on "Add content type" at the top.

Then click "Save content type"

Next, click on "Manage Fields"
 

Next,Click "Save"
 

We did a small change in selecting thumbnail and video sizes in the latest version as below.

 

 

 

Click "Save field settings"

Next, go to "Display fields"

Click "Save"

Now you have successfully created Video node type, go to Node->Add and Create video nodes

Click "Upload"

Then you can see Video Node

Add title and click "Save"

Your rating: None Average: 8.6 (67 votes)

FFMPEG Installtion scripts

 

 

Your rating: None Average: 8.2 (5 votes)

Links from external resources

Please contact me to add your video module post here.

Your rating: None Average: 8.4 (7 votes)