msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.3k stars 1.23k forks source link

mingw-w64-ucrt-x86_64-gst-libav does not work #21479

Open BlueCannonBall opened 4 months ago

BlueCannonBall commented 4 months ago

Description / Steps to reproduce the issue

  1. Run pacman -S mingw-w64-ucrt-x86_64-gst-libav in a UCRT64 environment.
  2. Run gst-inspect-1.0 libav. This fails to find the plugin.

Expected behavior

gst-inspect-1.0.exe libav should work, returning information about the libav plugin.

Actual behavior

gst-inspect-1.0.exe libav fails, returning this:

(gst-plugin-scanner.exe:5532): GStreamer-WARNING **: 22:06:32.508: Failed to load plugin 'C:\msys64\ucrt64\lib\gstreamer-1.0\libgstlibav.dll': The specified module could not be found.
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run 'dumpbin -dependents' (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.
No such element or plugin 'libav'

Upon further investigation, I find that I have some DLLs missing:

 $ ldd /ucrt64/lib/gstreamer-1.0/libgstlibav.dll
        ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ff81ad30000)
        KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ff819da0000)
        KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ff818420000)
        msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ff81ab90000)
        libgstlibav.dll => /ucrt64/lib/gstreamer-1.0/libgstlibav.dll (0x7ffff9330000)
        ucrtbase.dll => /c/Windows/System32/ucrtbase.dll (0x7ff818950000)
        avformat-60.dll => /ucrt64/bin/avformat-60.dll (0x7fffc09f0000)
        avcodec-60.dll => /ucrt64/bin/avcodec-60.dll (0x7fffbd740000)
        ws2_32.dll => /c/Windows/System32/ws2_32.dll (0x7ff8192b0000)
        avfilter-9.dll => /ucrt64/bin/avfilter-9.dll (0x7fffbd2c0000)
        avutil-58.dll => /ucrt64/bin/avutil-58.dll (0x7fffbc190000)
        bcrypt.dll => /c/Windows/System32/bcrypt.dll (0x7ff8188f0000)
        ole32.dll => /c/Windows/System32/ole32.dll (0x7ff819390000)
        rpcrt4.dll => /c/Windows/System32/rpcrt4.dll (0x7ff819050000)
        msvcp_win.dll => /c/Windows/System32/msvcp_win.dll (0x7ff8180d0000)
        user32.dll => /c/Windows/System32/user32.dll (0x7ff81a590000)
        gdi32.dll => /c/Windows/System32/gdi32.dll (0x7ff81a9a0000)
        win32u.dll => /c/Windows/System32/win32u.dll (0x7ff818920000)
        gdi32full.dll => /c/Windows/System32/gdi32full.dll (0x7ff8187d0000)
        libglib-2.0-0.dll => /ucrt64/bin/libglib-2.0-0.dll (0x7fffc1880000)
        advapi32.dll => /c/Windows/System32/advapi32.dll (0x7ff81a740000)
        combase.dll => /c/Windows/System32/combase.dll (0x7ff819e70000)
        libgobject-2.0-0.dll => /ucrt64/bin/libgobject-2.0-0.dll (0x7ffff92d0000)
        sechost.dll => /c/Windows/System32/sechost.dll (0x7ff81a310000)
        libgstaudio-1.0-0.dll => /ucrt64/bin/libgstaudio-1.0-0.dll (0x7fffe5a10000)
        shell32.dll => /c/Windows/System32/shell32.dll (0x7ff819540000)
        libgstbase-1.0-0.dll => /ucrt64/bin/libgstbase-1.0-0.dll (0x7fffe4940000)
        libgstpbutils-1.0-0.dll => /ucrt64/bin/libgstpbutils-1.0-0.dll (0x7ffff3f80000)
        libgstreamer-1.0-0.dll => /ucrt64/bin/libgstreamer-1.0-0.dll (0x7fffc7600000)
        libintl-8.dll => /ucrt64/bin/libintl-8.dll (0x7ffff1890000)
        libgstvideo-1.0-0.dll => /ucrt64/bin/libgstvideo-1.0-0.dll (0x7fffcbea0000)
        libbz2-1.dll => /ucrt64/bin/libbz2-1.dll (0x7ffff4a90000)
        libbluray-2.dll => /ucrt64/bin/libbluray-2.dll (0x7fffe48d0000)
        libgme.dll => /ucrt64/bin/libgme.dll (0x7fffe3900000)
        libgnutls-30.dll => /ucrt64/bin/libgnutls-30.dll (0x7fffbbf80000)
        crypt32.dll => /c/Windows/System32/crypt32.dll (0x7ff818230000)
        libiconv-2.dll => /ucrt64/bin/libiconv-2.dll (0x7fffbf8d0000)
        libmodplug-1.dll => /ucrt64/bin/libmodplug-1.dll (0x7fffbbe90000)
        librtmp-1.dll => /ucrt64/bin/librtmp-1.dll (0x7ffff29f0000)
        libssh.dll => /ucrt64/bin/libssh.dll (0x7fffcc5e0000)
        libsrt.dll => /ucrt64/bin/libsrt.dll (0x7fffc5df0000)
        libcairo-2.dll => /ucrt64/bin/libcairo-2.dll (0x7fffbb490000)
        libaom.dll => /ucrt64/bin/libaom.dll (0x7fffbb5c0000)
        libdav1d-7.dll => /ucrt64/bin/libdav1d-7.dll (0x7fffbb290000)
        libgsm.dll => /ucrt64/bin/libgsm.dll (0x7ffff46b0000)
        libass-9.dll => /ucrt64/bin/libass-9.dll (0x7fffcc470000)
        libjxl_threads.dll => /ucrt64/bin/libjxl_threads.dll (0x7ff810a50000)
        liblzma-5.dll => /ucrt64/bin/liblzma-5.dll (0x7fffedb30000)
        libjxl.dll => /ucrt64/bin/libjxl.dll (0x7fffbae60000)
        libmp3lame-0.dll => /ucrt64/bin/libmp3lame-0.dll (0x7fffc5920000)
        libfreetype-6.dll => /ucrt64/bin/libfreetype-6.dll (0x7fffc4480000)
        libplacebo-338.dll => /ucrt64/bin/libplacebo-338.dll (0x7fffbad40000)
        libfontconfig-1.dll => /ucrt64/bin/libfontconfig-1.dll (0x7fffc1820000)
        shlwapi.dll => /c/Windows/System32/shlwapi.dll (0x7ff819330000)
        libva.dll => /ucrt64/bin/libva.dll (0x7fffe6da0000)
        libvidstab.dll => /ucrt64/bin/libvidstab.dll (0x7fffedbe0000)
        libvpl.dll => /c/Windows/System32/libvpl.dll (0x7fffbf700000)
        libxml2-2.dll => /ucrt64/bin/libxml2-2.dll (0x7fffbac00000)
        libzimg-2.dll => /ucrt64/bin/libzimg-2.dll (0x7fffbab20000)
        postproc-57.dll => /ucrt64/bin/postproc-57.dll (0x7fffeda10000)
        swscale-7.dll => /ucrt64/bin/swscale-7.dll (0x7fffbaa70000)
        swresample-4.dll => /ucrt64/bin/swresample-4.dll (0x7fffecea0000)
        libwinpthread-1.dll => /ucrt64/bin/libwinpthread-1.dll (0x7ffff94b0000)
        zlib1.dll => /ucrt64/bin/zlib1.dll (0x7fffe61a0000)
        libva_win32.dll => /ucrt64/bin/libva_win32.dll (0x7ff8103e0000)
        libffi-8.dll => /ucrt64/bin/libffi-8.dll (0x7fffe59f0000)
        libgcc_s_seh-1.dll => /ucrt64/bin/libgcc_s_seh-1.dll (0x7ff8067e0000)
        libopencore-amrnb-0.dll => /ucrt64/bin/libopencore-amrnb-0.dll (0x7fffe4890000)
        libopencore-amrwb-0.dll => /ucrt64/bin/libopencore-amrwb-0.dll (0x7fffe4c20000)
        libopenjp2-7.dll => /ucrt64/bin/libopenjp2-7.dll (0x7fffba9f0000)
        libopus-0.dll => /ucrt64/bin/libopus-0.dll (0x7fffba970000)
        rav1e.dll => /ucrt64/bin/rav1e.dll (0x7fffba620000)
        librsvg-2-2.dll => /ucrt64/bin/librsvg-2-2.dll (0x7fffb9b00000)
        libspeex-1.dll => /ucrt64/bin/libspeex-1.dll (0x7fffe38d0000)
        libSvtAv1Enc-2.dll => /ucrt64/bin/libSvtAv1Enc-2.dll (0x7fffb9320000)
        libtheoradec-1.dll => /ucrt64/bin/libtheoradec-1.dll (0x7fffe3810000)
        libtheoraenc-1.dll => /ucrt64/bin/libtheoraenc-1.dll (0x7fffe2f40000)
        libvorbisenc-2.dll => /ucrt64/bin/libvorbisenc-2.dll (0x7fffb8ed0000)
        libvorbis-0.dll => /ucrt64/bin/libvorbis-0.dll (0x7fffc5a00000)
        libvpx-1.dll => /ucrt64/bin/libvpx-1.dll (0x7fffb8f70000)
        libwebp-7.dll => /ucrt64/bin/libwebp-7.dll (0x7fffb8e10000)
        libx264-164.dll => /ucrt64/bin/libx264-164.dll (0x7fffb8b20000)
        libwebpmux-3.dll => /ucrt64/bin/libwebpmux-3.dll (0x7fffc7d90000)
        libx265.dll => /ucrt64/bin/libx265.dll (0x7fffb77c0000)
        xvidcore.dll => /ucrt64/bin/xvidcore.dll (0x7fffb7690000)
        libzvbi-0.dll => /ucrt64/bin/libzvbi-0.dll (0x7fffb7610000)
        libpcre2-8-0.dll => /ucrt64/bin/libpcre2-8-0.dll (0x7fffb75a0000)
        liborc-0.4-0.dll => /ucrt64/bin/liborc-0.4-0.dll (0x7fffb7520000)
        libgsttag-1.0-0.dll => /ucrt64/bin/libgsttag-1.0-0.dll (0x7fffc5810000)
        libgmodule-2.0-0.dll => /ucrt64/bin/libgmodule-2.0-0.dll (0x7ff804c80000)
        libstdc++-6.dll => /ucrt64/bin/libstdc++-6.dll (0x7fffb72d0000)
        ncrypt.dll => /c/Windows/System32/ncrypt.dll (0x7ff817920000)
        libidn2-0.dll => /ucrt64/bin/libidn2-0.dll (0x7fffb7280000)
        libnettle-8.dll => /ucrt64/bin/libnettle-8.dll (0x7fffb7220000)
        libgmp-10.dll => /ucrt64/bin/libgmp-10.dll (0x7fffb7170000)
        libhogweed-6.dll => /ucrt64/bin/libhogweed-6.dll (0x7fffb7120000)
        winmm.dll => /c/Windows/System32/winmm.dll (0x7ffff4730000)
        IPHLPAPI.DLL => /c/Windows/System32/IPHLPAPI.DLL (0x7ff816b00000)
        libcrypto-3-x64.dll => /ucrt64/bin/libcrypto-3-x64.dll (0x7fffb6c40000)
        libtasn1-6.dll => /ucrt64/bin/libtasn1-6.dll (0x7fffc6b90000)
        msimg32.dll => /c/Windows/System32/msimg32.dll (0x7ffff94a0000)
        libp11-kit-0.dll => /ucrt64/bin/libp11-kit-0.dll (0x7fffb6ad0000)
        libpng16-16.dll => /ucrt64/bin/libpng16-16.dll (0x7fffb6a80000)
        libfribidi-0.dll => /ucrt64/bin/libfribidi-0.dll (0x7fffc17f0000)
        libharfbuzz-0.dll => /ucrt64/bin/libharfbuzz-0.dll (0x7fffb6930000)
        libunibreak-5.dll => /ucrt64/bin/libunibreak-5.dll (0x7fffb6900000)
        libbrotlidec.dll => /ucrt64/bin/libbrotlidec.dll (0x7fffbf8b0000)
        wsock32.dll => /c/Windows/System32/wsock32.dll (0x7ffff45e0000)
        libunistring-5.dll => /ucrt64/bin/libunistring-5.dll (0x7fffb6710000)
        libhwy.dll => /ucrt64/bin/libhwy.dll (0x7fffb66f0000)
        libexpat-1.dll => /ucrt64/bin/libexpat-1.dll (0x7fffb66b0000)
        version.dll => /c/Windows/System32/version.dll (0x7ff811bf0000)
        dovi.dll => /ucrt64/bin/dovi.dll (0x7fffb65a0000)
        liblcms2-2.dll => /ucrt64/bin/liblcms2-2.dll (0x7fffb6530000)
        libshaderc_shared.dll => /ucrt64/bin/libshaderc_shared.dll (0x7fffb5cd0000)
        libspirv-cross-c-shared.dll => /ucrt64/bin/libspirv-cross-c-shared.dll (0x7fffb59f0000)
        vulkan-1.dll => /c/Windows/System32/vulkan-1.dll (0x7fffb5880000)
        libgomp-1.dll => /ucrt64/bin/libgomp-1.dll (0x7fffb5830000)
        msvcp140.dll => /c/Windows/System32/msvcp140.dll (0x7fffb5790000)
        vcruntime140.dll => /c/Windows/System32/vcruntime140.dll (0x7fffb5770000)
        libbrotlienc.dll => /ucrt64/bin/libbrotlienc.dll (0x7fffb56b0000)
        libpixman-1-0.dll => /ucrt64/bin/libpixman-1-0.dll (0x7fffb55d0000)
        libjxl_cms.dll => /ucrt64/bin/libjxl_cms.dll (0x7fffb55a0000)
        api-ms-win-crt-convert-l1-1-0.dll => not found
        api-ms-win-crt-environment-l1-1-0.dll => not found
        api-ms-win-crt-filesystem-l1-1-0.dll => not found
        api-ms-win-crt-heap-l1-1-0.dll => not found
        api-ms-win-crt-locale-l1-1-0.dll => not found
        api-ms-win-crt-private-l1-1-0.dll => not found
        api-ms-win-crt-runtime-l1-1-0.dll => not found
        api-ms-win-crt-stdio-l1-1-0.dll => not found
        api-ms-win-crt-string-l1-1-0.dll => not found
        api-ms-win-crt-time-l1-1-0.dll => not found
        api-ms-win-crt-utility-l1-1-0.dll => not found

