Opened 6 months ago

Last modified 6 months ago

#10615 new defect

av1_vaapi does not respect qp, despite implementing qp as a viable rc_mode

Reported by: tjhexf Owned by:
Priority: normal Component: undetermined
Version: 5.1.3 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

ffmpeg -i input.mkv -vaapi_device /dev/dri/renderD128 -vf format='nv12,hwupload' -c:v av1_vaapi -qp:v 40 output.mkv

ffmpeg will fail to use qp, writing:

[out#0/matroska @ 0x3c25140] Codec AVOption qp (Constant QP (for P-frames; scaled by qfactor/qoffset for I/B)) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.

Logs imply it's using qp 25, despite not allowing for overriding this.

Change History (4)

comment:1 by Fei Wang, 6 months ago

Please use "-global_quality xxx". Same with vp8/vp9_vaapi.

Last edited 6 months ago by Fei Wang (previous) (diff)

in reply to:  1 ; comment:2 by tjhexf, 6 months ago

Replying to wangfei:

Please use "-global_quality xxx". Same with vp8/vp9_vaapi.

Thanks, i wonder why it isn't in the help command for av1_vaapi

in reply to:  2 comment:3 by Fei Wang, 6 months ago

Replying to tjhexf:

Replying to wangfei:

Please use "-global_quality xxx". Same with vp8/vp9_vaapi.

Thanks, i wonder why it isn't in the help command for av1_vaapi

It's a common option for AVCodecContext, should not be duplicate in private encoder.

Last edited 6 months ago by Fei Wang (previous) (diff)

comment:4 by Fei Wang, 6 months ago

Some more details on options available for VAAPI encoders:
http://www.ffmpeg.org/ffmpeg-codecs.html#VAAPI-encoders

Note: See TracTickets for help on using tickets.