Closed uartie closed 5 years ago
@uartie could you give a try with https://github.com/xhaihao/intel-vaapi-driver/commit/6b2825e99715126e3d8ec277a434caa580d1e30f ?
@xhaihao Yes xhaihao@6b2825e patch fixes this for me. Also, I verified this patch has no smoke test regressions with CQP and CBR cases in ffmpeg-vaapi and CQP, CBR and VBR cases in gst-vaapi. LGTM
@xhaihao will you be submitting this patch?
@xhaihao ping
@uartie Sorry for my slow response and thanks for your testing. I will submit the patch ASAP.
FFmpeg sets the target percentage for HEVC VBR encode to 50% by default. However, the driver does not work properly when target percentage <= 50% and causes output stream to have a very low bitrate.
If user sets
-maxrate
to a value > 50% of target bitrate on ffmpeg command line, then the bitrate result looks normal.See https://trac.ffmpeg.org/ticket/7629 for more details and root-cause analysis.