Live-RTSP-only frame corruption on Jetson AGX Thor / DeepStream 9.1 — root cause + confirmed fix (uridecodebin vs explicit rtspsrc chain)

NVIDIA Forum Bug Report Fields

  • Hardware Platform (Jetson / GPU): Jetson AGX Thor
  • DeepStream Version: 9.1
  • JetPack Version: 7.2 GA (L4T R39.2)
  • TensorRT Version: 10.16.2.10
  • NVIDIA GPU Driver Version: 595.78 (as reported by nvidia-smi)
  • Issue Type: BugHardware: Jetson AGX Thor
    JetPack / L4T: 7.2 / R39.2
    DeepStream: 9.1
    GStreamer: 1.24.2
    Cameras: RTSP IP cameras, H.264, 2688x1520 (4MP), 20fps, ~6 Mbps**

How to reproduce:

  • Custom Python + PyGObject (GStreamer) application, not a stock DeepStream sample app
  • Pipeline: uridecodebin (rtsp://camera) → nvstreammux → nvvideoconvert → pad-probe inference stage, ×2 cameras into one shared nvstreammux
  • Corruption occurs before inference, at the decode/source-bin stage — no nvinfer/nvtracker in the reproduction path
  • Cameras: live RTSP H.264, 2688×1520, 20fps, ~6 Mbps, TCP transport
  • Run continuously against live camera streams — never reproduces on file-replay of the same recorded footage
  • Corruption is intermittent, not timer-based — one captured episode ran continuously for ~8 minutes after over an hour of clean operation
  • Inspect decoded frames at the earliest pad-probe point — corruption appears as blocky/mosaic macroblock artifacts
  • Simultaneously monitor the GStreamer bus (bus.add_signal_watch() + ERROR/WARNING/EOS handler) — zero messages are emitted during the corruption window, confirmed with an actively logging watch across the full episode
  • Config: uridecodebin default properties (auto-negotiates rtspsrc → rtph264oder, drop-frame-interval=2); nvstreammux batch-size=2, live-source=1;nvvideoconvert default properties
  • Launch method: not gst-launch-1.0 — pipeline built programmatically via Gs
  • Confirmed workaround (not root-cause fix): replacing uridecodebin with an explicit rtspsrc → rtph264depay → h264parse → nvv4l2decoder chain eliminates the corruption
  • nvurisrcbin (NVIDIA’s own DeepStream-native RTSP source) tested separatelyults on two Jetson AGX Thor devices — did not fix it; auto-negotiation itself appears to be the common factor, not which element performs it
  • Full logs, corrupted-frame images, and a CPU/GPU cost comparison across alncluded in the same package

Requirement details: Not applicable — this is a bug report, not a feature request

Symptom — Dual-camera DeepStream pipeline shows intermittent, sudden blocky/mosaic corruption in decoded frames, live cameras only, never reproduced on file-replay of identical recorded footage. GStreamer’s bus reports zero errors/warnings during confirmed corruption. Episodes aren’t single-frame — a logged episode on 2026-08-14 shows continuous corruption sustained for ~8 minutes with a matching fps drop.

Evidence — instrumented the unfixed uridecodebin baseline with NVIDIA’s nvds_logger, a GStreamer bus watch, a 10s heartbeat, and tegrastats hardware telemetry. Captured a full episode (12:49–12:57 IST) gap-free: fps drops from steady ~4-5fps to erratic 1.4-2.4fps during corruption and recovers after; zero bus ERROR/WARNING/EOS the entire time despite the watch being confirmed active; no thermal/memory correlation.

Root cause — uridecodebin’s auto-negotiated internal pipeline for rtsp:// sources.

Additional layer — NVIDIA’s own unapplied update_rtpmanager.sh (4 patches), including a real deadlock fix and a packaging gap where one patch is missing from both the SDK install and the release tarball.

What did NOT fix it — nvurisrcbin, CPU decode (works but not viable), VIC exhaustion (ruled out), decoder property tweaks, and — notably — raising rtspsrc latency made it worse.

Questions:

  1. Can anyone confirm uridecodebin as root cause on AGX Thor specifically?
  2. Is the missing rtpmanager patch (#2, the deadlock fix) intentionally excluded from the DS9.1 tarball, or an oversight?
  3. Guidance on backporting DS9.1-only patches to DS8.0 without a JetPack upgrade?
  4. Is the fps-drop signature during corruption a known symptom, or a separate contributing factor (jitterbuffer under packet loss)
  5. nvurisrcbin, did not fix this corruption on two separate Jetson AGX Thor devices, even though it’s the officially recommended RTSP source element for DeepStream. Is this a known limitation of nvurisrcbin, and if so, is manually constructing the RTSP pipeline from individual elements (rtspsrc, rtph264depay, h264parse, nvv4l2decoder) instead of using a bundled source-bin element the currently recommended approach for live RTSP on this hardware/DeepStream version?

Please refer these logs and the NVIDIA forum threads reviewed + what we tried from each:

01_full_run_startup_to_1238.log (177.8 KB)

02_corruption_episode_1249_1258.log (38.7 KB)

FORUM_LINKS_AND_FIXES_TRIED.txt (7.8 KB)

Regarding “Is the missing rtpmanager patch (#2, the deadlock fix)”, Thanks for the sharing! we will check.
Regarding “nvurisrcbin, CPU decode (works but not viable)”, how did you test? do you mean using nvurisrcbin and softeware decoder like avdec_h264, there will be no blocky issue?
Regarding rtspsrc workaround, please check if it is related to drop-on-latency. the default value of rtspsrc is false while it is true in nvurisrcbin. You can dump the pipeline graph to compare.

Regarding “Is the missing rtpmanager patch (#2, the deadlock fix) intentionally excluded from the DS9.1”, On jetson, you can try the following workaround: locate the missing file on the dGPU, Or you can use
0002-rtspsrc-Resolve-hang-delete-rtsp-when-stream-ends-bug-5939802.patch (8.4 KB) directly.

Thanks for looking into this, fanzh.

On drop-on-latency

Checked directly against the actual code from both configurations:

  • Baseline (uridecodebin, reproduces the corruption): drop-on-latency is explicitly set to True in the decodebin_child_added() callback, on the internal rtspsrc element created by uridecodebin.

  • Fix (manual rtspsrc → rtph264depay → h264parse → nvv4l2decoder chain, does not reproduce the corruption): drop-on-latency is also explicitly set to True, directly on the rtspsrc element.

So, both the corrupting and the fixed pipelines already have drop-on-latency=True — the same value that nvurisrcbin defaults to. Since the property is identical in both configurations, it does not appear to explain the difference in behavior between them.

I also tried to generate a pipeline graph dump using GST_DEBUG_DUMP_DOT_DIR, but it produced no output on this build. Our GStreamer debug subsystem appears to be compiled out entirely (Gst.debug_is_active() returns False), and we get no GST_DEBUG output at any level.

If there is a way to generate dot-file dumps without the debug subsystem being active, or if there is a different build/package we should be using for this, that would help a lot.

On CPU decode / avdec_h264 testing and the nvurisrcbin + software decode combination

We swapped the hardware decoder for avdec_h264 (software H.264 decoding) on the uridecodebin/manual-chain path to determine whether avoiding nvv4l2decoder entirely would prevent the corruption.

The result was that the blockiness went away, but at the cost of noticeably more frame drops and lower overall FPS under the same live-camera load. The CPU/GPU overhead was significantly higher, making this approach unsuitable for production.

Since you specifically asked about the nvurisrcbin + software decode combination, we went ahead and tested that as well.

  • nvurisrcbin does not expose a property or child-added-style signal that allows us to select its internal decoder. We also checked gst-inspect-1.0 nvurisrcbin; cudadec-memtype only controls the CUDA memory type and does not provide a decoder selection option.
  • The only available hook we found is deep-element-added (inherited from GstBin). We connected to that signal, detected the nvv4l2decoder creation, and attempted to remove it and splice in avdec_h264 before nvurisrcbin linked anything to it.
  • The swap did not work. By the time our deep-element-added handler was invoked, nvurisrcbin had already taken ownership of the nvv4l2decoder element internally. Attempting to call Gst.Bin.remove() on it resulted in GStreamer-CRITICAL assertion failures:
  • gst_element_iterate_sink_pads: assertion 'GST_IS_ELEMENT (element)' failed
  • The pipeline continued running afterward without crashing, but it continued using the original hardware decoder. We were therefore unable to get avdec_h264 to take over decoding inside nvurisrcbin.

So, as far as we can tell, nvurisrcbin cannot be forced to use software decoding through the currently exposed API.

If there is an NVIDIA-supported way to do this — such as a missing property, supported callback, or a different construction pattern — we’d like to try it. That combination would be a genuinely useful data point for determining whether the issue is decoder-specific or source-bin-specific.

Thanks for confirming

we checked, and 0002-rtspsrc-Resolve-hang-delete-rtsp-when-stream-ends-bug-5939802.patch is same as the file we had already located and applied, sourced from github.com/NVIDIA/DeepStream/scripts/rtpmanager/.

It’s already rebuilt into our system libgstrtpmanager.so/libgstrtsp.so on the NVIDIA Jetson AGX Thor Developer Kit (JetPack 7.2 GA, L4T 39.2.0), and being unconditional, it’s always active with no env var required.

Good to have this validated as the correct patch for the gap .

Thank you for taking the time to check.

Please refer this faq to dump the two pipeline graphs of using uridecodebin and rtspsrc, then Zip the generated .dot files and attach the zip here.
Please refer to the faq for how to select softer decoder in uridecodebin, especially in the related topic.

Any update? Is there any DeepStream bug? Thanks!