video

Building Your Video Community

I receive a fair amount of inquiries from people who are in the process of building out video based communities on top of the Drupal platform. The most important questions center around the functionality related to uploading, transcoding and storing video. What modules or techniques can be used to fully integrate community submitted video to a Drupal site?

The Basics 

It's important to note that there are three basic functions that need to take place in order to have a fully integrated video community built on Drupal. Users will need to upload videos. Those videos usually get transcoded to Adobe Flash on the server so that they can be presented in a web based player. The video then needs to be stored and delivered on demand from a server.

There's no one single way that Drupal supports the three functions required to power a video based community. So it's on the site developer to do some research and testing to figure out the method that will work best for them.

Budget Makes A Difference

I think that the method you will use to accomplish the development of a video based community will depend greatly on  the budget you have set for building the site. The most expensive option would allow you to simply hire a Drupal-savvy developer to code a custom module that will assist with uploading, transcoding and transporting the video to a content delivery network or CDN. Less expensive options would include utilizing existing Drupal modules or integrating with a video service that has the ability to plug in to Drupal via an API. No matter what you budget I believe that your first step will involve researching the options available today. I accent the word today because the world of Drupal is ever changing. So if the module or API you need doesn't exist today it could very well exist tomorrow.

Tackle Storage and Delivery First

As far as I'm concerned it makes the most sense to figure out your video storage and delivery provider first. One reason this is so important is that your storage and delivery will greatly affect the performance of your site. And if your site is slow or frequently unavailable chances are users won't spend too much time there. Another important issue is cost. Storage and delivery of video can be very expensive. So shopping around for a reasonable deal is very important. 

If you decide to handle storage and delivery yourself you will either manage your own servers, contract with a CDN, or do a combination of both. The other option is to plug in to a service that is already geared towards the storage and delivery of video. Such a service might also handle transcoding to Flash as well.

Dealing With CDNs

A CDN will assist you with storing and delivering your content to users on the web. A true CDN will spread your content among multiple servers around the world in order to facilitate the most efficient delivery of your media. Some CDNs focus on delivering downloads, while others focus on web streaming. Some do both. In creating a video community you will want to focus on a company that specializes in streaming content over the web.

You're going to need a lot of time and patience when researching CDNs. There are many (list on Wikipedia) that exist today and the field is growing. Growth is good as it helps to expand the feature set and force down the price. But there's also a risk as smaller, newer services could fail and cause you serious problems later if that happens. Prices and service features vary widely as well. I've been involved in discussions with reps for CDNs and in some cases nailing down a price is near impossible. Prices will be based on the amount of content stored and delivered. Prices do vary widely so it would be worth your time to log quotes that you receive and compare them to see who is offering the best deals.

Some people will use Amazon S3 for storage and delivery of the media from their Drupal sites. It is imporant to note that while the Amazon service is an attractive one in terms of pricing and ease of use, it is not a true CDN. The good news is that Amazon is working on a new content delivery service that could be a game changer in the CDN space.

Powering Video Via API

An Application Programming Interface or API will allow your Drupal site to connect with a third party service that can perform transcoding storage and delivery of your media. These APIs simplify to process of building a video community but they may also come at a cost. You probably won't have control over the quality of video that is transcoded. The final videos may also have video advertisments included unless you agree to pay for the service. This is an option to consider if you have a small budget and want to get started quickly.

The new YouTube API allows for video to be submitted from third-party sites. A module has been committed for Drupal 5 and there are a number of discussions on the topic over at Drupal.org. So while there appears to be no locked in solution for Drupal and YouTube at the moment, integration can be accomplished if you work with a developer who knows Drupal pretty well. 

A company called KickApps offers a single sign on (SSO) module for Drupal 4, 5 and 6. According to KickApps the SSO module allows you to create a seamless experience, which theoretically will allow users to upload videos to the KickApps service then display them on your site. The KickApps service is free if you allow advertisements but you can also pay them to "buy out" the advertising inventory.

Brightcove is one of the larger players in the online video services space. They offer integration services that can assist you with connecting Drupal to their video platform. Brightcove helps major corporations manage, store and deliver internet video so expect the price tag for integrating with their system to be on the high end. But if you have the money to spend my experience with Brightcove has been that they have got first class tools to help you manage a video community.

A Drupal Solution

If you're on a budget or are planning a smaller community that doesn't need the power of a third party service then you can build a video based community with Drupal. Check out the following modules.

FlashVideo - Travis Tidwell has built a module called FlashVideo that handles upload, transcoding and storage of video. The module is supported on Drupal 5 and 6. More recent versions allow video to be shipped off to Amazon S3 for storage and delivery. Travis has posted a very detailed tutorial on the setup and usage of this module.The module appears to do many things that video community builders will want so it is definitely worth a look.

