Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gstreamer-vaapi
gstreamer-vaapi
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 139
    • Issues 139
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 14
    • Merge Requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gstreamer-vaapigstreamer-vaapi
  • Issues
  • #2

Closed
Open
Created Sep 29, 2013 by Bugzilla Migration User@bugzilla-migration

Dynamic allocate GstVaapiSurface to reduce video memory consumption

Submitted by Zhao, Halley

Link to original bug (#709018)

Description

we calculate out a max number ('capacity' of surface pool) for reference frame count . however, many stream don't use so many ref frames in reality.
it means, if we allocate surface with capacity number, it reserve more video memory than the real demand.

if we initiate surface pool with a smaller number, and allocate new surface when it is really required. it reduces video memory consumption.

for example:
the 1080P kauai stream, 14 surface is used in reality though the capacity number is 17.
gst-launch-1.0 filesrc location=/home/halley/media/video/kauai_1080p_H.264_AAC_9478Kbps_30FPS_5m30s.mp4 ! qtdemux ! vaapidecode ! vaapisink

however, playbin doesn't benefit, because queue element always try to request more surface.
I don't have good idea on it; or said, I don't find a good way to set the length of queue inside playbin.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None