vah264dec: "Outputting out of order 49 -> 2, likely a broken stream" with UDP, but not TCP (and not with vaapih264dec)
With 1.22.1 (on Debian 11 amd64), pipeline gst-launch-1.0 rtspsrc "location=rtsp://x:y@192.168.3.101:554/cam/realmonitor?channel=1&subtype=0&unicast=true" protocols=tcp latency=100 ! queue max-size-buffers=0 ! rtph264depay ! h264parse ! vah264dec compliance=3 ! glupload ! glcolorconvert ! glimagesink
_sometimes_ gives green frames with these messages printed:
0:00:02.464868412 17627 0x559b76975aa0 WARN h264decoder gsth264decoder.c:1784:gst_h264_decoder_do_output_picture:<vah264dec0> Outputting out of order 49 -> 1, likely a broken stream
0:00:06.463654296 17627 0x559b76975aa0 WARN h264decoder gsth264decoder.c:1784:gst_h264_decoder_do_output_picture:<vah264dec0> Outputting out of order 49 -> 1, likely a broken stream
0:00:10.462293228 17627 0x559b76975aa0 WARN h264decoder gsth264decoder.c:1784:gst_h264_decoder_do_output_picture:<vah264dec0> Outputting out of order 49 -> 1, likely a broken stream
0:00:12.422839500 17627 0x559b76975aa0 WARN h264decoder gsth264decoder.c:1784:gst_h264_decoder_do_output_picture:<vah264dec0> Outputting out of order 49 -> 1, likely a broken stream
0:00:16.462752372 17627 0x559b76975aa0 WARN h264decoder gsth264decoder.c:1784:gst_h264_decoder_do_output_picture:<vah264dec0> Outputting out of order 49 -> 1, likely a broken stream
I did not have this issue with Debian's 1.18.4 vaapih264dec
(or avdec_h264
). vaapih264dec
from 1.22.1 works fine too.
It seems this reproduces mostly on lower-end Intel(R) Celeron(R) CPU J1900 @ 1.99GHz
computer, while on 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
it's too rare (internal Intel graphics used on both cases).
Also, it seems this reproduces when camera streams still image, and issue disappears when video stream has more changes in it, but I'm not 100% sure about that. Sometimes it can stream "forever" without "greening".
Camera is connected to the computers via same switch.
So in summary, it seems vah264dec
is more prone to UDP shenanigans on lower-end machine.