CVS edit link for DevelopmentMill
SimpleVideo moduleRecently, we had to develop a module allowing to integrate with FileField and implement video transcoding and generating of video thumbnails. We wanted a very flexible Drupal-way module. So, basing on ImageField, we developed similar module for video.
Module consists of three parts: core, UI and integration with Cron. Core module implements main functionality, UI module provides with user interface for module configuring and Cron module allows to perform video processing (transcoding) on schedule.
Architecture and principles of operation of SimpleVideo module and ImageField are rather like. Our module allows to specify rules of video processing - presets. They look like ImageField presets. Currently, there are only two types of actions: video transcoding and thumbnail generating. Now it's restricted to have more than one action for a preset, but in future we plan to extend this functionality.
Also, module allows to create formatters. Each formatter corresponds to certain flash player with the path to its SWF player. During the creation of such a formatter, it's possible to specify flash variables and parameters for player in accordance to its specification. To set the path to SWF file or its thumbnail, it's necessary to specify previously created preset via tokens. This way, you inherits formatters' entire flexibility and handy integration with many modules (like Views).
Video transcoding and thumbnail generation are processed on demand (like ImageField does). In case video processing takes a lot of time, module allows to do this on schedule by cron.
Video transcoding and thumbnail generation are implemented via ffmpeg.
Comparing with other modules:
FlashVideo (http://drupal.org/project/flashvideo), our module has better integration with CCK and FileField modules, while FlashVideo still has issues with video removal and integration with CCK (http://drupal.org/node/481116).
The most similar module is Video (http://drupal.org/project/video), but it allows to create only one rule for video transcoding and thumbnail generation. Our module has much more options of video processing. Our module supports usage of third-party flash players (like Viral Player or Cinema Player HD). Both modules provide with formatters for FileField, but our module is much more flexible and has greater extension potenial. Video module provides with formatter with option nearby of resolution selection, but we suppose this widget is unnecessary, so there isn't any like it in our module. As a result, our implements all capabilites of CCK and FileField, provides with significant number of options of video processing and implements very smart principle of storing cached files, proved itself in module ImageField.
You may take a look at SimpleVideo module on our demo site = http://simplevideo.demo.developmentmill.com/ (login - demo, password - demo)
Also, you may watch screencast about the module on http://simplevideo.demo.developmentmill.com/node/44 (it's required to login),
Thanks,
Development Mill
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | simplevideo.zip | 17.67 KB | DevelopmentMill |
| #9 | simplevideo.zip | 13.66 KB | DevelopmentMill |
| #7 | simplevideo.zip | 13.67 KB | DevelopmentMill |
| #1 | simplevideo.zip | 13.9 KB | DevelopmentMill |
Comments
Comment #1
DevelopmentMill commentedComment #3
avpadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.
Comment #4
DevelopmentMill commentedHello. It has passed more than two weeks, but still there is no review.
Comment #5
p0deje commentedthere are a lot of functions without comments
Comment #6
avpadernoComment #7
DevelopmentMill commentedLast version for review.
Comment #8
valcker commentedYou should not use t() for menu titles and descriptions in D6: http://drupal.org/node/140311. Check menu declarations in simplevideo_cron.module and simplevideo_ui.module.
simplevideo_cron.info and simplevideo_ui.info have windows line endings and should be converted to Unix line endings (http://drupal.org/coding-standards)
Comment #9
DevelopmentMill commentedAll fixed. Need to review again.
Comment #10
pcambraHi, thanks for applying and contributing to the community.
Here are the issues I've found in the review, they aren't sorted by importance and some of them can be blocking and others not, please revise the main guidelines of what to expect when applying for a CVS account http://drupal.org/node/539608
Comment #11
pcambraComment #12
DevelopmentMill commentedAll requested fixes done.
Comment #14
zzolo commentedHi. Please read all the following and the links provided as this is very important information about your CVS Application:
Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for your application. Please read the following documentation on how this affects and benefits you and the application process:
Migrating from CVS Applications to (Git) Full Project Applications
Comment #15
DevelopmentMill commentedAfter Git migration created new request #1114596
Comment #16
avpadernoComment #17
avpaderno