Verification

Windows Version

MINGW64_NT-10.0-22631

Are you willing to submit a PR?

Yes, but I don't have any experience with packaging stuff.

Biswa96 commented 4 months ago

It's working in my setup.

$ gst-inspect-1.0.exe libav | head -n 12
Plugin Details:
  Name                     libav
  Description              All libav codecs and formats (system install)
  Filename                 F:\msys64\ucrt64\lib\gstreamer-1.0\libgstlibav.dll
  Version                  1.24.5
  License                  LGPL
  Source module            gst-libav
  Documentation            https://gstreamer.freedesktop.org/documentation/libav/
  Source release date      2024-06-20
  Binary package           GStreamer FFMPEG Plug-ins source release
  Origin URL               https://www.msys2.org

$ gst-inspect-1.0.exe libav | tail -n 4

  675 features:
  +-- 675 elements
lazka commented 4 months ago
Biswa96 commented 4 months ago

So, not msys2 specific issue.

BlueCannonBall commented 4 months ago
  • Your MSYS2 is not up-to-date (seeing various outdated DLLs in the list)

How can that be the case? I created this fresh Windows install two days ago and I installed MSYS2 yesterday. I'll try updating today just to see if something has changed since yesterday, when I created this issue.

  • You seem to have a libvpl.dll C:/Windows/System32/ which seems to get preferred

Is that a problem?

mmuetzel commented 4 months ago

You ticked the following in your original report:

[x] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)

Did you actually do that? Did you read the instructions at that link?

BlueCannonBall commented 4 months ago

You ticked the following in your original report:

