Skip to content

libs: encoder: VP9: fix > 4k encode fail issue

The VP9 spec defines the MAX_TILE_WIDTH_B64(64), which is the maximum width of a tile in units of superblocks. So the max width of one tile should not be larger than 64x64=4096. When the width exceeds 4k, we need to split it into multiple tiles in columns. The current vp9 encoder does not handle this correctly. The command such as: gst-launch-1.0 videotestsrc ! video/x-raw,width=7680,height=4320 ! vaapivp9enc ! fakesink will crash.

Edited by yuankun zhang

Merge request reports