DruTube: Build a Video Site in 1 Hour
These are my crib notes from my session – see the video here:
Basic set-up
- Install Drupal
- Enable Upload module
- create content type
- create node with video attached
Install base modules
Install media modules
- media_mover 0-4-1
- ffmpeg_wraper 0-2
- swfobject_api 1-2-6
- xspf_playlist 0-12
- flvmediaplayer 0-11
- mimedetect 1-0-beta
Download helper files
This is the Flash video player component used in this recipe.
Download: http://www.longtailvideo.com/players/jw-flv-player
Place the mediaplayer.swf in your modules/flvmediaplayer directory
This is a helper library to ease embedding of the FLV Flash player into your Drupal site.
Download - http://code.google.com/p/swfobject
place swfobject.js in your modules/swfobject_api directory
FFMpeg
FFMpeg is software that converts video and audio files from/to many different formats, handles resizing, and much more.
Download - http://24b6.net/content/ffmpeg-binary
First uncompress the ffmpeg.static.tgz file using this command:
tar -xzvf ffmpeg.static.tgz
Then place the srulting ffmpeg.static file in your modules/ffmpeg_wrapper directory
PEAR Drivers
These are no longer required by current versions of Media Mover!
Now enable modules
- configure ffmpeg_wrapper (set path to ffmpeg binary)
- configure s3 admin/media_mover/settings, enter pass, run test
- add new media_mover transcode configuration
- add new media_mover thumbnail configuration
- configure xspf_playlist
- configure flvmediaplayer (set path to swf file)
Run media_mover
I created a snapshot of the full modules directory that I demoed. You can use this:
Arthur | http://civicactions.com | http://24b6.net