m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.53k stars 265 forks source link

av1an: builds but has no console output #2775

Open LigH-de opened 2 weeks ago

LigH-de commented 2 weeks ago

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?

Also mentioned upstream in Av1an issue #883

1480c1 commented 2 weeks ago

Did you try double clicking from file explorer to see if it gives a dll not found error window?

LigH-de commented 2 weeks ago

When I double-click it in the Explorer, a console windows opens and closes.

Originally I tested it in a console emulation in the "Far manager".

@Uranite told me in the upstream issue:

you need ffmpeg shared and vapoursynth

So I am not sure whether there are basic issues with a static build. I'll test the shared build as well...

LigH-de commented 2 weeks ago

Despite selecting av1an=2 it is still built as static EXE, judging by its exactly same size of ~18 MB in both cases.

Uranite commented 2 weeks ago

I think you just need to install vapoursynth so that you're able to run av1an, I would've said that you need the dlls of ffmpeg shared in your PATH or in the same directory as av1an.exe, but it doesn't seem to be necessary with av1an that is built via media-autobuild_suite, but worth trying nonetheless

LigH-de commented 2 weeks ago

I put all the shared FFmpeg DLLs (and more probably unnecessary files) and the Vapoursynth DLLs in the same directory:

04.10.2024  08:27        18.918.912 av1an.exe
04.10.2024  08:39        95.208.960 avcodec-61.dll
04.10.2024  08:39           137.180 avcodec.lib
04.10.2024  08:39         7.354.880 avdevice-61.dll
04.10.2024  08:39            14.120 avdevice.lib
04.10.2024  08:39        54.161.408 avfilter-10.dll
04.10.2024  08:39            55.422 avfilter.lib
04.10.2024  08:39        18.725.376 avformat-61.dll
04.10.2024  08:39           127.900 avformat.lib
04.10.2024  08:39         2.650.624 avutil-59.dll
04.10.2024  08:39           477.114 avutil.lib
04.10.2024  08:39           432.128 ffmpeg.exe
04.10.2024  08:39        29.302.784 ffplay.exe
04.10.2024  08:39           223.232 ffprobe.exe
04.10.2024  08:39            88.064 postproc-58.dll
04.10.2024  08:39             9.548 postproc.lib
04.10.2024  08:39           459.776 swresample-5.dll
04.10.2024  08:39            19.876 swresample.lib
04.10.2024  08:39           707.584 swscale-8.dll
04.10.2024  08:39            26.238 swscale.lib
16.09.2024  15:27         2.233.856 vapoursynth.dll
16.09.2024  17:26            48.640 VSScript.dll

Still, no console output. It seems to close already before it is able to print messages about anything missing.

L4cache commented 2 weeks ago

Rust is not automatic installed

update: below is probably just some weird bug, I can't reproduce it now ~and FFmpeg.exe is gone after building static linked av1an, and this will not trigger "missing files" next time (if ffmpeg git is not updated)~

L4cache commented 1 week ago

https://github.com/master-of-zen/Av1an/issues/885

Currently the newer code of FFmpeg will cause this strange bug, originally tested with av1an latest release (exe upload date 2024-10-03) + FFmpeg 7.1 dlls download from gyan.dev but also apply to the latest git version built by m-ab-s. (I didn't have this no console output problem...)