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
avcodec/vaapi_av1: correct data size when create slice data buffer #403
Conversation
Set all tiles size to create slice data buffer, hardware will use slice_data_offset/slice_data_size in slice parameter buffer to get each tile's data. This change will let it success to decode clip which has multi tiles data inside one OBU. Signed-off-by: Fei Wang <fei.w.wang@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please have a look at my comment in intel/media-driver#1155 |
Thanks @a1rwulf to report this. I will take a look at this. Will update this PR recently. |
@feiwan1 sorry for the noise, the issues I still had were caused by me creating 8 instead of 16 surfaces in Will you submit your patch to the ffmpeg ML? |
Hi @a1rwulf , I have submit the patch to ffmpeg community: If possible, please comment +1 if you received the ML, which will promote the patch merged. For your 10bit case, you can use ffmpeg cmdline to check quickly, decode the clip to P010 yuv file, and check if the yuv file can be played by yuv player, if not, please share your clips to me. Thanks. |
Hi @feiwan1 , Hope this helps. |
@feiwan1 is this patch resolved? If so, please close. |
Hi @a1rwulf , for your clip, I checked the first 300 frames yuv and seem the incorrect issue is some random noise appear in the end frames of an GOP. Obviously in frame about 100~110 with background. It's like: Just want to confirm if you met the same issue with me? Thanks. |
@feiwan1 yes, that's exactly how the intro looks like when I use mpv for playback. |
Ok, it seems caused by film grain, I will check it. |
@feiwan1 glad you already have an idea of where stuff goes wrong. |
Set all tiles size to create slice data buffer, hardware will use
slice_data_offset/slice_data_size in slice parameter buffer to get
each tile's data.
This change will let it success to decode clip which has multi
tiles data inside one OBU.
Signed-off-by: Fei Wang fei.w.wang@intel.com