Drupal is a registered trademark of Dries Buytaert
Paragraphs 8.x-1.22 Minor update available for module paragraphs (8.x-1.22). Views Bootstrap 5.5.2 Minor update available for module views_bootstrap (5.5.2). Emulsify Tools 2.2.0 Minor update available for module emulsify_tools (2.2.0). amazee.ai Private AI Provider 1.3.4 Minor update available for module ai_provider_amazeeio (1.3.4). highlight.js Input Filter 2.0.0 Major update available for module highlightjs_input_filter (2.0.0). Webform QR Code Element 1.4.0 Minor update available for module webform_qr_code_element (1.4.0). REMP Paywall 2.0.1 Minor update available for module remp (2.0.1). oEmbed Providers 2.2.4 Module oembed_providers updated after 7 months of inactivity (2.2.4). CRM - Contact Relationship Management 1.0.0-beta11 New beta version released for module crm (1.0.0-beta11). REMP Paywall Module remp now has official Drupal security advisory coverage.

This project automates the migration of your VideoJS Mediablock content to the newer VideoJS Media format. It allows you to update from the older block-based storage to the modern entity-based system, converting various media types like local files, remote streams, and YouTube videos. The process is managed through Drush commands for a smooth transition of your video and audio content.

Provides Migration API configurations to migrate VideoJS Mediablock block content entities to the modern VideoJS Media content entities. If you are moving from the videojs_mediablock module to videojs_media, this module automates that data migration via Drush.

Features

The videojs_mediablock module stores all video/audio content in a single block content bundle with up to five media fields. The videojs_media module replaces that with five lean, bundle-based content entities — one per media type — each carrying only the fields it needs.

This module bridges the two by providing five Migration API configurations (one per destination bundle) and a custom source plugin that inspects each videojs_mediablock block, determines the correct destination bundle, and maps its fields accordingly:

  • videojs_migrate_local_video — local MP4/WebM/OGG video files
  • videojs_migrate_local_audio — local MP3/OGG/AAC audio files
  • videojs_migrate_remote_video — HLS, DASH, or remote video URLs
  • videojs_migrate_remote_audio — remote audio stream URLs
  • videojs_migrate_youtube — YouTube URLs or video IDs

Shared fields (poster image, subtitles) are copied to all destination bundles. Drupal's migration tracking means you can roll back, reset, and re-run safely. All five migrations are grouped under videojs_media so they can be run or rolled back together with a single Drush command.

Post-Installation

After enabling this module, use Drush to run the migrations:

  1. Check status: drush migrate:status --group=videojs_media — you should see all five migrations listed.
  2. Run all at once: drush migrate:import --group=videojs_media
  3. Or run individually, e.g.: drush migrate:import videojs_migrate_local_video

To undo: drush migrate:rollback --group=videojs_media

If a migration gets stuck: drush migrate:reset-status videojs_migrate_local_video

Uninstalling this module after a successful migration does not delete the migrated entities — they remain in your database.

Additional Requirements

Install the contrib dependencies before enabling this module:

composer require drupal/migrate_plus drupal/migrate_tools
drush en migrate migrate_plus migrate_tools
drush en videojs_media_migrate

No additional modules are recommended beyond those listed above. Once migration is complete you may uninstall videojs_mediablock, videojs_media_migrate, migrate_plus, and migrate_tools if they are no longer needed.

Similar projects

  • VideoJS Mediablock — the predecessor block-based module this migration moves data away from.
  • VideoJS Media — the modern entity-with-bundles destination module.

Supporting this Module

This module is provided as free, open-source software under the GPL-2.0+ license. Contributions, bug reports, and feature requests are welcome via the drupal.org issue queue.

Community Documentation

Full usage instructions, field mapping tables, troubleshooting steps, and architecture details are available in the README.md included with this module.

Activity

Total releases
2
First release
Jun 2026
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Jun 18, 2026
1.0.x-dev Dev Jun 18, 2026