Video FLV Datatype
Last updated: Friday 12 March 2010 05:42
Version |
Compatible with |
0.3
|
4.X
|
Provides a new datatype that handles video files and converts them into FLV so that they can be read with a web FLV player (like on Youtube or Dailymotion). It is based on the ezmedia datatype. It also produces an image preview for each videos.
Provides a new datatype that handles a video file and converts it into FLV so that they can be read with a web FLV player (like on Youtube or Dailymotion). It is based on the ezmedia datatype. It also produces an image preview for each videos.
Example of use
Features
- Store video files
- Convert to FLV on upload or with a cronjob script
- Produce a preview for each videos
Requirements
- eZ Publish 4.x (if you use eZ Publish 3.x please download version 0.1)
- ffmpeg-php module
- GD module to produce image preview
- a video converter like ffmpeg (default configuration)
Install
- Install requirements (ffmpeg-php and ffmpeg binary)
- Download the archive
- Use the version 0.1 for eZ Publish 3.x
- Use the version 0.2 for eZ Publish 4.0.x
- Use the version 0.3 for eZ Publish 4.1 or newer
- Unpack it in the extension directory of eZ Publish
- Execute ezvideoflv.sql script, for exemple from the eZ Publish root :
mysql -u login -p base < extension/ezvideoflv/sql/ezvideoflv.sql
-
Activate the extension with the Administration interface in System >
Extensions
- Configure cronjob, for example run the following command line every 5 minutes
php runcronjobs.php flv
-
Add video/read function to role policies of users that should be able to read
videos.
- If you run eZ Publish in host access method, add a rewrite rule like the following in your Apache Virtual Host config
Rewriterule ^/extension/ezvideoflv/design/standard/flash/player_flv_maxi.swf - [L]
Configuration
Comments in settings/ezvideoflv.ini.append.php gives information on how to
configure the extension.
Default configuration :
- it uses ffmpeg to convert video files
- it uses cronjobs script for files over 2Mo
- it produces preview in JPEG in var/your_site/storage/flv_preview using the middle video frame.
- it uses FLV Player to show videos
- To convert videos again with new settings, just run :
php runcronjobs.php flv -all
TODO
- Resize on FLV conversion
- Custom Action in edit Interface like "Regenerate preview" ou "Regenerate FLV"
- Improve templates (size, duration, ...)
Screenshot
Edit Interface
eZVideoFLV datatype 0.3 is out
Sunday 04 October 2009 08:33
Damien Pobel