Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gstreamer-vaapi gstreamer-vaapi
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 147
    • Issues 147
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamerGStreamer
  • gstreamer-vaapigstreamer-vaapi
  • Issues
  • #221
Closed
Open
Issue created Jan 09, 2020 by Philipp Zabel@pH5

vaapih264enc AVC failure on AMD RAVEN

Running vaapih264enc in stream-format=avc mode fails on AMD RAVEN with the Mesa Gallium VA driver:

vainfo: Driver version: Mesa Gallium driver 19.3.1 for AMD Ryzen Embedded V1605B with Radeon Vega Gfx (RAVEN, DRM 3.35.0, 5.4.8, LLVM 9.0.0)

Example pipeline:

gst-launch-1.0 videotestsrc ! vaapih264enc ! video/x-h264,stream-format=avc ! fakesink

The VA-API driver returns VA_ENC_PACKED_HEADER_NONE to a query of VAConfigAttribEncPackedHeaders:

INFO vaapi gstvaapiencoder.c:791:get_packed_headers: supported packed headers: 0x00000000

But gst_vaapiencode_h264_set_config sets base_encode->need_codec_data for avc. As a result, gst_vaapi_encoder_h264_get_codec_data fails because ensure_sequence and ensure_picture never submit SPS/PPS headers into the bitstream, and ensure_output_state then fails to get the codec data:

ERROR vaapiencode gstvaapiencode.c:353:gst_vaapiencode_push_frame: failed to negotiate output state (status 0)

This error triggers for every input frame, and vaapih264enc does not produce any output.

Assignee
Assign to
Time tracking