Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFmpeg 6 and 7 are broken #312

Closed
henryruhs opened this issue Feb 18, 2025 · 11 comments
Closed

FFmpeg 6 and 7 are broken #312

henryruhs opened this issue Feb 18, 2025 · 11 comments
Labels

Comments

@henryruhs
Copy link

henryruhs commented Feb 18, 2025

Bug:

We are installing FFmpeg within a NSIS context and from one day to another our installer broke. It turns out that an downgrade to ffmpeg=5.1.2 temporary resolves the issue. Did you repack the FFmpeg packages and forget to add certain DLL packs or runtimes?

Downgrading to FFmpeg 7.0.2 or lower passed the installation via conda but then failed horrible during usage.

ffprobe.exe - Entry point not found
---------------------------
The procedure entry point libiconv_set_relocation_prefix could not be found in the dynamic link library C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Miniconda3\envs\facefusion\Library\bin\intl-8.dll.

As of FFmpeg 7.1.0, the installation failed, it seems to break the pip as well with error DLL load failed while importing pyexpat.

Installing FFmpeg
Channels:
 - defaults
 - conda-forge
Platform: win-64
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Miniconda3\envs\facefusion

  added / updated specs:
    - conda-forge::ffmpeg=7.1.0


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    aom-3.9.1                  |       he0c23c2_0         1.9 MB  conda-forge
    cairo-1.18.2               |       h5782bbf_1         1.4 MB  conda-forge
    dav1d-1.2.1                |       h2bbff1b_0         672 KB
    ffmpeg-7.1.0               | gpl_h501a890_712         9.5 MB  conda-forge
    font-ttf-dejavu-sans-mono-2.37|       hd3eb1b0_0         335 KB
    font-ttf-inconsolata-2.001 |       hcb22688_0          83 KB
    font-ttf-source-code-pro-2.030|       hd3eb1b0_0         654 KB
    font-ttf-ubuntu-0.83       |       h8b1ccd4_0         1.5 MB
    fontconfig-2.15.0          |       h765892d_1         188 KB  conda-forge
    fonts-anaconda-1           |       h8fa9717_0           3 KB
    fonts-conda-ecosystem-1    |       hd3eb1b0_0           5 KB
    freetype-2.12.1            |       hdaf720e_2         498 KB  conda-forge
    fribidi-1.0.10             |       h62dcd97_0          63 KB
    gdk-pixbuf-2.42.12         |       hed59a49_0         512 KB  conda-forge
    graphite2-1.3.14           |       hd77b12b_1          91 KB
    harfbuzz-10.2.0            |       h885c0d4_0         1.1 MB  conda-forge
    icu-75.1                   |       he0c23c2_0        13.9 MB  conda-forge
    lerc-4.0.0                 |       h5da7b33_0         185 KB
    libdeflate-1.23            |       h9062f6e_0         152 KB  conda-forge
    libexpat-2.6.4             |       he0c23c2_0         136 KB  conda-forge
    libglib-2.82.2             |       h7025463_1         3.6 MB  conda-forge
    libiconv-1.18              |       h135ad9c_0         622 KB  conda-forge
    libintl-0.22.5             |       h5728263_3          93 KB  conda-forge
    libjpeg-turbo-3.0.3        |       h827c3e9_0         911 KB
    liblzma-5.6.4              |       h2466b09_0         102 KB  conda-forge
    libopus-1.3.1              |       h8ffe710_1         255 KB  conda-forge
    libpng-1.6.46              |       had7236b_0         348 KB  conda-forge
    librsvg-2.58.4             |       h5ce5fed_2         3.7 MB  conda-forge
    libsqlite-3.48.0           |       h67fdade_1         876 KB  conda-forge
    libtiff-4.7.0              |       h797046b_3         956 KB  conda-forge
    libusb-1.0.27              |     hcfcfb64_100         105 KB  conda-forge
    libxml2-2.13.5             |       he286e8c_1         1.5 MB  conda-forge
    libzlib-1.3.1              |       h2466b09_2          54 KB  conda-forge
    openh264-2.6.0             |       hb17fa0b_0         402 KB  conda-forge
    openssl-3.4.1              |       ha4e3fda_0         8.1 MB  conda-forge
    pango-1.56.1               |       h286b592_0         443 KB  conda-forge
    pcre2-10.44                |       h3d7b363_2         802 KB  conda-forge
    pixman-0.44.2              |       had0cd8c_0         445 KB  conda-forge
    python-3.12.9              |h3f84c4b_0_cpython        15.2 MB  conda-forge
    sdl2-2.32.50               |       hecf2515_0         503 KB  conda-forge
    sdl3-3.2.4                 |       he0c23c2_0         1.3 MB  conda-forge
    svt-av1-2.3.0              |       he0c23c2_0         1.8 MB  conda-forge
    tk-8.6.13                  |       h5226925_1         3.3 MB  conda-forge
    ucrt-10.0.20348.0          |       haa95532_0         531 KB
    vc14_runtime-14.42.34433   |      h6356254_24         736 KB  conda-forge
    vs2015_runtime-14.42.34433 |      hfef2bbc_24          17 KB  conda-forge
    x264-1!164.3095            |       h8ffe710_2        1017 KB  conda-forge
    x265-3.5                   |       h2d74725_3         5.3 MB  conda-forge
    zlib-1.3.1                 |       h2466b09_2         105 KB  conda-forge
    zstd-1.5.6                 |       h0ea2cb4_0         341 KB  conda-forge
    ------------------------------------------------------------
                                           Total:        86.0 MB

