Avdec_h264 "output-corrupt" Not Working as Expected

Jessica Santerre jessicasanterre94 at gmail.com
Tue Apr 4 00:55:32 UTC 2017


Hey!

I'm having an issue with rtsp emitting corrupted frames when the udp
traffic is spotty. What I'd like to do is have the player detect if the udp
connection is spotty and then switch to tcp if the number of corrupt frames
goes beyond some threshold.

Initially, I figured that I could just pad a probe to the decoder element
and see if the corrupted flag is set. If it is, I would drop the corrupted
frame and then increase the total number of dropped frames encountered.

Unfortunately, the corrupted flag isn't being set, even when the video is
visibly incorrect. I tried setting the output-corrupt to false in
avdec_h264, but the video output remains approximately the same.

I'm testing this on Windows 10 with Gstreamer 1.10.4. I'm simulating udp
network noise with Clumsy <https://jagt.github.io/clumsy/>, set to drop 10%
of incoming UDP packets.

The pipeline I'm using for testing is:
gst-launch-1.0 rtspsrc location="rtsp://
wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov" ! rtph264depay !
avdec_h264 output-corrupt=false ! videoconvert ! autovideosink

Is there any good way to determine if the incoming rtsp frames are corrupt?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170403/7ae3a0ba/attachment.html>


More information about the gstreamer-devel mailing list