php-ffmpeg dependancies block updating to drupal 10.4

Created on 19 December 2024, 2 months ago

Problem/Motivation

This is not a media_thumbnails_video issue per se but as this module uses php-ffmpeg it becomes a blocking issue.

php-ffmpeg/php-ffmpeg v1.2.0 requires symfony/cache: ^5.4 || ^6.0 || ^7.0
but drupal/core-recommended 10.4.0 requires symfony/http-foundation ~v6.4.16
which requires symfony/cache: ^6.4.12|^7.1.5

This leads to the following while updating to drupal 10.4

Problem 1
- Root composer.json requires drupal/core-recommended 10.4.0 -> satisfiable by drupal/core-recommended[10.4.0].
- Root composer.json requires drupal/media_thumbnails_video 2.0.x-dev@dev -> satisfiable by drupal/media_thumbnails_video[2.0.x-dev (alias of dev-2.0.x)].
- drupal/core-recommended 10.4.0 requires symfony/http-foundation ~v6.4.16 -> satisfiable by symfony/http-foundation[v6.4.16, 6.4.x-dev].
- drupal/media_thumbnails_video dev-2.0.x requires php-ffmpeg/php-ffmpeg >=0.14.0 -> satisfiable by php-ffmpeg/php-ffmpeg[v1.2.0].
- php-ffmpeg/php-ffmpeg v1.2.0 requires symfony/cache ^5.4 || ^6 || ^7.0 -> satisfiable by symfony/cache[v7.0.7].
- symfony/http-foundation[v6.4.15, ..., 6.4.x-dev] conflict with symfony/cache <6.4.12|>=7.0,<7.1.5.
- drupal/media_thumbnails_video 2.0.x-dev is an alias of drupal/media_thumbnails_video dev-2.0.x and thus requires it to be installed too.

Or none of the php-ffmpeg versions can satisfy symfony/cache.

Steps to reproduce

composer require drupal/core-recommended:10.4.0 drupal/core-composer-scaffold:10.4.0 drupal/core-project-message:10.4.0 --update-with-all-dependencies

Proposed resolution

I don't see any solution until php-ffmpeg dependency to symfony/cache becomes compatible with symfony/http-foundation requirement.

https://packagist.org/packages/symfony/http-foundation
https://packagist.org/packages/symfony/cache
https://packagist.org/packages/php-ffmpeg/php-ffmpeg#v1.0.1
https://github.com/PHP-FFMpeg/PHP-FFMpeg

Either do not update Drupal or uninstall/remove Media Thumbnails Video or make Media Thumbnails Video depend on an alternative to php-ffmpeg library.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France erwangel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @erwangel
  • πŸ‡¨πŸ‡¦Canada rustyco

    Same problem essentially (?)

  • πŸ‡ΊπŸ‡ΈUnited States sidgrafix

    I did have a similar situation even tho my install is not using media_thumbnails_video when trying to update drupal from 10.3.x to 10.4.0 failed because it was blocked by php-ffmpeg/php-ffmpeg that uses a symfony/cache version that is not compatible with the version of symfony/http-foundation drupa 10.4 requires.

    Not sure if this will cause issue but I worked around it by updating symfony/cache with
    composer update symfony/cache when it completed I then ran:
    composer update "drupal/core-*" --with-all-dependencies then drush updb and yes to run the update.

    So far everything seems fine, but I have yet to test the modules I use that require ffmpeg yet.

  • πŸ‡¨πŸ‡¦Canada rustyco

    #3 fixed it for me

  • πŸ‡«πŸ‡·France erwangel

    Thank you sidgrafix (#3). Updating symfony/cache first permitted to update the rest of drupal. No issues noticed after that while generating Video Thumbnails.

Production build 0.71.5 2024