Avdec_h264 "output-corrupt" Not Working as Expected

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Avdec_h264 "output-corrupt" Not Working as Expected

Jessica Santerre
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, 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?

 

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel