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 qsv_av1_10bit 'Ffmpeg encode_sample exit code Some(1)' #103

Open
ssjbardock opened this issue Dec 31, 2022 · 5 comments
Open

Can't use qsv_av1_10bit 'Ffmpeg encode_sample exit code Some(1)' #103

ssjbardock opened this issue Dec 31, 2022 · 5 comments

Comments

@ssjbardock
Copy link

I have tried running the command "ab-av1 crf-search -e qsv_av1_10bit" (plus -i info) and despite trying multiple ffmpeg builds, including compiling my own including intel-qsv, I get the error 'Ffmpeg encode_sample exit code Some(1)'.

Any fix for this? Trying to determine settings for Av1 QSV 10bit encodes. Thanks!

Specs:
5950x
64GB Ram
Intel Arc A770

@ssjbardock
Copy link
Author

ssjbardock commented Dec 31, 2022

Update, found if I try 'qsv_av1', no so 10bit, and --preset with numbers instead of the 'quality' 'speed' intel options, it starts, but doesn't seem to function properly.

Shows different CRF levels, all showing same VMAF score.

Still cant get qsv_av1_10bit to work, same error.

image

The score doesn't change with different --preset levels either, all show the same score still.

Is QSV simply not supported yet fully?

@ssjbardock ssjbardock reopened this Dec 31, 2022
@alexheretic
Copy link
Owner

The first step to supporting this encoder will be understanding how to use it with ffmpeg directly. Do you have a link to the ffmpeg docs for this encoder and/or example usage?

It looks like the codec may not support crf encoding, ab-av1 can use -qp instead for some codecs like this (vaapi). So that might work here too.

@alexheretic
Copy link
Owner

Seems similar to #107, so perhaps a similar change would work for this too?

@jsmcconn
Copy link
Contributor

jsmcconn commented Jan 6, 2023

The similar rate control parameter for qsv would be -global_quality, see here.

This seems to work for h264_qsv and hevc_qsv, however my Tiger Lake cpu doesn't support the av1_qsv encoder, and also it appears rate control is not yet implemented in the encoder.

This encoder is only a couple months old, so it probably still needs some work (commit).

C:\Video>ffmpeg -i ToS-4k-1920.mov -c:v av1_qsv -an -global_quality 25 out_av1.mkv
...
[av1_qsv @ 0000025f24083100] Selected ratecontrol mode is unsupported
[av1_qsv @ 0000025f24083100] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.

Would be reasonable to add support for -global_quality for qsv encoders, but av1 still wouldn't work yet.

@ghost
Copy link

ghost commented Feb 7, 2023

FWIW, it doesn't help that global_quality can map to 4 different QSV rc modes (CQP, ICQ, ICQ_LA or QVBR) depending on other parameters, making ffmpeg's error output above not particularly helpful.

I wonder if something above it (that you cut out) could provide a clue as to what rc mode it actually attempted to use?

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

3 participants