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.46k stars 151 forks source link

The program closes immediately after launch #784

Open Niotferdi opened 12 months ago

Niotferdi commented 12 months ago

I downloaded the av1an binary and put the FFmpeg, VapourSynth and SvtAv1EncApp binaries in the same folder. I type av1an.exe while in its folder, but I don't get any output, the program quits after a second. What am I doing wrong?

michaelbub commented 11 months ago

Are you in PowerShell? Just had the same problem. Even ".\av1an.exe --help" did not give any output. So I ran it from a regular old shell and little windows would pop up showing me info about all the DLLs that could not be found.

menditsa commented 11 months ago

You can run from within powershell. Your problem indicates a problem with paths or binaries. FFMPEG needs shared build not static.

michaelbub commented 11 months ago

You can run from within powershell. Your problem indicates a problem with paths or binaries. FFMPEG needs shared build not static.

Yes, but when a DLL is missing and you run via PowerShell there is no pop-up informing you which DLL is missing (Windows 11). So if you indeed have a problem with DLLs you will never learn what it is. Only via regular shell do the pop-ups show. No idea what the problem is with these pop-ups, but that is what I experienced.

foxmsft commented 9 months ago

The program builds fine then insta-crashes here in vsscript_createScript with access violation. I'm not sure it's in a state where it can reproducibly build on Windows right now, I'm using the HEAD from here, plus VapourSynth R58 (since it's linked in the compilation document and I was experiencing the same error with R65), plus an ffmpeg 6.1.

https://github.com/Hishiro64/av1an-win-script gives a hint as to what exact dlls are required to make it work.