Skip to content

GitLab

  • Menu
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 143
    • Issues 143
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gstreamer-vaapigstreamer-vaapi
  • Issues
  • #281

Closed
Open
Created Oct 21, 2020 by Yann Dirson@ydirson

Decoding errors with hevc on AMD Renoir, possibly linked to `unsupported level_idc value (0)`

With eg. this sample video I get decoder errors, whereas the same video causes no problem to avdec_h265 and to mpv --hwdec=vaapi

$ LC_ALL=C GST_DEBUG=WARN,vaapi:FIXME gst-launch-1.0 filesrc location=~/Videos/Elecard_about_Tomsk_part2_HEVC_720p.mp4 ! qtdemux ! h265parse ! vaapih265dec ! glimagesink |& head -n15
0:00:00.081304078 263065 0x561c0260e800 WARN              vaapiblend gstvaapiblend.c:184:gst_vaapi_blend_initialize:<vaapiblend0> VPP does not support global alpha blending
Setting pipeline to PAUSED ...
0:00:00.156012537 263065 0x561c0260e800 WARN                 basesrc gstbasesrc.c:3688:gst_base_src_start_complete:<filesrc0> pad not activated yet
Pipeline is PREROLLING ...
Got context from element 'sink': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Got context from element 'vaapidecode_h265-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx0";
0:00:00.156629237 263065 0x7f1afc002180 WARN                 qtdemux qtdemux.c:3066:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 1
0:00:00.163312509 263065 0x7f1afc002180 FIXME                  vaapi gstvaapidecoder_h265.c:660:get_max_dec_frame_buffering: unsupported level_idc value (0)
0:00:00.165612948 263065 0x7f1afc002180 WARN             vaapidecode gstvaapidecode.c:780:gst_vaapidecode_handle_frame:<vaapidecode_h265-0> decode error -1
0:00:00.165657437 263065 0x7f1afc002180 WARN            videodecoder gstvideodecoder.c:4327:_gst_video_decoder_error:<vaapidecode_h265-0> error: Decoding error
0:00:00.165667913 263065 0x7f1afc002180 WARN            videodecoder gstvideodecoder.c:4329:_gst_video_decoder_error:<vaapidecode_h265-0> error: Decode error -1
0:00:00.165853971 263065 0x7f1afc002180 FIXME                  vaapi gstvaapidecoder_h265.c:660:get_max_dec_frame_buffering: unsupported level_idc value (0)
0:00:00.165888821 263065 0x7f1afc002180 WARN             vaapidecode gstvaapidecode.c:780:gst_vaapidecode_handle_frame:<vaapidecode_h265-0> decode error -1
0:00:00.165902091 263065 0x7f1afc002180 WARN            videodecoder gstvideodecoder.c:4327:_gst_video_decoder_error:<vaapidecode_h265-0> error: Decoding error
0:00:00.165909844 263065 0x7f1afc002180 WARN            videodecoder gstvideodecoder.c:4329:_gst_video_decoder_error:<vaapidecode_h265-0> error: Decode error -1
$ vainfo 
libva info: VA-API version 1.9.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_9
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.9 (libva 2.8.0)
vainfo: Driver version: Mesa Gallium driver 20.1.9 for AMD RENOIR (DRM 3.38.0, 5.8.0-2-amd64, LLVM 10.0.1)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
Assignee
Assign to
Time tracking