master-of-zen / Av1an

Cross-platform command-line AV1 / VP9 / HEVC / H264 encoding framework with per scene quality encoding
GNU General Public License v3.0
1.47k stars 151 forks source link

(M-AB-S: MSYS2/MinGW/GCC) Win64 EXE builds but has no console output #883

Open LigH-de opened 1 week ago

LigH-de commented 1 week ago

The media-autobuild suite just recently added support for building av1an. So I built a static Win64 EXE and tried to run it. But there is no console output. I also tested av1an.exe --help but there is no console output either. Does it require additional DLLs in the same directory to start at all? Or how may I proceed to search for a reason?

Uranite commented 1 week ago

you need ffmpeg shared and vapoursynth

LigH-de commented 1 week ago

I will try to build it shared as well...

LigH-de commented 5 days ago

Running av1an in a directory with all DLLs it should theoretically need:

11.10.2024  00:00        18.923.520 av1an.exe
11.10.2024  22:18       103.444.480 avcodec-61.dll
11.10.2024  22:18         7.356.416 avdevice-61.dll
11.10.2024  22:18        54.224.384 avfilter-10.dll
11.10.2024  22:18        18.726.400 avformat-61.dll
11.10.2024  22:18         2.656.256 avutil-59.dll
11.10.2024  22:18           432.640 ffmpeg.exe
11.10.2024  22:18            88.064 postproc-58.dll
11.10.2024  22:18           459.776 swresample-5.dll
11.10.2024  22:18           707.584 swscale-8.dll
16.09.2024  15:27         2.233.856 vapoursynth.dll
16.09.2024  17:26            48.640 VSScript.dll

No output.

Uranite commented 5 days ago

I ran ldd on your static Av1an build in MSYS2, and these are the DLLs that you need. They should be available by default:

        ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7fff9e650000)
        KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7fff9d340000)
        KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7fff9bbb0000)
        bcrypt.dll => /c/Windows/System32/bcrypt.dll (0x7fff9b970000)
        msvcrt.dll => /c/Windows/System32/msvcrt.dll (0x7fff9dac0000)
        advapi32.dll => /c/Windows/System32/advapi32.dll (0x7fff9dda0000)
        sechost.dll => /c/Windows/System32/sechost.dll (0x7fff9d8b0000)
        RPCRT4.dll => /c/Windows/System32/RPCRT4.dll (0x7fff9e100000)
        ole32.dll => /c/Windows/System32/ole32.dll (0x7fff9df40000)
        msvcp_win.dll => /c/Windows/System32/msvcp_win.dll (0x7fff9ba60000)
        ucrtbase.dll => /c/Windows/System32/ucrtbase.dll (0x7fff9c260000)
        GDI32.dll => /c/Windows/System32/GDI32.dll (0x7fff9dbc0000)
        win32u.dll => /c/Windows/System32/win32u.dll (0x7fff9bb80000)
        gdi32full.dll => /c/Windows/System32/gdi32full.dll (0x7fff9c140000)
        USER32.dll => /c/Windows/System32/USER32.dll (0x7fff9dbf0000)
        combase.dll => /c/Windows/System32/combase.dll (0x7fff9cc80000)
        oleaut32.dll => /c/Windows/System32/oleaut32.dll (0x7fff9de60000)
        psapi.dll => /c/Windows/System32/psapi.dll (0x7fff9e0f0000)
        shell32.dll => /c/Windows/System32/shell32.dll (0x7fff9c410000)
        pdh.dll => /c/Windows/SYSTEM32/pdh.dll (0x7fff8cf00000)
        powrprof.dll => /c/Windows/SYSTEM32/powrprof.dll (0x7fff9b840000)
        bcryptprimitives.dll => /c/Windows/System32/bcryptprimitives.dll (0x7fff9bb00000)
        CRYPTBASE.DLL => /c/Windows/SYSTEM32/CRYPTBASE.DLL (0x7fff9b110000)

I noticed that ucrtbase.dll is included. By any chance, you're not running Windows 7, right? Because you need to install the UCRT manually if you are. Otherwise, try using Av1an from this link. Make sure to place FFmpeg and its DLLs either in the same directory as Av1an or inside your system's PATH.

LigH-de commented 5 days ago

I run it on Windows 10. Well, it was migrated up from an existing Windows 7, yet it is Windows 10 now.

The file ucrtbase.dll exists in my Windows\System32 directory.

The av1an.exe I downloaded from your releases does not print any console output either (0 bytes in STDOUT and STDERR).

Dependency Walker 2.2 locks up trying to analyse your av1an release, as well as my last build. PS: Dependencies 1.11.1.0 by lucasg can load it and reports nothing missing.

JND94 commented 5 days ago

av1an downloaded from github actions does work, tried in windows and linux(wine) and I can see it complaining about missing libraries, after providing ffmpeg and vapoursynth it worked fine.

LigH-de commented 5 days ago

"latest" Pre-release, March 28, alone in a directory: error messages popping up, misses VapourSynth.dll, avutil-59.dll, avcodec-61.dll, VSScript.dll; no console output, not even when running av1an.exe --help

Adding these 4 DLL files, it complains two times about more missing files: avdevice-61.dll, avformat-61.dll, swresample-5.dll, libopenh264-7.dll

Then about missing avfilter10.dll

Then about missing swscale-8.dll and postproc-58.dll

Then it runs without error message windows popping up. But no console output.