The following NEW packages will be INSTALLED:

  aom                conda-forge/win-64::aom-3.9.1-he0c23c2_0 
  cairo              conda-forge/win-64::cairo-1.18.2-h5782bbf_1 
  dav1d              pkgs/main/win-64::dav1d-1.2.1-h2bbff1b_0 
  ffmpeg             conda-forge/win-64::ffmpeg-7.1.0-gpl_h501a890_712 
  font-ttf-dejavu-s~ pkgs/main/noarch::font-ttf-dejavu-sans-mono-2.37-hd3eb1b0_0 
  font-ttf-inconsol~ pkgs/main/noarch::font-ttf-inconsolata-2.001-hcb22688_0 
  font-ttf-source-c~ pkgs/main/noarch::font-ttf-source-code-pro-2.030-hd3eb1b0_0 
  font-ttf-ubuntu    pkgs/main/noarch::font-ttf-ubuntu-0.83-h8b1ccd4_0 
  fontconfig         conda-forge/win-64::fontconfig-2.15.0-h765892d_1 
  fonts-anaconda     pkgs/main/noarch::fonts-anaconda-1-h8fa9717_0 
  fonts-conda-ecosy~ pkgs/main/noarch::fonts-conda-ecosystem-1-hd3eb1b0_0 
  freetype           conda-forge/win-64::freetype-2.12.1-hdaf720e_2 
  fribidi            pkgs/main/win-64::fribidi-1.0.10-h62dcd97_0 
  gdk-pixbuf         conda-forge/win-64::gdk-pixbuf-2.42.12-hed59a49_0 
  graphite2          pkgs/main/win-64::graphite2-1.3.14-hd77b12b_1 
  harfbuzz           conda-forge/win-64::harfbuzz-10.2.0-h885c0d4_0 
  icu                conda-forge/win-64::icu-75.1-he0c23c2_0 
  lerc               pkgs/main/win-64::lerc-4.0.0-h5da7b33_0 
  libdeflate         conda-forge/win-64::libdeflate-1.23-h9062f6e_0 
  libexpat           conda-forge/win-64::libexpat-2.6.4-he0c23c2_0 
  libglib            conda-forge/win-64::libglib-2.82.2-h7025463_1 
  libiconv           conda-forge/win-64::libiconv-1.18-h135ad9c_0 
  libintl            conda-forge/win-64::libintl-0.22.5-h5728263_3 
  libjpeg-turbo      pkgs/main/win-64::libjpeg-turbo-3.0.3-h827c3e9_0 
  liblzma            conda-forge/win-64::liblzma-5.6.4-h2466b09_0 
  libopus            conda-forge/win-64::libopus-1.3.1-h8ffe710_1 
  libpng             conda-forge/win-64::libpng-1.6.46-had7236b_0 
  librsvg            conda-forge/win-64::librsvg-2.58.4-h5ce5fed_2 
  libsqlite          conda-forge/win-64::libsqlite-3.48.0-h67fdade_1 
  libtiff            conda-forge/win-64::libtiff-4.7.0-h797046b_3 
  libusb             conda-forge/win-64::libusb-1.0.27-hcfcfb64_100 
  libxml2            conda-forge/win-64::libxml2-2.13.5-he286e8c_1 
  libzlib            conda-forge/win-64::libzlib-1.3.1-h2466b09_2 
  openh264           conda-forge/win-64::openh264-2.6.0-hb17fa0b_0 
  pango              conda-forge/win-64::pango-1.56.1-h286b592_0 
  pcre2              conda-forge/win-64::pcre2-10.44-h3d7b363_2 
  pixman             conda-forge/win-64::pixman-0.44.2-had0cd8c_0 
  sdl2               conda-forge/win-64::sdl2-2.32.50-hecf2515_0 
  sdl3               conda-forge/win-64::sdl3-3.2.4-he0c23c2_0 
  svt-av1            conda-forge/win-64::svt-av1-2.3.0-he0c23c2_0 
  ucrt               pkgs/main/win-64::ucrt-10.0.20348.0-haa95532_0 
  vc14_runtime       conda-forge/win-64::vc14_runtime-14.42.34433-h6356254_24 
  x264               conda-forge/win-64::x264-1!164.3095-h8ffe710_2 
  x265               conda-forge/win-64::x265-3.5-h2d74725_3 
  zstd               conda-forge/win-64::zstd-1.5.6-h0ea2cb4_0 

