Skip to content
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

vaapi_decode: support dynamically frame pool resizing. #397

Closed
wants to merge 4 commits into from

Conversation

xuguangxin
Copy link
Collaborator

Two benefits of this patch set:
1. Save memory. If we play an 8k hevc, previous code we allocate 50M * 20(1 + 16 + 3) = 1G memory. 16 is a waste for most playback cases.
2. Allow downstream cache more frames. A downstream lookahead encoder will cache some frames. 20 may not enough for it.

This patch set will fix the following command
ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i 100frames.264 -vf reverse -an -f null -

@wenbinc-Bin
Copy link
Collaborator

looks good to me, thanks.

@xuguangxin xuguangxin force-pushed the frame_pool branch 2 times, most recently from a9e9825 to dd8e0f7 Compare May 21, 2021 09:49
@xuguangxin
Copy link
Collaborator Author

@feiwan1 @xhaihao , please help review.
thanks

@uartie
Copy link
Collaborator

uartie commented May 25, 2021

breaks i965 😞

@xuguangxin
Copy link
Collaborator Author

thanks, I will check it

@xuguangxin
Copy link
Collaborator Author

seems ci will timeout.

@uartie
Copy link
Collaborator

uartie commented May 26, 2021

seems ci will timeout.

Which cases? I see mostly low PSNR and SSIM.

@xuguangxin
Copy link
Collaborator Author

the CI infrastructure is down at that time, I saw a timeout page. Now it's back online.
:)
thanks

@xuguangxin
Copy link
Collaborator Author

@xhaihao @feiwan1 could you help review this?
After your approval, I will start a full-round test to make sure it's no regression on iHD.

thanks

@feiwan1
Copy link
Collaborator

feiwan1 commented Jun 7, 2021

@xhaihao @feiwan1 could you help review this?
After your approval, I will start a full-round test to make sure it's no regression on iHD.

thanks

LGTM. Thaks.

…s frame pool resizing

Two benifites of this commit:
1. Save memory. If we play an 8k hevc, previous code we allocate 50M * 20(1 + 16 + 3) = 1G memory.16 is a waste for most playback cases.
2. Allow downstream cache more frames. A downstream lookahead encoder will cache some frames. 20 may not enough for it.

This commit will fix the following command
ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i 100frames.264  -vf reverse -an -f null -
@uartie
Copy link
Collaborator

uartie commented Aug 12, 2021

close. please reopen if you need more review and pre-check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants