ab-av1
ab-av1 copied to clipboard
Can't use qsv_av1_10bit 'Ffmpeg encode_sample exit code Some(1)'
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
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.
The score doesn't change with different --preset levels either, all show the same score still.
Is QSV simply not supported yet fully?
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.
Seems similar to #107, so perhaps a similar change would work for this too?
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.
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?