The following packages will be UPDATED:

  openssl              pkgs/main::openssl-3.0.15-h827c3e9_0 --> conda-forge::openssl-3.4.1-ha4e3fda_0 
  vs2015_runtime     pkgs/main::vs2015_runtime-14.42.34433~ --> conda-forge::vs2015_runtime-14.42.34433-hfef2bbc_24 
  zlib                    pkgs/main::zlib-1.2.13-h8cc25b3_1 --> conda-forge::zlib-1.3.1-h2466b09_2 

The following packages will be SUPERSEDED by a higher-priority channel:

  python                pkgs/main::python-3.12.9-h14ffc60_0 --> conda-forge::python-3.12.9-h3f84c4b_0_cpython 
  tk                        pkgs/main::tk-8.6.14-h0416ee5_0 --> conda-forge::tk-8.6.13-h5226925_1 



Downloading and Extracting Packages: ...working... done
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... 
librsvg: The post-link script did not complete.
To take advantage of gdk-pixbuf's support for librsvg, please run:
    C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Miniconda3\envs\facefusion\Scripts\.gdk-pixbuf-post-link.bat

done
Rolling back transaction: ...working... done
ERROR conda.core.link:_execute(951): An error occurred while installing package 'conda-forge::gdk-pixbuf-2.42.12-hed59a49_0'.

LinkError: post-link script failed for package conda-forge::gdk-pixbuf-2.42.12-hed59a49_0
location of failed script: C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Miniconda3\envs\facefusion\Scripts\.gdk-pixbuf-post-link.bat
==> script messages <==
<None>
==> script output <==
stdout: 
stderr: 
return code: 3221225785

()


ERROR conda.cli.main_run:execute(125): `conda run conda install conda-forge::ffmpeg=7.1.0 --yes` failed. (See above for error)
@henryruhs henryruhs added the bug label Feb 18, 2025
@mfansler
Copy link
Member

mfansler commented Feb 18, 2025

Thanks for reporting your issue. The environment shows mixing of defaults and conda-forge packages, which is not generally supported. Does the issue occur if only conda-forge builds are used?

@conda-forge/ffmpeg could one of you transfer this issue to the feedstock?

@h-vetinari h-vetinari transferred this issue from conda-forge/staged-recipes Feb 18, 2025
@h-vetinari
Copy link
Member

Thanks for the issue and thanks @mfansler for the ping/analysis. @henryruhs, please add

conda config --add channels conda-forge
conda config --set channel_priority strict

and see if you can recreate the problem in an environment that only has packages from conda-forge. Although it sometimes works by chance, it's impossible to actually support channel mxing for binary packages.

@henryruhs
Copy link
Author

henryruhs commented Feb 18, 2025

Both of you, thank you very much for the quick response.

I tried the channel_priority strict flag and it actual results conda to get stuck while installation. I tried this in a Windows Sandbox and the only interesting output I see during --verbose is warning libmamba Problem type not implemented SOLVER_RULE_STRICT_REPO_PRIORITY.

@h-vetinari
Copy link
Member

You should try creating a fresh environment. Changing one that already has mixed channels can lead the solver into dead ends.

@henryruhs
Copy link
Author

henryruhs commented Feb 18, 2025

Update: it was actual not stuck but created an insane large package plan - for whatever reason it wanted to shift everything that seems installed to conda forge. The environment is brandnew.

It resulted again in the same error:

To take advantage of gdk-pixbuf's support for librsvg, please run:
    C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Miniconda3\envs\facefusion\Scripts\.gdk-pixbuf-post-link.bat

@h-vetinari
Copy link
Member

Yeah, that's an unrelated regression, unfortunately: conda-forge/gdk-pixbuf-feedstock#48

@henryruhs
Copy link
Author

henryruhs commented Feb 18, 2025

Thanks for the confirmation, other authors reported the same issue to me.

@h-vetinari
Copy link
Member

Could you open the file

C:\Users\WDAGUtilityAccount\AppData\Local\Programs\Miniconda3\envs\facefusion\Scripts\.gdk-pixbuf-post-link.bat

and check its encoding?

other authors reported the same issue to me.

Please direct them to conda-forge/gdk-pixbuf-feedstock#48. The more information we have about what's happening, the better/faster we can debug.

@traversaro
Copy link
Contributor

I guess the root issue is conda-forge/libiconv-feedstock#48 . As quick workaround is to pin libiconv to 1.17 .

@h-vetinari
Copy link
Member

The gdk-pixbuf issue should be fixed now. Can you try again to recreate the problem from a fresh environment?

@henryruhs
Copy link
Author

It seems to be resolved. Thanks to everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants