Path

ez projects / ezvideoflv


Video FLV Datatype

UNIX name Owner Status Version Compatible with
ezvideoflv Damien Pobel stable 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

  1. Install requirements (ffmpeg-php and ffmpeg binary)
  2. Download the archive
    1. Use the version 0.1 for eZ Publish 3.x
    2. Use the version 0.2 for eZ Publish 4.0.x
    3. Use the version 0.3 for eZ Publish 4.1 or newer
  3. Unpack it in the extension directory of eZ Publish
  4. Execute ezvideoflv.sql script, for exemple from the eZ Publish root :
    mysql -u login -p base < extension/ezvideoflv/sql/ezvideoflv.sql
  5. Activate the extension with the Administration interface in System >
    Extensions
  6. Configure cronjob, for example run the following command line every 5 minutes
    php runcronjobs.php flv
  7. Add video/read function to role policies of users that should be able to read
    videos.
  8. 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
Edit Interface

Average rating 5.00 by 2 reviewers.