[x] I have verified that my MSYS2 is up-to-date before submitting the report (see https://www.msys2.org/docs/updating/)

Did you actually do that? Did you read the instructions at that link?

I did do that, and I updated it again today and the issue persists:

$ pacman -Syu
:: Synchronizing package databases...
 clangarm64 is up to date
 mingw32 is up to date
 mingw64 is up to date
 ucrt64 is up to date
 clang32 is up to date
 clang64 is up to date
 msys is up to date
:: Starting core system upgrade...
 there is nothing to do
:: Starting full system upgrade...
 there is nothing to do

$ gst-inspect-1.0.exe libav

(gst-plugin-scanner.exe:8552): GStreamer-WARNING **: 19:06:09.489: Failed to load plugin 'C:\msys64\ucrt64\lib\gstreamer-1.0\libgstlibav.dll': The specified module could not be found.
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run 'dumpbin -dependents' (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.
No such element or plugin 'libav'

$ ldd /ucrt64/lib/gstreamer-1.0/libgstlibav.dll
        ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffe7d3f0000)
        KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ffe7b130000)
        KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffe7a8c0000)
        msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffe7bca0000)
        libgstlibav.dll => /ucrt64/lib/gstreamer-1.0/libgstlibav.dll (0x7ffe5d160000)
        ucrtbase.dll => /c/Windows/System32/ucrtbase.dll (0x7ffe7aca0000)
        avformat-60.dll => /ucrt64/bin/avformat-60.dll (0x7ffe2d2b0000)
        avfilter-9.dll => /ucrt64/bin/avfilter-9.dll (0x7ffe22440000)
        avutil-58.dll => /ucrt64/bin/avutil-58.dll (0x7ffe21310000)
        avcodec-60.dll => /ucrt64/bin/avcodec-60.dll (0x7ffe228d0000)
        ws2_32.dll => /c/Windows/System32/ws2_32.dll (0x7ffe7b340000)
        bcrypt.dll => /c/Windows/System32/bcrypt.dll (0x7ffe7aef0000)
        rpcrt4.dll => /c/Windows/System32/rpcrt4.dll (0x7ffe7c6b0000)
        ole32.dll => /c/Windows/System32/ole32.dll (0x7ffe7cbb0000)
        user32.dll => /c/Windows/System32/user32.dll (0x7ffe7c120000)
        msvcp_win.dll => /c/Windows/System32/msvcp_win.dll (0x7ffe7af20000)
        libglib-2.0-0.dll => /ucrt64/bin/libglib-2.0-0.dll (0x7ffe572f0000)
        win32u.dll => /c/Windows/System32/win32u.dll (0x7ffe7ac70000)
        advapi32.dll => /c/Windows/System32/advapi32.dll (0x7ffe7c7d0000)
        gdi32.dll => /c/Windows/System32/gdi32.dll (0x7ffe7c2d0000)
        gdi32.dll => /c/Windows/System32/gdi32.dll (0x1190000)
        libgobject-2.0-0.dll => /ucrt64/bin/libgobject-2.0-0.dll (0x7ffe5d100000)
        gdi32full.dll => /c/Windows/System32/gdi32full.dll (0x7ffe7a7a0000)
        sechost.dll => /c/Windows/System32/sechost.dll (0x7ffe7b290000)
        combase.dll => /c/Windows/System32/combase.dll (0x7ffe7c310000)
        shell32.dll => /c/Windows/System32/shell32.dll (0x7ffe7b3c0000)
        libgstaudio-1.0-0.dll => /ucrt64/bin/libgstaudio-1.0-0.dll (0x7ffe5d070000)
        libgstbase-1.0-0.dll => /ucrt64/bin/libgstbase-1.0-0.dll (0x7ffe570b0000)
        libgstreamer-1.0-0.dll => /ucrt64/bin/libgstreamer-1.0-0.dll (0x7ffe46250000)
        libgstpbutils-1.0-0.dll => /ucrt64/bin/libgstpbutils-1.0-0.dll (0x7ffe58250000)
        libgstvideo-1.0-0.dll => /ucrt64/bin/libgstvideo-1.0-0.dll (0x7ffe457d0000)
        libintl-8.dll => /ucrt64/bin/libintl-8.dll (0x7ffe572b0000)
        libbluray-2.dll => /ucrt64/bin/libbluray-2.dll (0x7ffe57040000)
        libbz2-1.dll => /ucrt64/bin/libbz2-1.dll (0x7ffe586c0000)
        libgme.dll => /ucrt64/bin/libgme.dll (0x7ffe56900000)
        libgnutls-30.dll => /ucrt64/bin/libgnutls-30.dll (0x7ffe28670000)
        crypt32.dll => /c/Windows/System32/crypt32.dll (0x7ffe7afc0000)
        libmodplug-1.dll => /ucrt64/bin/libmodplug-1.dll (0x7ffe29970000)
        libass-9.dll => /ucrt64/bin/libass-9.dll (0x7ffe461f0000)
        libiconv-2.dll => /ucrt64/bin/libiconv-2.dll (0x7ffe441a0000)
        libfreetype-6.dll => /ucrt64/bin/libfreetype-6.dll (0x7ffe440d0000)
        libplacebo-349.dll => /ucrt64/bin/libplacebo-349.dll (0x7ffe211e0000)
        librtmp-1.dll => /ucrt64/bin/librtmp-1.dll (0x7ffe57280000)
        libfontconfig-1.dll => /ucrt64/bin/libfontconfig-1.dll (0x7ffe46020000)
        shlwapi.dll => /c/Windows/System32/shlwapi.dll (0x7ffe7ca50000)
        libva.dll => /ucrt64/bin/libva.dll (0x7ffe46980000)
        libssh.dll => /ucrt64/bin/libssh.dll (0x7ffe28ba0000)
        libsrt.dll => /ucrt64/bin/libsrt.dll (0x7ffe285a0000)
        libvidstab.dll => /ucrt64/bin/libvidstab.dll (0x7ffe57020000)
        libvpl.dll => /c/Windows/System32/libvpl.dll (0x7ffe273f0000)
        postproc-57.dll => /ucrt64/bin/postproc-57.dll (0x7ffe568e0000)
        libzimg-2.dll => /ucrt64/bin/libzimg-2.dll (0x7ffe20fb0000)
        libxml2-2.dll => /ucrt64/bin/libxml2-2.dll (0x7ffe21090000)
        swresample-4.dll => /ucrt64/bin/swresample-4.dll (0x7ffe513b0000)
        swscale-7.dll => /ucrt64/bin/swscale-7.dll (0x7ffe20f00000)
        libcairo-2.dll => /ucrt64/bin/libcairo-2.dll (0x7ffe20dd0000)
        libaom.dll => /ucrt64/bin/libaom.dll (0x7ffe204d0000)
        libdav1d-7.dll => /ucrt64/bin/libdav1d-7.dll (0x7ffe202c0000)
        libgsm.dll => /ucrt64/bin/libgsm.dll (0x7ffe4ff10000)
        libjxl_threads.dll => /ucrt64/bin/libjxl_threads.dll (0x7ffe75b60000)
        libjxl.dll => /ucrt64/bin/libjxl.dll (0x7ffe1fe70000)
        liblzma-5.dll => /ucrt64/bin/liblzma-5.dll (0x7ffe45900000)
        libmp3lame-0.dll => /ucrt64/bin/libmp3lame-0.dll (0x7ffe1fde0000)
        libwinpthread-1.dll => /ucrt64/bin/libwinpthread-1.dll (0x7ffe4b5e0000)
        zlib1.dll => /ucrt64/bin/zlib1.dll (0x7ffe47890000)
        libva_win32.dll => /ucrt64/bin/libva_win32.dll (0x7ffe75100000)
        libffi-8.dll => /ucrt64/bin/libffi-8.dll (0x7ffe476d0000)
        libgcc_s_seh-1.dll => /ucrt64/bin/libgcc_s_seh-1.dll (0x7ffe460a0000)
        libopencore-amrnb-0.dll => /ucrt64/bin/libopencore-amrnb-0.dll (0x7ffe45790000)
        libopenjp2-7.dll => /ucrt64/bin/libopenjp2-7.dll (0x7ffe1fd60000)
        libopencore-amrwb-0.dll => /ucrt64/bin/libopencore-amrwb-0.dll (0x7ffe46000000)
        libopus-0.dll => /ucrt64/bin/libopus-0.dll (0x7ffe1fce0000)
        libpcre2-8-0.dll => /ucrt64/bin/libpcre2-8-0.dll (0x7ffe44810000)
        rav1e.dll => /ucrt64/bin/rav1e.dll (0x7ffe1f990000)
        librsvg-2-2.dll => /ucrt64/bin/librsvg-2-2.dll (0x7ffe1ee70000)
        libspeex-1.dll => /ucrt64/bin/libspeex-1.dll (0x7ffe44b60000)
        libtheoradec-1.dll => /ucrt64/bin/libtheoradec-1.dll (0x7ffe45f90000)
        libSvtAv1Enc-2.dll => /ucrt64/bin/libSvtAv1Enc-2.dll (0x7ffe1e670000)
        libtheoraenc-1.dll => /ucrt64/bin/libtheoraenc-1.dll (0x7ffe43fb0000)
        libvorbis-0.dll => /ucrt64/bin/libvorbis-0.dll (0x7ffe33670000)
        libvorbisenc-2.dll => /ucrt64/bin/libvorbisenc-2.dll (0x7ffe1e5d0000)
        libvpx-1.dll => /ucrt64/bin/libvpx-1.dll (0x7ffe1e210000)
        libwebp-7.dll => /ucrt64/bin/libwebp-7.dll (0x7ffe1e150000)
        libwebpmux-3.dll => /ucrt64/bin/libwebpmux-3.dll (0x7ffe45770000)
        libx264-164.dll => /ucrt64/bin/libx264-164.dll (0x7ffe1ca80000)
        libx265-209.dll => /ucrt64/bin/libx265-209.dll (0x7ffe1cd70000)
        xvidcore.dll => /ucrt64/bin/xvidcore.dll (0x7ffe1c950000)
        libzvbi-0.dll => /ucrt64/bin/libzvbi-0.dll (0x7ffe1c8d0000)
        liborc-0.4-0.dll => /ucrt64/bin/liborc-0.4-0.dll (0x7ffe1c850000)
        libgsttag-1.0-0.dll => /ucrt64/bin/libgsttag-1.0-0.dll (0x7ffe2d260000)
        libgmodule-2.0-0.dll => /ucrt64/bin/libgmodule-2.0-0.dll (0x7ffe72b50000)
        libhogweed-6.dll => /ucrt64/bin/libhogweed-6.dll (0x7ffe29920000)
        libgmp-10.dll => /ucrt64/bin/libgmp-10.dll (0x7ffe1c540000)
        libidn2-0.dll => /ucrt64/bin/libidn2-0.dll (0x7ffe293f0000)
        libstdc++-6.dll => /ucrt64/bin/libstdc++-6.dll (0x7ffe1c5f0000)
        ncrypt.dll => /c/Windows/System32/ncrypt.dll (0x7ffe7a050000)
        libfribidi-0.dll => /ucrt64/bin/libfribidi-0.dll (0x7ffe44b30000)
        libnettle-8.dll => /ucrt64/bin/libnettle-8.dll (0x7ffe291b0000)
        libharfbuzz-0.dll => /ucrt64/bin/libharfbuzz-0.dll (0x7ffe1c3f0000)
        libp11-kit-0.dll => /ucrt64/bin/libp11-kit-0.dll (0x7ffe1c280000)
        libunibreak-6.dll => /ucrt64/bin/libunibreak-6.dll (0x7ffe44710000)
        libtasn1-6.dll => /ucrt64/bin/libtasn1-6.dll (0x7ffe45710000)
        libunistring-5.dll => /ucrt64/bin/libunistring-5.dll (0x7ffe1c090000)
        libbrotlidec.dll => /ucrt64/bin/libbrotlidec.dll (0x7ffe43f90000)
        libpng16-16.dll => /ucrt64/bin/libpng16-16.dll (0x7ffe28550000)
        libexpat-1.dll => /ucrt64/bin/libexpat-1.dll (0x7ffe273b0000)
        winmm.dll => /c/Windows/System32/winmm.dll (0x7ffe726f0000)
        version.dll => /c/Windows/System32/version.dll (0x7ffe74610000)
        dovi.dll => /ucrt64/bin/dovi.dll (0x7ffe1bf80000)
        liblcms2-2.dll => /ucrt64/bin/liblcms2-2.dll (0x7ffe1bf10000)
        libshaderc_shared.dll => /ucrt64/bin/libshaderc_shared.dll (0x7ffe1b650000)
        libspirv-cross-c-shared.dll => /ucrt64/bin/libspirv-cross-c-shared.dll (0x7ffe1b370000)
        vulkan-1.dll => /c/Windows/System32/vulkan-1.dll (0x7ffe1b200000)
        IPHLPAPI.DLL => /c/Windows/System32/IPHLPAPI.DLL (0x7ffe791c0000)
        libcrypto-3-x64.dll => /ucrt64/bin/libcrypto-3-x64.dll (0x7ffe1ad20000)
        wsock32.dll => /c/Windows/System32/wsock32.dll (0x7ffe6d2f0000)
        msvcp140.dll => /c/Windows/System32/msvcp140.dll (0x7ffe1ac80000)
        libgomp-1.dll => /ucrt64/bin/libgomp-1.dll (0x7ffe26aa0000)
        vcruntime140.dll => /c/Windows/System32/vcruntime140.dll (0x7ffe33650000)
        msimg32.dll => /c/Windows/System32/msimg32.dll (0x7ffe62680000)
        libsoxr.dll => /ucrt64/bin/libsoxr.dll (0x7ffe1abf0000)
        api-ms-win-crt-convert-l1-1-0.dll => not found
        api-ms-win-crt-environment-l1-1-0.dll => not found
        api-ms-win-crt-filesystem-l1-1-0.dll => not found
        api-ms-win-crt-heap-l1-1-0.dll => not found
        api-ms-win-crt-locale-l1-1-0.dll => not found
        api-ms-win-crt-private-l1-1-0.dll => not found
        api-ms-win-crt-runtime-l1-1-0.dll => not found
        api-ms-win-crt-stdio-l1-1-0.dll => not found
        api-ms-win-crt-string-l1-1-0.dll => not found
        api-ms-win-crt-time-l1-1-0.dll => not found
        api-ms-win-crt-utility-l1-1-0.dll => not found
BlueCannonBall commented 4 months ago

image After looking around a bit, it seems that I have a few copies of these DLLs in various locations. Is there something I need to do to make GStreamer and ldd find them?

BlueCannonBall commented 4 months ago

Upon even further investigation, I found that an old MSYS2 installation on another machine is working and does not depend on the missing DLLs:

$ ldd /ucrt64/lib/gstreamer-1.0/libgstlibav.dll
        ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7fff3eb30000)
        KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7fff3dd10000)
        KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll (0x7fff3c2b0000)
        msvcrt.dll => /c/WINDOWS/System32/msvcrt.dll (0x7fff3e420000)
        ucrtbase.dll => /c/WINDOWS/System32/ucrtbase.dll (0x7fff3c720000)
        avfilter-9.dll => /ucrt64/bin/avfilter-9.dll (0x7ffee4ff0000)
        libglib-2.0-0.dll => /ucrt64/bin/libglib-2.0-0.dll (0x7ffee4c00000)
        ADVAPI32.dll => /c/WINDOWS/System32/ADVAPI32.dll (0x7fff3e5d0000)
        sechost.dll => /c/WINDOWS/System32/sechost.dll (0x7fff3e7f0000)
        bcrypt.dll => /c/WINDOWS/System32/bcrypt.dll (0x7fff3c840000)
        RPCRT4.dll => /c/WINDOWS/System32/RPCRT4.dll (0x7fff3e9d0000)
        ole32.dll => /c/WINDOWS/System32/ole32.dll (0x7fff3d760000)
        msvcp_win.dll => /c/WINDOWS/System32/msvcp_win.dll (0x7fff3bf10000)
        GDI32.dll => /c/WINDOWS/System32/GDI32.dll (0x7fff3d160000)
        win32u.dll => /c/WINDOWS/System32/win32u.dll (0x7fff3bee0000)
        gdi32full.dll => /c/WINDOWS/System32/gdi32full.dll (0x7fff3c020000)
        USER32.dll => /c/WINDOWS/System32/USER32.dll (0x7fff3d220000)
        combase.dll => /c/WINDOWS/System32/combase.dll (0x7fff3d3d0000)
        SHELL32.dll => /c/WINDOWS/System32/SHELL32.dll (0x7fff3c870000)
        WS2_32.dll => /c/WINDOWS/System32/WS2_32.dll (0x7fff3d960000)
        libgobject-2.0-0.dll => /ucrt64/bin/libgobject-2.0-0.dll (0x7ffee4ba0000)
        libgstaudio-1.0-0.dll => /ucrt64/bin/libgstaudio-1.0-0.dll (0x7ffee4b10000)
        avutil-58.dll => /ucrt64/bin/avutil-58.dll (0x7ffeb67c0000)
        libgstpbutils-1.0-0.dll => /ucrt64/bin/libgstpbutils-1.0-0.dll (0x7ffee4ac0000)
        libgstreamer-1.0-0.dll => /ucrt64/bin/libgstreamer-1.0-0.dll (0x7ffeb6670000)
        avformat-60.dll => /ucrt64/bin/avformat-60.dll (0x7ffee4d70000)
        libintl-8.dll => /ucrt64/bin/libintl-8.dll (0x7ffee4a80000)
        libgstvideo-1.0-0.dll => /ucrt64/bin/libgstvideo-1.0-0.dll (0x7ffeb6590000)
        libass-9.dll => /ucrt64/bin/libass-9.dll (0x7ffeb64a0000)
        libfontconfig-1.dll => /ucrt64/bin/libfontconfig-1.dll (0x7ffee4a20000)
        libgstbase-1.0-0.dll => /ucrt64/bin/libgstbase-1.0-0.dll (0x7ffeb6500000)
        libva.dll => /ucrt64/bin/libva.dll (0x7ffecb330000)
        libfreetype-6.dll => /ucrt64/bin/libfreetype-6.dll (0x7ffeb4f10000)
        libplacebo-338.dll => /ucrt64/bin/libplacebo-338.dll (0x7ffeb4df0000)
        avcodec-60.dll => /ucrt64/bin/avcodec-60.dll (0x7ffeb4fe0000)
        SHLWAPI.dll => /c/WINDOWS/System32/SHLWAPI.dll (0x7fff3dbd0000)
        libvidstab.dll => /ucrt64/bin/libvidstab.dll (0x7ffee4a00000)
        libxml2-2.dll => /ucrt64/bin/libxml2-2.dll (0x7ffeb4cb0000)
        postproc-57.dll => /ucrt64/bin/postproc-57.dll (0x7ffee49e0000)
        libzimg-2.dll => /ucrt64/bin/libzimg-2.dll (0x7ffeb4bd0000)
        libpcre2-8-0.dll => /ucrt64/bin/libpcre2-8-0.dll (0x7ffeb4b60000)
        libffi-8.dll => /ucrt64/bin/libffi-8.dll (0x7ffee4750000)
        libgcc_s_seh-1.dll => /ucrt64/bin/libgcc_s_seh-1.dll (0x7ffedc010000)
        swresample-4.dll => /ucrt64/bin/swresample-4.dll (0x7ffecb1a0000)
        swscale-7.dll => /ucrt64/bin/swscale-7.dll (0x7ffeb4a60000)
        libwinpthread-1.dll => /ucrt64/bin/libwinpthread-1.dll (0x7ffedbad0000)
        libgsttag-1.0-0.dll => /ucrt64/bin/libgsttag-1.0-0.dll (0x7ffeb4b10000)
        liborc-0.4-0.dll => /ucrt64/bin/liborc-0.4-0.dll (0x7ffeb49e0000)
        libgmodule-2.0-0.dll => /ucrt64/bin/libgmodule-2.0-0.dll (0x7ffee56c0000)
        libvpl.dll => /c/WINDOWS/SYSTEM32/libvpl.dll (0x7ffeb4960000)
        libvpl.dll => /c/Windows/System32/libvpl.dll (0x17a368a0000)
        libbz2-1.dll => /ucrt64/bin/libbz2-1.dll (0x7ffeb4940000)
        libgme.dll => /ucrt64/bin/libgme.dll (0x7ffeb48e0000)
        libiconv-2.dll => /ucrt64/bin/libiconv-2.dll (0x7ffeb47c0000)
        libva_win32.dll => /ucrt64/bin/libva_win32.dll (0x7ffee3cf0000)
        libgnutls-30.dll => /ucrt64/bin/libgnutls-30.dll (0x7ffeb45b0000)
        CRYPT32.dll => /c/WINDOWS/System32/CRYPT32.dll (0x7fff3c140000)
        libmodplug-1.dll => /ucrt64/bin/libmodplug-1.dll (0x7ffeb44c0000)
        libsrt.dll => /ucrt64/bin/libsrt.dll (0x7ffeb4380000)
        zlib1.dll => /ucrt64/bin/zlib1.dll (0x7ffeb4330000)
        libssh.dll => /ucrt64/bin/libssh.dll (0x7ffeb42a0000)
        librtmp-1.dll => /ucrt64/bin/librtmp-1.dll (0x7ffeb4350000)
        libbluray-2.dll => /ucrt64/bin/libbluray-2.dll (0x7ffeb4450000)
        libunibreak-5.dll => /ucrt64/bin/libunibreak-5.dll (0x7ffeb4270000)
        libfribidi-0.dll => /ucrt64/bin/libfribidi-0.dll (0x7ffeb4240000)
        libbrotlidec.dll => /ucrt64/bin/libbrotlidec.dll (0x7ffeb4220000)
        libexpat-1.dll => /ucrt64/bin/libexpat-1.dll (0x7ffeb41e0000)
        libpng16-16.dll => /ucrt64/bin/libpng16-16.dll (0x7ffeb4190000)
        libharfbuzz-0.dll => /ucrt64/bin/libharfbuzz-0.dll (0x7ffeb4040000)
        libharfbuzz-0.dll => /ucrt64/bin/libharfbuzz-0.dll (0x17a369b0000)
        libaom.dll => /ucrt64/bin/libaom.dll (0x7ffeb3770000)
        libdav1d-7.dll => /ucrt64/bin/libdav1d-7.dll (0x7ffeb3570000)
        libgsm.dll => /ucrt64/bin/libgsm.dll (0x7ffeb3120000)
        liblzma-5.dll => /ucrt64/bin/liblzma-5.dll (0x7ffeb30e0000)
        libjxl.dll => /ucrt64/bin/libjxl.dll (0x7ffeb3140000)
        libcairo-2.dll => /ucrt64/bin/libcairo-2.dll (0x7ffeb2fb0000)
        libopencore-amrwb-0.dll => /ucrt64/bin/libopencore-amrwb-0.dll (0x7ffeb2f00000)
        libjxl_threads.dll => /ucrt64/bin/libjxl_threads.dll (0x7ffedda70000)
        libopencore-amrnb-0.dll => /ucrt64/bin/libopencore-amrnb-0.dll (0x7ffeb2ec0000)
        libopenjp2-7.dll => /ucrt64/bin/libopenjp2-7.dll (0x7ffeb2e40000)
        libmp3lame-0.dll => /ucrt64/bin/libmp3lame-0.dll (0x7ffeb2f20000)
        rav1e.dll => /ucrt64/bin/rav1e.dll (0x7ffeb2af0000)
        libstdc++-6.dll => /ucrt64/bin/libstdc++-6.dll (0x7ffeb1d80000)
        libspeex-1.dll => /ucrt64/bin/libspeex-1.dll (0x7ffeb1d50000)
        VERSION.dll => /c/WINDOWS/SYSTEM32/VERSION.dll (0x7fff33200000)
        dovi.dll => /ucrt64/bin/dovi.dll (0x7ffeb1460000)
        libopus-0.dll => /ucrt64/bin/libopus-0.dll (0x7ffeb13e0000)
        libtheoradec-1.dll => /ucrt64/bin/libtheoradec-1.dll (0x7ffeb13c0000)
        libSvtAv1Enc-2.dll => /ucrt64/bin/libSvtAv1Enc-2.dll (0x7ffeb1570000)
        libtheoraenc-1.dll => /ucrt64/bin/libtheoraenc-1.dll (0x7ffeb1380000)
        libvorbis-0.dll => /ucrt64/bin/libvorbis-0.dll (0x7ffeb0ae0000)
        liblcms2-2.dll => /ucrt64/bin/liblcms2-2.dll (0x7ffeb0a70000)
        vulkan-1.dll => /c/WINDOWS/SYSTEM32/vulkan-1.dll (0x7ffeb0900000)
        libvorbisenc-2.dll => /ucrt64/bin/libvorbisenc-2.dll (0x7ffeb0860000)
        libshaderc_shared.dll => /ucrt64/bin/libshaderc_shared.dll (0x7ffeb0b20000)
        librsvg-2-2.dll => /ucrt64/bin/librsvg-2-2.dll (0x7ffeb1fd0000)
        libwebpmux-3.dll => /ucrt64/bin/libwebpmux-3.dll (0x7ffeb0840000)
        libwebp-7.dll => /ucrt64/bin/libwebp-7.dll (0x7ffeb0780000)
        libspirv-cross-c-shared.dll => /ucrt64/bin/libspirv-cross-c-shared.dll (0x7ffeb01b0000)
        libvpx-1.dll => /ucrt64/bin/libvpx-1.dll (0x7ffeafcd0000)
        xvidcore.dll => /ucrt64/bin/xvidcore.dll (0x7ffeb0080000)
        libzvbi-0.dll => /ucrt64/bin/libzvbi-0.dll (0x7ffeafc50000)
        libx264-164.dll => /ucrt64/bin/libx264-164.dll (0x7ffeb0490000)
        libx265.dll => /ucrt64/bin/libx265.dll (0x7ffeadd40000)
        MSVCP140.dll => /c/WINDOWS/SYSTEM32/MSVCP140.dll (0x7ffeafbc0000)
        VCRUNTIME140.dll => /c/WINDOWS/SYSTEM32/VCRUNTIME140.dll (0x7fff36490000)
        VCRUNTIME140_1.dll => /c/WINDOWS/SYSTEM32/VCRUNTIME140_1.dll (0x7ffedc000000)
        libsoxr.dll => /ucrt64/bin/libsoxr.dll (0x7ffeafb30000)
        libgmp-10.dll => /ucrt64/bin/libgmp-10.dll (0x7ffeafa80000)
        libhogweed-6.dll => /ucrt64/bin/libhogweed-6.dll (0x7ffeaf990000)
        ncrypt.dll => /c/WINDOWS/SYSTEM32/ncrypt.dll (0x7fff3b730000)
        libidn2-0.dll => /ucrt64/bin/libidn2-0.dll (0x7ffeafa30000)
        libgomp-1.dll => /ucrt64/bin/libgomp-1.dll (0x7ffeaf9e0000)
        libnettle-8.dll => /ucrt64/bin/libnettle-8.dll (0x7ffeaf930000)
        libunistring-5.dll => /ucrt64/bin/libunistring-5.dll (0x7ffeaf460000)
        WSOCK32.dll => /c/WINDOWS/SYSTEM32/WSOCK32.dll (0x7ffedba40000)
        IPHLPAPI.DLL => /c/WINDOWS/SYSTEM32/IPHLPAPI.DLL (0x7fff3a9f0000)
        libcrypto-3-x64.dll => /ucrt64/bin/libcrypto-3-x64.dll (0x7ffead860000)
        libcrypto-3-x64.dll => /ucrt64/bin/libcrypto-3-x64.dll (0x17a369b0000)
        libp11-kit-0.dll => /ucrt64/bin/libp11-kit-0.dll (0x7ffeaf7c0000)
        WINMM.dll => /c/WINDOWS/SYSTEM32/WINMM.dll (0x7fff207d0000)
        libtasn1-6.dll => /ucrt64/bin/libtasn1-6.dll (0x7ffeaf7a0000)
        libbrotlicommon.dll => /ucrt64/bin/libbrotlicommon.dll (0x7ffeaf770000)
        USP10.dll => /c/WINDOWS/SYSTEM32/USP10.dll (0x7fff1bef0000)
        libgraphite2.dll => /ucrt64/bin/libgraphite2.dll (0x7ffeaf740000)
        libjxl_cms.dll => /ucrt64/bin/libjxl_cms.dll (0x7ffeaf710000)
        MSIMG32.dll => /c/WINDOWS/SYSTEM32/MSIMG32.dll (0x7ffecb190000)
        libbrotlienc.dll => /ucrt64/bin/libbrotlienc.dll (0x7ffeaf3a0000)
        libpixman-1-0.dll => /ucrt64/bin/libpixman-1-0.dll (0x7ffeaf2e0000)
        libhwy.dll => /ucrt64/bin/libhwy.dll (0x7ffeaf6f0000)
        USERENV.dll => /c/WINDOWS/SYSTEM32/USERENV.dll (0x7fff3b350000)
        libogg-0.dll => /ucrt64/bin/libogg-0.dll (0x7ffeaf6d0000)
        libogg-0.dll => /ucrt64/bin/libogg-0.dll (0x17a368c0000)
        CFGMGR32.dll => /c/WINDOWS/SYSTEM32/CFGMGR32.dll (0x7fff3bb60000)
        libcairo-gobject-2.dll => /ucrt64/bin/libcairo-gobject-2.dll (0x7ffeaf6b0000)
        libgdk_pixbuf-2.0-0.dll => /ucrt64/bin/libgdk_pixbuf-2.0-0.dll (0x7ffeaf2b0000)
        libpangocairo-1.0-0.dll => /ucrt64/bin/libpangocairo-1.0-0.dll (0x7ffeaf290000)
        libgio-2.0-0.dll => /ucrt64/bin/libgio-2.0-0.dll (0x7ffead6a0000)
        libpango-1.0-0.dll => /ucrt64/bin/libpango-1.0-0.dll (0x7ffeaf220000)
        libsharpyuv-0.dll => /ucrt64/bin/libsharpyuv-0.dll (0x7ffeaf200000)
        gdiplus.dll => /c/WINDOWS/WinSxS/amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.22621.3810_none_57f8d842ce19d879/gdiplus.dll (0x7fff0a6e0000)
        DNSAPI.dll => /c/WINDOWS/SYSTEM32/DNSAPI.dll (0x7fff3aa20000)
        libthai-0.dll => /ucrt64/bin/libthai-0.dll (0x7ffeaf1e0000)
        libpangowin32-1.0-0.dll => /ucrt64/bin/libpangowin32-1.0-0.dll (0x7ffeaf1b0000)
        CRYPTBASE.DLL => /c/WINDOWS/SYSTEM32/CRYPTBASE.DLL (0x7fff3b4b0000)
        libpangoft2-1.0-0.dll => /ucrt64/bin/libpangoft2-1.0-0.dll (0x7ffeaf190000)
        DWrite.dll => /c/WINDOWS/SYSTEM32/DWrite.dll (0x7fff39cd0000)
        libdatrie-1.dll => /ucrt64/bin/libdatrie-1.dll (0x7ffeaf6a0000)
        bcryptPrimitives.dll => /c/WINDOWS/System32/bcryptPrimitives.dll (0x7fff3be60000)
        IMM32.DLL => /c/WINDOWS/System32/IMM32.DLL (0x7fff3d920000)
        NSI.dll => /c/WINDOWS/System32/NSI.dll (0x7fff3d910000)
        dxgi.dll => /c/WINDOWS/system32/dxgi.dll (0x7fff3a510000)
        NTASN1.dll => /c/WINDOWS/SYSTEM32/NTASN1.dll (0x7fff3b6e0000)

To me, it looks like there was a regression at some point between now and a few weeks ago when I last used this install.

lazka commented 4 months ago

Use https://packages.msys2.org/base/mingw-w64-ntldd and not ldd for mingw binaries.

Do you have any idea how the libvpl.dll might have ended up in your system directory?

BlueCannonBall commented 4 months ago

Do you have any idea how the libvpl.dll might have ended up in your system directory?

The only programs I've installed on the broken machine are MSYS2 and Intel graphics drivers. The machine is a virtual machine that uses Intel GVT-g for GPU passthrough, and the drivers that Windows installs by default are 6 years old and very buggy with passthrough. Is the presence of libvpl.dll in the system directory the cause of the issue?

lazka commented 4 months ago

OK, let's try https://github.com/msys2/MINGW-packages/commit/5112598896d3d224bba03d0e7c1ed3fa5852e96c - will take a bit to build

Is the presence of libvpl.dll in the system directory the cause of the issue?

I don't know, but could be

lazka commented 4 months ago

Please try again now

BlueCannonBall commented 4 months ago

It still doesn't work, but all the DLLs are being found now.

$ pacman -Syu
:: Synchronizing package databases...
 clangarm64 is up to date
 mingw32 is up to date
 mingw64 is up to date
 ucrt64 is up to date
 clang32 is up to date
 clang64 is up to date
 msys is up to date
:: Starting core system upgrade...
 there is nothing to do
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (10) curl-8.9.0-1  libcurl-8.9.0-1  liblz4-1.10.0-1  mingw-w64-ucrt-x86_64-curl-8.9.0-1
              mingw-w64-ucrt-x86_64-ffmpeg-6.1.1-13  mingw-w64-ucrt-x86_64-imagemagick-7.1.1.35-1
              mingw-w64-ucrt-x86_64-libheif-1.18.1-1  mingw-w64-ucrt-x86_64-libvpl-2.12.0-2
              mingw-w64-ucrt-x86_64-libxml2-2.12.9-1  mingw-w64-ucrt-x86_64-openjph-0.15.0-1

Total Download Size:    22.99 MiB
Total Installed Size:  101.28 MiB
Net Upgrade Size:        0.12 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 mingw-w64-ucrt-x86_64-libxml2-2.12.9-1-any 1060.6 KiB   652 KiB/s 00:02 [#######################################] 100%
 curl-8.9.0-1-x86_64                         798.1 KiB   448 KiB/s 00:02 [#######################################] 100%
 mingw-w64-ucrt-x86_64-curl-8.9.0-1-any     1402.8 KiB   568 KiB/s 00:02 [#######################################] 100%
 mingw-w64-ucrt-x86_64-imagemagick-7.1....     3.2 MiB   927 KiB/s 00:04 [#######################################] 100%
 mingw-w64-ucrt-x86_64-libvpl-2.12.0-2-any   349.1 KiB   860 KiB/s 00:00 [#######################################] 100%
 mingw-w64-ucrt-x86_64-libheif-1.18.1-1-any  563.8 KiB   951 KiB/s 00:01 [#######################################] 100%
 libcurl-8.9.0-1-x86_64                      299.0 KiB   660 KiB/s 00:00 [#######################################] 100%
 liblz4-1.10.0-1-x86_64                       63.9 KiB  99.6 KiB/s 00:01 [#######################################] 100%
 mingw-w64-ucrt-x86_64-openjph-0.15.0-1-any  241.3 KiB   153 KiB/s 00:02 [#######################################] 100%
 mingw-w64-ucrt-x86_64-ffmpeg-6.1.1-13-any                15.1 MiB   649 KiB/s 00:24 [###############################################] 100%
 Total (10/10)                                            23.0 MiB   950 KiB/s 00:25 [###############################################] 100%
(10/10) checking keys in keyring                                                     [###############################################] 100%
(10/10) checking package integrity                                                   [###############################################] 100%
(10/10) loading package files                                                        [###############################################] 100%
(10/10) checking for file conflicts                                                  [###############################################] 100%
(10/10) checking available disk space                                                [###############################################] 100%
:: Processing package changes...
( 1/10) upgrading libcurl                                                            [###############################################] 100%
( 2/10) upgrading curl                                                               [###############################################] 100%
( 3/10) upgrading liblz4                                                             [###############################################] 100%
( 4/10) upgrading mingw-w64-ucrt-x86_64-curl                                         [###############################################] 100%
( 5/10) upgrading mingw-w64-ucrt-x86_64-libxml2                                      [###############################################] 100%
( 6/10) upgrading mingw-w64-ucrt-x86_64-libvpl                                       [###############################################] 100%
( 7/10) upgrading mingw-w64-ucrt-x86_64-ffmpeg                                       [###############################################] 100%
( 8/10) upgrading mingw-w64-ucrt-x86_64-openjph                                      [###############################################] 100%
( 9/10) upgrading mingw-w64-ucrt-x86_64-libheif                                      [###############################################] 100%
(10/10) upgrading mingw-w64-ucrt-x86_64-imagemagick                                  [###############################################] 100%
:: Running post-transaction hooks...
(1/1) Probing GDK-Pixbuf loader modules...

$ gst-inspect-1.0.exe libav
No such element or plugin 'libav'

$ pacman -S mingw-w64-ucrt-x86_64-ntldd
resolving dependencies...
looking for conflicting packages...

Packages (1) mingw-w64-ucrt-x86_64-ntldd-r19.7fb9365-3

Total Download Size:   0.03 MiB
Total Installed Size:  0.07 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 mingw-w64-ucrt-x86_64-ntldd-r19.7fb9365-3-any            32.7 KiB  25.8 KiB/s 00:01 [###############################################] 100%
(1/1) checking keys in keyring                                                       [###############################################] 100%
(1/1) checking package integrity                                                     [###############################################] 100%
(1/1) loading package files                                                          [###############################################] 100%
(1/1) checking for file conflicts                                                    [###############################################] 100%
(1/1) checking available disk space                                                  [###############################################] 100%
:: Processing package changes...
(1/1) installing mingw-w64-ucrt-x86_64-ntldd                                         [###############################################] 100%

$ ntldd /ucrt64/lib/gstreamer-1.0/libgstlibav.dll
        KERNEL32.dll => C:\Windows\SYSTEM32\KERNEL32.dll (0x0000016a66230000)
        avcodec-60.dll => C:\msys64\ucrt64\bin\avcodec-60.dll (0x0000016a66c50000)
        avfilter-9.dll => C:\msys64\ucrt64\bin\avfilter-9.dll (0x0000016a66230000)
        avformat-60.dll => C:\msys64\ucrt64\bin\avformat-60.dll (0x0000016a66c50000)
        avutil-58.dll => C:\msys64\ucrt64\bin\avutil-58.dll (0x0000016a66230000)
        libglib-2.0-0.dll => C:\msys64\ucrt64\bin\libglib-2.0-0.dll (0x0000016a665d0000)
        libgobject-2.0-0.dll => C:\msys64\ucrt64\bin\libgobject-2.0-0.dll (0x0000016a66230000)
        libgstaudio-1.0-0.dll => C:\msys64\ucrt64\bin\libgstaudio-1.0-0.dll (0x0000016a66230000)
        libgstbase-1.0-0.dll => C:\msys64\ucrt64\bin\libgstbase-1.0-0.dll (0x0000016a662c0000)
        libgstpbutils-1.0-0.dll => C:\msys64\ucrt64\bin\libgstpbutils-1.0-0.dll (0x0000016a66230000)
        libgstreamer-1.0-0.dll => C:\msys64\ucrt64\bin\libgstreamer-1.0-0.dll (0x0000016a66350000)
        libgstvideo-1.0-0.dll => C:\msys64\ucrt64\bin\libgstvideo-1.0-0.dll (0x0000016a66280000)
        libintl-8.dll => C:\msys64\ucrt64\bin\libintl-8.dll (0x0000016a66090000)

$ ldd /ucrt64/lib/gstreamer-1.0/libgstlibav.dll
        ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ffe58b30000)
        KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ffe56fc0000)
        KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ffe55f80000)
        msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7ffe588b0000)
        ucrtbase.dll => /c/Windows/System32/ucrtbase.dll (0x7ffe56640000)
        avutil-58.dll => /ucrt64/bin/avutil-58.dll (0x7ffdf9670000)
        bcrypt.dll => /c/Windows/System32/bcrypt.dll (0x7ffe56470000)
        USER32.dll => /c/Windows/System32/USER32.dll (0x7ffe58700000)
        win32u.dll => /c/Windows/System32/win32u.dll (0x7ffe56610000)
        GDI32.dll => /c/Windows/System32/GDI32.dll (0x7ffe571f0000)
        gdi32full.dll => /c/Windows/System32/gdi32full.dll (0x7ffe55e60000)
        msvcp_win.dll => /c/Windows/System32/msvcp_win.dll (0x7ffe567d0000)
        libglib-2.0-0.dll => /ucrt64/bin/libglib-2.0-0.dll (0x7ffe023a0000)
        ADVAPI32.dll => /c/Windows/System32/ADVAPI32.dll (0x7ffe58640000)
        sechost.dll => /c/Windows/System32/sechost.dll (0x7ffe56b60000)
        RPCRT4.dll => /c/Windows/System32/RPCRT4.dll (0x7ffe57fa0000)
        ole32.dll => /c/Windows/System32/ole32.dll (0x7ffe57df0000)
        combase.dll => /c/Windows/System32/combase.dll (0x7ffe56c30000)
        SHELL32.dll => /c/Windows/System32/SHELL32.dll (0x7ffe57590000)
        WS2_32.dll => /c/Windows/System32/WS2_32.dll (0x7ffe58a70000)
        libgobject-2.0-0.dll => /ucrt64/bin/libgobject-2.0-0.dll (0x7ffe2fd00000)
        libgstaudio-1.0-0.dll => /ucrt64/bin/libgstaudio-1.0-0.dll (0x7ffe2d350000)
        libgstbase-1.0-0.dll => /ucrt64/bin/libgstbase-1.0-0.dll (0x7ffe1b320000)
        libgstpbutils-1.0-0.dll => /ucrt64/bin/libgstpbutils-1.0-0.dll (0x7ffe2e150000)
        libgstreamer-1.0-0.dll => /ucrt64/bin/libgstreamer-1.0-0.dll (0x7ffdfbf00000)
        libgstvideo-1.0-0.dll => /ucrt64/bin/libgstvideo-1.0-0.dll (0x7ffe022c0000)
        libintl-8.dll => /ucrt64/bin/libintl-8.dll (0x7ffe39d20000)
        libwinpthread-1.dll => /ucrt64/bin/libwinpthread-1.dll (0x7ffe50950000)
        libva.dll => /ucrt64/bin/libva.dll (0x7ffe1e5f0000)
        libva_win32.dll => /ucrt64/bin/libva_win32.dll (0x7ffe36820000)
        avformat-60.dll => /ucrt64/bin/avformat-60.dll (0x7ffdfc050000)
        libpcre2-8-0.dll => /ucrt64/bin/libpcre2-8-0.dll (0x7ffe1b2b0000)
        libffi-8.dll => /ucrt64/bin/libffi-8.dll (0x7ffe30ed0000)
        libgcc_s_seh-1.dll => /ucrt64/bin/libgcc_s_seh-1.dll (0x7ffe30e20000)
        liborc-0.4-0.dll => /ucrt64/bin/liborc-0.4-0.dll (0x7ffe03aa0000)
        libgsttag-1.0-0.dll => /ucrt64/bin/libgsttag-1.0-0.dll (0x7ffe1db60000)
        libgmodule-2.0-0.dll => /ucrt64/bin/libgmodule-2.0-0.dll (0x7ffe36810000)
        libiconv-2.dll => /ucrt64/bin/libiconv-2.dll (0x7ffdf85a0000)
        libbluray-2.dll => /ucrt64/bin/libbluray-2.dll (0x7ffe092d0000)
        libbz2-1.dll => /ucrt64/bin/libbz2-1.dll (0x7ffe30980000)
        libgme.dll => /ucrt64/bin/libgme.dll (0x7ffe1c490000)
        libgnutls-30.dll => /ucrt64/bin/libgnutls-30.dll (0x7ffdf8390000)
        CRYPT32.dll => /c/Windows/System32/CRYPT32.dll (0x7ffe564a0000)
        libmodplug-1.dll => /ucrt64/bin/libmodplug-1.dll (0x7ffdf90f0000)
        librtmp-1.dll => /ucrt64/bin/librtmp-1.dll (0x7ffe2e290000)
        libsrt.dll => /ucrt64/bin/libsrt.dll (0x7ffdf82c0000)
        libssh.dll => /ucrt64/bin/libssh.dll (0x7ffdfdcf0000)
        libxml2-2.dll => /ucrt64/bin/libxml2-2.dll (0x7ffdf8170000)
        zlib1.dll => /ucrt64/bin/zlib1.dll (0x7ffe2fce0000)
        libvpl-2.dll => /ucrt64/bin/libvpl-2.dll (0x7ffdfc990000)
        libfreetype-6.dll => /ucrt64/bin/libfreetype-6.dll (0x7ffdf7510000)
        libstdc++-6.dll => /ucrt64/bin/libstdc++-6.dll (0x7ffdf6970000)
        libgmp-10.dll => /ucrt64/bin/libgmp-10.dll (0x7ffdf7460000)
        libhogweed-6.dll => /ucrt64/bin/libhogweed-6.dll (0x7ffe1da80000)
        libidn2-0.dll => /ucrt64/bin/libidn2-0.dll (0x7ffe081e0000)
        ncrypt.dll => /c/Windows/SYSTEM32/ncrypt.dll (0x7ffe55790000)
        libnettle-8.dll => /ucrt64/bin/libnettle-8.dll (0x7ffe07fe0000)
        libp11-kit-0.dll => /ucrt64/bin/libp11-kit-0.dll (0x7ffdf6800000)
        libtasn1-6.dll => /ucrt64/bin/libtasn1-6.dll (0x7ffe2f0a0000)
        libunistring-5.dll => /ucrt64/bin/libunistring-5.dll (0x7ffdf6610000)
        WINMM.dll => /c/Windows/SYSTEM32/WINMM.dll (0x7ffe32b00000)
        libcrypto-3-x64.dll => /ucrt64/bin/libcrypto-3-x64.dll (0x7ffdf6130000)
        WSOCK32.dll => /c/Windows/SYSTEM32/WSOCK32.dll (0x7ffe367c0000)
        IPHLPAPI.DLL => /c/Windows/SYSTEM32/IPHLPAPI.DLL (0x7ffe54900000)
        liblzma-5.dll => /ucrt64/bin/liblzma-5.dll (0x7ffe2e010000)
        libbrotlidec.dll => /ucrt64/bin/libbrotlidec.dll (0x7ffe2dfe0000)
        libharfbuzz-0.dll => /ucrt64/bin/libharfbuzz-0.dll (0x7ffdf5fe0000)
        libpng16-16.dll => /ucrt64/bin/libpng16-16.dll (0x7ffe03920000)
        libbrotlicommon.dll => /ucrt64/bin/libbrotlicommon.dll (0x7ffe28c00000)
        USP10.dll => /c/Windows/SYSTEM32/USP10.dll (0x7ffe52d90000)
        libgraphite2.dll => /ucrt64/bin/libgraphite2.dll (0x7ffe1d080000)
        avfilter-9.dll => /ucrt64/bin/avfilter-9.dll (0x7ffdf91e0000)
        libass-9.dll => /ucrt64/bin/libass-9.dll (0x7ffdf8a00000)
        libfontconfig-1.dll => /ucrt64/bin/libfontconfig-1.dll (0x7ffdf7400000)
        libplacebo-349.dll => /ucrt64/bin/libplacebo-349.dll (0x7ffdf5eb0000)
        libvidstab.dll => /ucrt64/bin/libvidstab.dll (0x7ffe2d2c0000)
        SHLWAPI.dll => /c/Windows/System32/SHLWAPI.dll (0x7ffe585e0000)
        libzimg-2.dll => /ucrt64/bin/libzimg-2.dll (0x7ffdf5dd0000)
        postproc-57.dll => /ucrt64/bin/postproc-57.dll (0x7ffe2a600000)
        swresample-4.dll => /ucrt64/bin/swresample-4.dll (0x7ffe1cd90000)
        swscale-7.dll => /ucrt64/bin/swscale-7.dll (0x7ffdf5d20000)
        libfribidi-0.dll => /ucrt64/bin/libfribidi-0.dll (0x7ffe1c010000)
        libexpat-1.dll => /ucrt64/bin/libexpat-1.dll (0x7ffe02570000)
        libunibreak-6.dll => /ucrt64/bin/libunibreak-6.dll (0x7ffe02cc0000)
        libgomp-1.dll => /ucrt64/bin/libgomp-1.dll (0x7ffdfec90000)
        VERSION.dll => /c/Windows/SYSTEM32/VERSION.dll (0x7ffe4f330000)
        dovi.dll => /ucrt64/bin/dovi.dll (0x7ffdf5c10000)
        liblcms2-2.dll => /ucrt64/bin/liblcms2-2.dll (0x7ffdf7390000)
        libshaderc_shared.dll => /ucrt64/bin/libshaderc_shared.dll (0x7ffdf5350000)
        libspirv-cross-c-shared.dll => /ucrt64/bin/libspirv-cross-c-shared.dll (0x7ffdf5070000)
        vulkan-1.dll => /c/Windows/SYSTEM32/vulkan-1.dll (0x7ffdf4f00000)
        libsoxr.dll => /ucrt64/bin/libsoxr.dll (0x7ffdf4e70000)
        USERENV.dll => /c/Windows/SYSTEM32/USERENV.dll (0x7ffe55400000)
        CFGMGR32.dll => /c/Windows/SYSTEM32/CFGMGR32.dll (0x7ffe55ae0000)
        CRYPTBASE.DLL => /c/Windows/SYSTEM32/CRYPTBASE.DLL (0x7ffe55580000)
        avcodec-60.dll => /ucrt64/bin/avcodec-60.dll (0x7ffdfa7a0000)
        libaom.dll => /ucrt64/bin/libaom.dll (0x7ffdf4570000)
        libcairo-2.dll => /ucrt64/bin/libcairo-2.dll (0x7ffdf4440000)
        libdav1d-7.dll => /ucrt64/bin/libdav1d-7.dll (0x7ffdf4230000)
        libgsm.dll => /ucrt64/bin/libgsm.dll (0x7ffe2a430000)
        libjxl.dll => /ucrt64/bin/libjxl.dll (0x7ffdf3de0000)
        libjxl_threads.dll => /ucrt64/bin/libjxl_threads.dll (0x7ffe35bf0000)
        libmp3lame-0.dll => /ucrt64/bin/libmp3lame-0.dll (0x7ffdf3d50000)
        libopencore-amrnb-0.dll => /ucrt64/bin/libopencore-amrnb-0.dll (0x7ffdf3d10000)
        libopencore-amrwb-0.dll => /ucrt64/bin/libopencore-amrwb-0.dll (0x7ffe298e0000)
        libopenjp2-7.dll => /ucrt64/bin/libopenjp2-7.dll (0x7ffdf3c90000)
        libopus-0.dll => /ucrt64/bin/libopus-0.dll (0x7ffdf3c10000)
        rav1e.dll => /ucrt64/bin/rav1e.dll (0x7ffdf38c0000)
        libspeex-1.dll => /ucrt64/bin/libspeex-1.dll (0x7ffdfe240000)
        librsvg-2-2.dll => /ucrt64/bin/librsvg-2-2.dll (0x7ffdf2da0000)
        libSvtAv1Enc-2.dll => /ucrt64/bin/libSvtAv1Enc-2.dll (0x7ffdf25a0000)
        libtheoradec-1.dll => /ucrt64/bin/libtheoradec-1.dll (0x7ffe1b290000)
        libvorbis-0.dll => /ucrt64/bin/libvorbis-0.dll (0x7ffdf2560000)
        libtheoraenc-1.dll => /ucrt64/bin/libtheoraenc-1.dll (0x7ffdf2520000)
        libvorbisenc-2.dll => /ucrt64/bin/libvorbisenc-2.dll (0x7ffdf2480000)
        libvpx-1.dll => /ucrt64/bin/libvpx-1.dll (0x7ffdf20c0000)
        libwebp-7.dll => /ucrt64/bin/libwebp-7.dll (0x7ffdf2000000)
        libwebpmux-3.dll => /ucrt64/bin/libwebpmux-3.dll (0x7ffe08310000)
        libx264-164.dll => /ucrt64/bin/libx264-164.dll (0x7ffdf1d10000)
        libx265-209.dll => /ucrt64/bin/libx265-209.dll (0x7ffdf0930000)
        xvidcore.dll => /ucrt64/bin/xvidcore.dll (0x7ffdf0800000)
        libzvbi-0.dll => /ucrt64/bin/libzvbi-0.dll (0x7ffdf0780000)
        MSIMG32.dll => /c/Windows/SYSTEM32/MSIMG32.dll (0x7ffe33cb0000)
        libpixman-1-0.dll => /ucrt64/bin/libpixman-1-0.dll (0x7ffdf06c0000)
        libbrotlienc.dll => /ucrt64/bin/libbrotlienc.dll (0x7ffdf0600000)
        libhwy.dll => /ucrt64/bin/libhwy.dll (0x7ffe08110000)
        libjxl_cms.dll => /ucrt64/bin/libjxl_cms.dll (0x7ffdfc960000)
        libcairo-gobject-2.dll => /ucrt64/bin/libcairo-gobject-2.dll (0x7ffe03900000)
        libgdk_pixbuf-2.0-0.dll => /ucrt64/bin/libgdk_pixbuf-2.0-0.dll (0x7ffdf89d0000)
        libgio-2.0-0.dll => /ucrt64/bin/libgio-2.0-0.dll (0x7ffdf0440000)
        libpango-1.0-0.dll => /ucrt64/bin/libpango-1.0-0.dll (0x7ffdf03d0000)
        libpangocairo-1.0-0.dll => /ucrt64/bin/libpangocairo-1.0-0.dll (0x7ffdfe400000)
        libogg-0.dll => /ucrt64/bin/libogg-0.dll (0x7ffdfbee0000)
        libsharpyuv-0.dll => /ucrt64/bin/libsharpyuv-0.dll (0x7ffdf8150000)
        gdiplus.dll => /c/Windows/WinSxS/amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.22621.3810_none_57f8d842ce19d879/gdiplus.dll (0x7ffe08980000)
        DNSAPI.dll => /c/Windows/SYSTEM32/DNSAPI.dll (0x7ffe54930000)
        libthai-0.dll => /ucrt64/bin/libthai-0.dll (0x7ffdf7370000)
        libpangoft2-1.0-0.dll => /ucrt64/bin/libpangoft2-1.0-0.dll (0x7ffdf03b0000)
        libpangowin32-1.0-0.dll => /ucrt64/bin/libpangowin32-1.0-0.dll (0x7ffdf0380000)
        libdatrie-1.dll => /ucrt64/bin/libdatrie-1.dll (0x7ffe33c70000)
        DWrite.dll => /c/Windows/SYSTEM32/DWrite.dll (0x7ffe52460000)
        avcodec-60.dll => /ucrt64/bin/avcodec-60.dll (0x1b30000)
        avcodec-60.dll => /ucrt64/bin/avcodec-60.dll (0x1b30000)
        bcryptPrimitives.dll => /c/Windows/System32/bcryptPrimitives.dll (0x7ffe56330000)
        IMM32.DLL => /c/Windows/System32/IMM32.DLL (0x7ffe57450000)
        NSI.dll => /c/Windows/System32/NSI.dll (0x7ffe580c0000)
        dxgi.dll => /c/Windows/system32/dxgi.dll (0x7ffe53500000)
        NTASN1.dll => /c/Windows/SYSTEM32/NTASN1.dll (0x7ffe55750000)