Kidsnd274 / Av1anStaxRipWrapper

Wrapper script to use Av1an with StaxRip
17 stars 1 forks source link

can't use SVT-AV1-PSY #5

Open Astolfo2001 opened 4 months ago

Astolfo2001 commented 4 months ago

every time I try to use SVT-AV1-PSY with this program, I get this error instead staxrip error What the heck is going wrong?

update:

input a fixed version of the code

"%startup_dir%\Apps\Encoders\Av1anStaxRipWrapper\VapourSynth\python.exe" "%startup_dir%\Apps\Encoders\Av1anStaxRipWrapper\Av1anStaxRipWrapper.py" -s "%startup_dir%" -i "%source_file%" -o "%encoder_out_file%" -t "%temp_dir%av1an_temp" -e svt-av1-psy -v "--preset 4 --crf 20 --tune 3 --scd 0 --scm 0 --film-grain 0 --keyint -1 --frame-luma-bias 25 --max-32-tx-size 1"

and everything was going smoothly for me until after opusenc finished and the two windows hung for a bit hanging on those darn 2 windows until giving me this error wtf is wrong 2

Again, what the heck is going wrong?

Kidsnd274 commented 4 months ago

Can you send me the logs for av1an? It should be in the bh90210recordingcirca1995_tempav1an_temp folder. image

Also I haven't updated the script for the latest StaxRip version. There has been quite a few changes so something might have broken. And also haven't tested it for svt-av1-psy. I will do a quick test in a bit. Also, the encoder flag (-e) should just be svt-av1.

Kidsnd274 commented 4 months ago

Okay I've tested your command and it works, specifically this works "%startup_dir%\Apps\Encoders\Av1anStaxRipWrapper\VapourSynth\python.exe" "%startup_dir%\Apps\Encoders\Av1anStaxRipWrapper\Av1anStaxRipWrapper.py" -s "%startup_dir%" -i "%source_file%" -o "%encoder_out_file%" -t "%temp_dir%\av1an_temp" -e svt-av1 -v "--preset 4 --crf 20 --tune 3 --scd 0 --scm 0 --film-grain 0 --keyint -1 --frame-luma-bias 25 --max-32-tx-size 1"

For the -t flag, please change it to -t "%temp_dir%\av1an_temp". StaxRip changed the way they parse paths so this is the corrected parameter value.

If there's some issue with the encode, and it doesn't show up in the logs, you can try running it manually to see the error. To do that,

  1. Go to your Av1anStaxRipWrapper folder and open cmd_with_path.bat image

  2. Next, when you try encoding in StaxRip, and an error pops up, don't close the error yet and copy the entire command line shown on StaxRip. image

  3. Paste it into the cmd window that was opened up by cmd_with_path.bat and hit enter. image

It should run Av1an separately from StaxRip and it will show up any errors that comes out of the SVT-AV1 or Av1an.

Astolfo2001 commented 4 months ago

just tried it and I still got this error: still got error 2 here's the log of that attempt log.log

I then used your advice and input the same command in cmd_with_path.bat and got these errors: system errors av1an

Kidsnd274 commented 4 months ago

You didn't setup Av1an correctly. Download ffmpeg with the libraries and place it in the same Av1an folder. Your Av1an folder should look like this (but with a newer ffmpeg version, my Av1an version is outdated so it uses an older ffmpeg)

image

And it shld be in this location StaxRip-v2.41.5-x64\Apps\Encoders\Av1an

Astolfo2001 commented 4 months ago

ok reinstalled Av1an

and ran the code yet it still hung for bit after the opusenc ran and I still got that error: error again log.log

so I ran the script in cmd_with_path and it turns out that svt-av1 doesn't support YUV422P ran the script in cmd_with_path bat so how can I use my AVS script for my source file in the prompt?

Kidsnd274 commented 4 months ago

AVS scripts from StaxRip doesn't get passed over to the wrapper script. But you can set the bit-depth by using the --pix-format flag. Try adding --pix-format yuv420p10le to the encode settings. It will encode the video in yuv420p10le tho.

So it should be: "%startup_dir%\Apps\Encoders\Av1anStaxRipWrapper\VapourSynth\python.exe" "%startup_dir%\Apps\Encoders\Av1anStaxRipWrapper\Av1anStaxRipWrapper.py" -s "%startup_dir%" -i "%source_file%" -o "%encoder_out_file%" -t "%temp_dir%\av1an_temp" --pix-format yuv420p10le -e svt-av1 -v "--preset 4 --crf 20 --tune 3 --scd 0 --scm 0 --film-grain 0 --keyint -1 --frame-luma-bias 25 --max-32-tx-size 1"

Kidsnd274 commented 4 months ago

Also just wondering, why do you want to use SVT-AV1 with Av1an? Doesn't SVT-AV1 already saturate all cores.

Astolfo2001 commented 4 months ago

apparently it runs faster with Av1an