This project is not covered by Drupal’s security advisory policy.
Motivation
Serving videos efficiently on the web is a common challenge due to the variety of supported video formats across
different browsers and devices. While MP4 is a widely supported format, WEBM provides better compression and is
optimized for web delivery, making it a preferred choice for online video content. The Media WEBM module automates the
process of converting MP4 video files to WEBM within a Drupal site, ensuring compatibility and optimized delivery.
Purpose
The Media WEBM module is designed to simplify the management and delivery of video content in WEBM format on Drupal
sites. It automates the conversion of MP4 files to WEBM upon upload, integrates with Drupal's Queue API for performance,
and provides a field formatter for displaying WEBM videos.
Features include:
- Automatic MP4 to WEBM video conversion.
- Transparent storage and management of WEBM files.
- Field formatter for displaying WEBM videos.
- Queue API integration for handling video conversions.
How to Use
Installation
- Download and place the module in the
modules/customdirectory of your Drupal site. - Enable the module via the Drupal admin interface or with Drush:
drush en media_webm
Configuration
- Add a file field (e.g.,
field_media_video_file) to your media type for MP4 video uploads. - Ensure your video media type is configured to use the Media WEBM field formatter.
Usage
- Upload MP4 videos through the media type's file field. The module will enqueue a conversion job.
- Manually process the conversion queue with the following Drush command:
drush queue:run media_webm_converter
Alternatively, set up a cron job to process the queue at regular intervals.
- WEBM videos are automatically displayed using the module's field formatter.
Project information
- Project categories: Media
- Ecosystem: Drupal Media
- Created by credevator on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
