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.5k stars 154 forks source link

Does nothing #676

Open lynrayy opened 2 years ago

lynrayy commented 2 years ago

Program just does nothing after command image

menditsa commented 2 years ago

No need to put the path for the current folder. Just put the file after -i

lynrayy commented 2 years ago

Still nothing (even no errors) image

silverbacknet commented 2 years ago

Something weird is happening, I wonder if it's silently crashing or something. That would show in the event log. Try with --verbose to see how far it gets.

ArakiSatoshi commented 2 years ago

The Sep 19, 2022 build doesn't do anything for me either. Not even --help, nor --verbose. Only the release build of 0.3.1 works.

Edit: 0.3.1 doesn't seem to work too, --help does work with 0.3.1, but anything else doesn't. I have av1an 0.3.1 installed in a "portable" mode with these executables in the same folder:

ffmpeg n4.4.3-20221016 (shared with .dll's) VapourSynth R60 SVT-AV1 1.3.0 L-SMASH vA.3i (av1an\vapoursynth64\coreplugins\libvslsmashsource.dll)

pic

FreezyLemon commented 2 years ago

IIRC, this (av1an doing nothing) happens when it has problems locating the required libraries, usually FFmpeg. It's possible that a more recent av1an build wants a newer FFmpeg version than 0.3.1. Check your event viewer, it might have more info.

muizzsiddique commented 1 year ago

Av1an would show a pop-up if it is missing any of FFmpeg 4 and 5's DLLs (you need both in my experience).

Have you tried ".\av1an.exe ..." in case it is somehow running the wrong executable?

tgurath commented 1 year ago

This problem still exists in the latest nightly build.

If the ffmpeg dlls are missing you do, indeed, get pop up error dialogs outside the console window informing you of each missing dll.

Like others, I dumped everything into a single directory for easy nuking if it doesn't work or if I don't decide to keep it. av1an, vapoursynth, ffmpeg dlls, SvtAv1EncApp exe and dll.

Running av1an.exe with or without any params, including -h, --help and -i test.mkv all result in being returned to the prompt after ~2 seconds.

An error does appear in the Windows event log.


  - Provider 

   [ Name]  Application Error 
   [ Guid]  {a0e9b465-b939-57d7-b27d-95d8e925ff57} 

   EventID 1000 

   Version 0 

   Level 2 

   Task 100 

   Opcode 0 

   Keywords 0x8000000000000000 

  - TimeCreated 

   [ SystemTime]  2022-12-15T05:13:59.6653131Z 

   EventRecordID 12464 

   Correlation 

  - Execution 

   [ ProcessID]  29100 
   [ ThreadID]  28208 

   Channel Application 

   Computer Legion 

  - Security 

   [ UserID]  S-1-5-21-3076471134-1816865337-2510947463-1001 

- EventData 

  AppName av1an.exe 
  AppVersion 0.0.0.0 
  AppTimeStamp 638f790f 
  ModuleName unknown 
  ModuleVersion 0.0.0.0 
  ModuleTimeStamp 00000000 
  ExceptionCode c0000005 
  FaultingOffset 0000000000000000 
  ProcessId 0x6160 
  ProcessCreationTime 0x1d9104409df0fd2 
  AppPath C:\Users\[redacted]\Downloads\VapourSynth64-Portable-R61\av1an.exe 
  ModulePath unknown 
  IntegratorReportId 3106353f-e350-4754-9993-8e0d2de12765 
  PackageFullName  
  PackageRelativeAppId  

For my initial tests I ran via Docker on Windows with WSL2. Encoding is significantly slower that way than running the encoders natively. It's not a viable alternative for heavy use.

dexeonify commented 1 year ago

Try reinstalling Python and Vapoursynth. I've encountered this issue before, and there are virtually no useful logs/errors messages to help troubleshoot it. The crash gets logged in Windows' Event Viewer, but of course it didn't provide any meaningful information. Turns out that my Python install is wonky, which in turn broke my Vapoursynth install. Also, I see you are using Vapoursynth Portable, perhaps try the executable version?

tgurath commented 1 year ago

crash gets logged in Windows' Event Viewer, but of course it didn't provide any meaningful information

Yes, I noticed it was meaningless but I copied it anyway to put to rest any doubts as to whether there was an actual crash.

Try reinstalling Python

Thanks. This pointed me in the right direction. I had the latest python, which vapoursynth doesn't support yet. Swapping that out resolved the problem.

tehCh0nG commented 1 year ago

Thanks. This pointed me in the right direction. I had the latest python, which vapoursynth doesn't support yet. Swapping that out resolved the problem.

Do you know which versions of python and vapoursynth fixed the issue? I'm having the same problem. I tried using several Python versions (3.10.x) and Vapoursynth R60 and R61.

tgurath commented 1 year ago

Do you know which versions of python and vapoursynth fixed the issue? I'm having the same problem. I tried using several Python versions (3.10.x) and Vapoursynth R60 and R61.

I've got Vapoursynth R60. I originally used Python 3.11 64-bit. After the discussion here I checked Vapoursynth's docs and used the latest 3.10 version. I then ran vs-detect-python.bat as mentioned in the Windows Installation (Portable) section of the docs. http://www.vapoursynth.com/doc/installation.html#windows-installation-portable. av1an worked for me at that point.

silverbacknet commented 1 year ago

VS is very tied to Python internals, but the 3.10 version should work with any 3.10.x. Both should be either portable or All Users installed. There could also be a bad plugin being loaded, or a plugin that has a dependency that isn't being found; perhaps empty out the plugins folder and try running VS alone; if that works, add them back until one fails. (Av1an will require many of the plugins, so that's not a permanent solution.)