Media Mover - This module assists with some of the background work related to storing and processing video. The most notable feature is that it will transport a video from your server to the Amazon S3 storage service and insert the proper link into your site.

Twistage - This module provides for integration with the Twistage video hosting service.

Video - This is an older module that handles upload and presentation of video files. The module also includes very basic play count statistics. This module will embed a video in your site but does not transcode the video to flash prior to doing so. A demo of this modules functionality can be seen here.

There's More

This post isn't intended to cover every tool, technique or module that can help you build a video community with Drupal. My hope is that those looking for a place to start or some direction will find this helpful. Your links to other tools and services or general suggestions about building video communities with Drupal are welcome in the comments.

Bookmark and Share Bookmark Post

Drupal Media Management

I conducted this interview a few months ago at DrupalCampNYC. Arthur Foelsche from Civic Actions talks about the future of Drupal modules that assist with the publishing of rich media. Arthur is the lead developer of the Media Mover module, XSPF Playlist, FLV Media Player and others that greatly assist with the publishing of video on Drupal sites.

Bookmark and Share Bookmark Post

Techniques For Publishing Video

Many people want to use Drupal as a platform for distributing video. Drupal is a great tool for video distribution because there are so many ways to get it done. And Drupal is a pain in the neck because there are so many ways to get it done. It all depends on your perspective I guess. With this post I'll offer some solutions that can help you choose between some of the more reliable options for publishing video.

Host Your Own

There are plenty of modules that can assist you with creating your own 'DruTube' if you will. I will warn you that there are some pitfalls to this approach. If your site is hosted on a shared server you could slow down your entire site if your video gets popular. Hosting your own video on a shared server can work fine if you have light traffic. So don't be disuaded by my disclaimer.

The video module (Drupal 5 only) handles upload, display and basic statistics for videos. With this module you have the choice of uploading a file or linking to a file that is already on your site. It's important to know that if you're uploading files greater than 7MB you might need to adjust the php.ini file on your web server. This method works for QuickTime (.mov), Windows Media (.wmv) and Flash (.flv) formats.

FLV Media Player with XSPF Playlist (both Drupal 5) is an option for publishing Flash video files. This option integrates with Jeroen Wijering's excellent flash player to provide flash video playback withing nodes. If you use this method you will need to convert your files to Flash format prior to uploading to the site.

The Flash Video module (Drupal 5 and 6) aims to provide a soup-to-nuts 'DruTube' like solution that allows for upload, conversion to Flash and display of video. For more detailed information see the flash video tutorial created by the module developer.

Utilize YouTube

You can let YouTube do the heavy lifting for you and embed the flash video back into your Drupal site. I recommend reading my previous drop titled Many Ways To Do YouTube on Drupal to find out more about this method. One shortcoming of a pure YouTube approach is that you can't make your published videos available as a downloadable podcast via iTunes or other podcast subscription software.

Hybrid Approach

The hybrid approach is very simple. You host your videos elsewhere and come back to your Drupal site to post videos (and maybe even link directly to a download file) within a node on your site. This approach takes a little more work because it means you publish twice. First you upload to your video hosting provider. Then you come back to your Drupal site to include your video in a post. Some video hosting sites (like Blip.tv for instance) allow you to cross post directly from their sites over to your Drupal site.

There are a few notable benefits to the hybrid approach. The load from delivering the video won't affect your site since the media is hosted elsewhere. Transcoding of the video from your source format (probably QuickTime or Windows Media) will be handled by your video host. You also usually get a nice flash video player that you can embed on multiple sites.

Test Before Commiting

Before you commit to a particular approach I highly recommend that you do a bit of testing. Try out different methods and video hosts to see if they are going to work for you. For example, YouTube encodes video in a relatively small player. So if you want your videos to show in a large player then the YouTube approach probably won't work for you. Most third-party video hosts add their own branding to the player that they provide you. So the hybrid approach might not work if you really need a non-descript or even custom player for the flash version of your videos.

It can hurt to get very deep into the development of a production site when you find out that your video process just won't work. Consider the time and effort you put into experimenting an investment that will yield a video publishing solution that works for both you and the visitors to the site you're building.

Bookmark and Share Bookmark Post

Many Ways To Do YouTube On Drupal

No one can dispute that YouTube is the most popular video sharing site on the web. And as YouTube's popularity has grown they have also added tools that make the site very attractive for people who want to use YouTube as a video repository site for content that will be distributed elsewhere. Innovations like the YouTube API and newer video players have made this proposition even more attractive.

Given the previous information it's no surprise that many Drupal site developers seek to leverage YouTube to deliver videos via their sites. Thankfully, a variety of methods and modules exist that allow Drupal site developers options for integrating YouTube with their site. This drop breaks down a number of those options for both Drupal 5 and Drupal 6.

Bookmark and Share Bookmark Post
Syndicate content (C01 _th3me_)