<div dir="ltr">Hey!<div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>I'm testing this on Windows 10 with Gstreamer 1.10.4. I'm simulating udp network noise with <a href="https://jagt.github.io/clumsy/">Clumsy</a>, set to drop 10% of incoming UDP packets.</div><div><br></div><div>The pipeline I'm using for testing is:</div><div>gst-launch-1.0 rtspsrc location="rtsp://<a href="http://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov">wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov</a>" ! rtph264depay ! avdec_h264 output-corrupt=false ! videoconvert ! autovideosink</div><div><br></div><div>Is there any good way to determine if the incoming rtsp frames are corrupt?</div><div><br></div><div> </div></div>