You might be interested in this tool: https://github.com/tdebaets/wertweak It will make silent crashes visible for troubleshooting this kind of problem.

tehCh0nG commented 1 year ago

Thank you, silverbacknet and tgurath for the assistance! av1an is working now. I was able to resolve it via the following: 1) Download Python-3.10.9 embeddable, VapourSynth R61 portable, and av1an (of course). 2) Extract all files to the same directory. 3) Run vs-detect-python.bat.

jriker1 commented 1 year ago

I download av1an.exe in Windows and copied over the requested DLL's and it runs and sits and comes back with a blank screen. From reading above yes it's showing event log errors:

Faulting application name: av1an.exe, version: 0.0.0.0, time stamp: 0x640f0b27 Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000 Exception code: 0xc0000005 Fault offset: 0x0000000000000000 Faulting process id: 0x3c84 Faulting application start time: 0x01d9576acc3a9519 Faulting application path: D:\temp\av1an\av1an.exe Faulting module path: unknown Report Id: a8487952-c421-42aa-b852-43f093213918 Faulting package full name: Faulting package-relative application ID:

menditsa commented 1 year ago

it needs avdevice-59.dll for now as well as avdevice-60.dll

On Wed, 15 Mar 2023 at 20:42, jriker1 @.***> wrote:

I download av1an.exe in Windows and copied over the requested DLL's and it runs and sits and comes back with a blank screen. From reading above yes it's showing event log errors:

Faulting application name: av1an.exe, version: 0.0.0.0, time stamp: 0x640f0b27 Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000 Exception code: 0xc0000005 Fault offset: 0x0000000000000000 Faulting process id: 0x3c84 Faulting application start time: 0x01d9576acc3a9519 Faulting application path: D:\temp\av1an\av1an.exe Faulting module path: unknown Report Id: a8487952-c421-42aa-b852-43f093213918 Faulting package full name: Faulting package-relative application ID:

— Reply to this email directly, view it on GitHub https://github.com/master-of-zen/Av1an/issues/676#issuecomment-1470812034, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2YYWDGKVJ3YIO5ACB4K63W4ISVDANCNFSM6AAAAAARIYFE6I . You are receiving this because you commented.Message ID: @.***>

jriker1 commented 1 year ago

Here is what I did in case it helps anyone. I try to avoid physical installs at all costs:

Downloaded and placed the following in a folder call av1an:

Run "vs-detect-python.bat".

Av1an should now work correctly.

Additionally copied the following into the av1an folder:

he852100 commented 1 year ago

Currently, it is true that the file still does not prompt, such as Python xxx. dll. If the Python command line is missing, no results will be returned The windows store version of python will not find python, you need to use a non-store version or a portable version