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

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

Open
LigH-de opened this issue Oct 3, 2024 · 7 comments
Open

Comments

@LigH-de
Copy link

LigH-de commented Oct 3, 2024

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
Copy link
Contributor

Uranite commented Oct 3, 2024

you need ffmpeg shared and vapoursynth

@LigH-de
Copy link
Author

LigH-de commented Oct 4, 2024

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

@LigH-de
Copy link
Author

LigH-de commented Oct 12, 2024

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
Copy link
Contributor

Uranite commented Oct 12, 2024

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
Copy link
Author

LigH-de commented Oct 12, 2024

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
Copy link

JND94 commented Oct 12, 2024

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
Copy link
Author

LigH-de commented Oct 12, 2024

"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.

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

No branches or pull requests

3 participants