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

Commits on Jul 7, 2021

  1. Configuration menu
    Copy the full SHA
    073647b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a668b0 View commit details
    Browse the repository at this point in the history
  3. avutil: hwcontext_vaapi, mark i965, VDPAU and ubit driver as AV_VAAPI…

    …_DRIVER_QUIRK_FRAME_POOL_RESIZING
    xuguangxin committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    7844644 View commit details
    Browse the repository at this point in the history
  4. avcodec: vaapi_decode, do not set initial_pool_size if driver support…

    …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 -
    xuguangxin committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    d8388a5 View commit details
    Browse the repository at this point in the history