Vaapi H265 decoder failing on some rtsp streams
Hi, I am working with rtsp streams coming from security cameras and I have a decoder pipeline which processes the video streams.
For a few rtsp streams it seems to fail with decode error -1 (GST_VAAPI_DECODER_STATUS_ERROR_UNKNOWN)
.
These streams are decoding fine with software decode or nvh265dec.
eg pipeline
GST_DEBUG=*vaapi*:6 gst-launch-1.0 rtspsrc latency=100 location=rtsp://admin:pass@192.168.3.8:554/snl/live/1/1 protocols=0x00000004 name=basesrc basesrc. ! rtph265depay ! tee name=t t.! queue ! vaapidecodebin name=video_decoder ! fakesink
These errors are driving the GPU utilization to 100%. The following is a error snippet.
0:00:03.682988567 48666 0x55ff3c212180 INFO vaapidecode gstvaapidecode.c:775:gst_vaapidecode_handle_frame:<vaapidecode0> requesting upstream a key unit
0:00:03.850340769 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_h265.c:1497:parse_slice: parse slice
0:00:03.850366654 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_h265.c:1783:init_picture: <IDR>
0:00:03.850371236 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_h265.c:1628:init_picture_poc: decode PicOrderCntVal
0:00:03.850380745 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_h265.c:1673:init_picture_poc: PicOrderCntVal 0
0:00:03.850385638 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_h265.c:2818:decode_slice: slice (366282 bytes)
0:00:03.850424706 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_objects.c:263:gst_vaapi_picture_decode_with_surface_id: decode picture 0x00000005
0:00:03.850514131 48666 0x55ff3c212180 DEBUG vaapi gstvaapiutils.c:131:vaapi_check_status: vaEndPicture(): internal decoding error
0:00:03.850521891 48666 0x55ff3c212180 WARN vaapidecode gstvaapidecode.c:764:gst_vaapidecode_handle_frame:<vaapidecode0> decode error -1
0:00:03.850527209 48666 0x55ff3c212180 INFO vaapidecode gstvaapidecode.c:775:gst_vaapidecode_handle_frame:<vaapidecode0> requesting upstream a key unit
0:00:03.850981965 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_h265.c:1497:parse_slice: parse slice
0:00:03.850994269 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_h265.c:1628:init_picture_poc: decode PicOrderCntVal
0:00:03.850998272 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_h265.c:1673:init_picture_poc: PicOrderCntVal 1
0:00:03.851002687 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_h265.c:2818:decode_slice: slice (7723 bytes)
0:00:03.851009258 48666 0x55ff3c212180 DEBUG vaapi gstvaapidecoder_objects.c:263:gst_vaapi_picture_decode_with_surface_id: decode picture 0x00000001
0:00:03.851065636 48666 0x55ff3c212180 DEBUG vaapi gstvaapiutils.c:131:vaapi_check_status: vaEndPicture(): internal decoding error
0:00:03.851070098 48666 0x55ff3c212180 WARN vaapidecode gstvaapidecode.c:764:gst_vaapidecode_handle_frame:<vaapidecode0> decode error -1
I have attached the debug logs level 6 with Vaapi filters for the entire run. I appreciate any help with this.