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

can't use SVT-AV1-PSY #5

Open
Astolfo2001 opened this issue Jun 30, 2024 · 8 comments
Open

can't use SVT-AV1-PSY #5

Astolfo2001 opened this issue Jun 30, 2024 · 8 comments

Comments

@Astolfo2001
Copy link

Astolfo2001 commented Jun 30, 2024

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

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

Kidsnd274 commented Jun 30, 2024

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

Astolfo2001 commented Jun 30, 2024

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

Kidsnd274 commented Jun 30, 2024

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

Astolfo2001 commented Jul 1, 2024

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

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

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

@Astolfo2001
Copy link
Author

apparently it runs faster with Av1an

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

2 participants