Video content in Drupal today

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
ardas's picture

Hello,

Just to start with something I want to share my own experience with video in Drupal. Here is what I've found and studied after a couple of months fighting with tasks related to video content.

The first module was, of course, video.module. It is a big and powerful module. I loved it a lot for its features but, nevertheless, I was slightly disappointed because of several reasons (to be short):
1. Video node can't be flexibly extended unless you patch the module (at least when I was trying it).
2. Video module is too big and I've got a feeling that its functionality had to be splitted into more smaller and more abstract and universal modules. For instance, it should not implement Custom Fields (this is a task of another module).

The main and greatest advantage of this module is a set of video specific features and a bundle of perfect ideas proposed by Fabio. My proposition for now is to think together how we can split it into separate modules each of which can be improved independently. May be all of them together can be joint into a video package then.

That was clear that such modules as CCK, Views, etc. are the future of Drupal. That is why I decided to create a videofield.module which is a plugin for CCK just like an imagefield.module. The main aim of this field is to read, analyze and store video specific information right in a node_[content name] table for flexible search, indexing, retriving, etc.
The main disadvantage of my videofield.module is that it has nothing to play video. We have neither flash nor JS player, so we just output video information and you can download video file or stream it using default browser abilities.

Again, I have a feeling that streaming video data must be a separate module which has to:

  1. stream any kind of video just by its URL.
  2. give ability to use any 3-d party player (theme functions probably).
  3. be a separate solution and doesn't depend on either CCK or videofield.

Looks like video.module can do this (didn't try it). Also, I heard about coolfilter.module from one of Drupal guys. I didn't play with it much but it looks like a solution I described.

Another interesting thing is an imagecache.module by Darrel O'Pry which is a global solution for transforming images which can be used by any other image module including imagefield itself. A little bit later I found that Darrel started to create a transformer.module which is assumed to be a file transformer API module which can be extended (you can create various transform plugins). It looks like imagecahe will use transformer in the future.

In the end, here is one more task for us - create something like a videocache.module just like imagecache and use it to transform video (it may be at least conversion to different formats).

Thanks for your time.
Thanks Fabio for inviting me into this group.

Comments

Please look at SWF Tools as

sime's picture

Please look at SWF Tools as an implementation module for 3rd party players. Although maybe the scope is too narrow for video.

I also didn't notice that

travist's picture

I also didn't notice that you didn't mention FlashVideo module... It is very new, and I wrote because I needed a different solution than what the video module provided. It is at least something to check out.

Thanks,

Travis.

Yeah - I think the

jbrown's picture

Yeah - I think the custom_fields module isn't really in the spirit of Drupal. I am currently writing a CCK module for the video module for a client. I'll be submitting this to the project soon. If people want custom fields, they should create a custom CCK content type and use my module. I think it is better that the CCK video module is not standalone like videofield.module as it should have the rich functionality (current and future) of the video module.

My CCK module stores the field internally as an unpublished node - this allows the admin to browse the videos.

It depends on your needs --

keizo's picture

It depends on your needs -- but if you use google and youtube videos and need a dead simple way to insert videos, check out the Googtube module.

My $0.05

umonkey's picture

I'm running a small community web site and I've been thinking about a better video module.

First of all, I think that the module must be easy to use. For a personal blog, one can use CCK, but for a community web site that's too complex. Users like to post links to videos, using a dedicated field for that just adds the complexity without giving anything back. Moreover, dedicated fields limit the number of videos you can post.

Second, I think a module like that should also work with audio files, well-known photo hosting web sites and other multimedia material, if any.

I've written a module which does just that: using a few REs it finds and embeds flash players for MP3 files and well-known video hosting services, such as Google Video, YouTube and MySpace. It's implemented as a filter, so it works with both nodes and comments, transparently. This means the results are automatically cached.

I don't like the idea of posting content to the local web site when there's a variety of dedicated free services for that, which in turn simplifies. This means that there's no way to play AVI, MPG and other desktop-friendly files online, but who cares. This also means that adding support for another video hosting is a matter of adding another RE.

Now I'm working on a catalogue for all posted media files and podsafe RSS feeds for all that.

Anyone interested? Ideas welcome. I know that this looks like a duplicate effort, and that there are many other modules for audio and video embedding, but (1) this one combines video and audio in itself, and (2) I think that all other modules are just wrong. No big surprise I guess.

Video File Formats

apperceptions's picture

No reason to give up on mpg and avi. Several good services handle these, including Internet Achive and blip.tv.

Markus Sandy
http://Ourmedia.org

I believe archive.org

umonkey's picture

I believe archive.org introduced .swf based streaming recently, still in beta though I think MPG etc aren't designed for streaming. But REs for embedding a QuickTime or WM player are just as trivial, so why not, indeed.

Have you ever tried

ardas's picture

Have you ever tried coolfilter.module? I wonder, will it fit your needs?

From your description I found that you are trying to create something very similar to coolfilter. This is very important for Drupal video future - lots of people are working on similar tasks. Since, I myself am more interested in storing video content on the local site, I would like to propose you to study existing modules which can be used to display video/audio (embedding flash players, etc.).

Now, I'm going to propose a model (modules structure) to somehow organize video in Drupal. Very important part of this model - is video/audio displaying. Ideally, this should be a single module (probably, developers must join their forces) which can be extended by different players...

Unfortunatly, I have very little time now. That's why I'll be glad if someone studies and compares everything we have in Drupal to display audio/video.

Thanks.

P.S. It is also important because this module should be capable to display local content (uploaded and stored by mediafield for instance). Otherwize, media output have to be duplicated which is bad.


Regards,
Dmitry Kresin, ARDAS group (ARDAS group)


Regards,
Dmitry Kresin, ARDAS group - Drupal CMS web sites development, Software outsourcing

coolfilter.module

umonkey's picture

I did examine coolfilter, yes. It won't fit my needs because, as I said, simplicity is the key factor. Having to type tags is just asking for errors.

The module itself is poorly written and designed, starting with a function per media type (e.g., is_google_video()), which is not easily extendable, continuing with a lot of re-implemented core functions, like parts of mbstring and iconv, and ending with the whole idea of mixing video embedding and syntax highlighting.

Would someone like joining

photon's picture

Would someone like joining the coolfilter project to add WYSIWYG support ? Since I'm busy with my degree this years.
BTW: The grammar of CoolFilter is quite easy, if you use all default options. Just 3 lines would be OK.

[coolfilter]
URL_of_media
[/coolfilter]

Where URL_of_media could be swf flash file, wma, rm, mp3, wmv, etc.

Guys! This is exactly what I

ardas's picture

Guys! This is exactly what I was talking about - could you please join together and create a single, powerfull and customizable solution to display video and audio data? May be even on the basis of coolfilter.module

Anyway I suggest to create a new discussion topic dedicated to this new module architecture.
lllkkk, could you please do it and provide a short overview of your module architecture to have something to start with?

Thanks.

Regards,
Dmitry Kresin, ARDAS group (ARDAS group)


Regards,
Dmitry Kresin, ARDAS group - Drupal CMS web sites development, Software outsourcing

Video

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: