r/ROCm • • 6d ago

Redstream: an open-source DeepStream-style video analytics SDK for ROCm. Looking for testers on RDNA3/4.

Hi r/ROCm,

NVIDIA DeepStream is the go-to toolkit for multi-camera video analytics, and it only runs on NVIDIA. I've been building an open-source counterpart for AMD: Redstream (LGPL, GStreamer plugins on ROCm, HIP, rocDecode and MIGraphX).

https://github.com/redstream-dev/redstream

What works today (pre-alpha):

  • File and RTSP sources with reconnection, H.264/H.265 decode with rocDecode
  • GPU batching of any number of streams, YOLO detection and secondary classifiers on MIGraphX, from DeepStream nvinfer config files (DeepStream custom bbox parsers recompile against a compat header)
  • Tracking (IOU, NvSORT configs), ROI / line-crossing / direction analytics, tiling, on-screen display
  • H.264/H.265 encoding to MP4/MKV
  • 14 elements, each mapping to a DeepStream one (nvstreammux -> rdsstreammux, nvinfer -> rdsinfer, …), so a DeepStream app ports with renames. Every element has a reference page, including how it differs from DeepStream.

Frames stay in GPU memory from decode through inference, tracking, analytics, tiling and OSD. The README says exactly where they leave it (encode and display, for now).

The catch: so far it has only run on one GPU, my 2-CU RDNA2 iGPU of a Ryzen 9 7900X, through HSA_OVERRIDE_GFX_VERSION. Even there, four 720p streams run through detect -> track -> tile -> OSD at about 45 fps in total (YOLO11n). I'd love to know what a real card does, and whether it works at all.

If you have an RDNA2/3/4 card or a Strix Point/Halo APU, there's a tester checklist here: https://github.com/redstream-dev/redstream/issues/1

It's a Docker build, the test suite, and one benchmark line to paste back. Bad results and crashes are just as useful as good ones.

Known limits: Linux only (Windows/WSL untried), no prebuilt image yet (the build takes about 4 minutes on a fast machine, plus the downloads), and APIs will change. Questions, critique and "you should look at X" are all welcome.

3 Upvotes

2 comments sorted by

1

u/PoizoneHelp 6d ago

Hey, actually TheRock now lists the Raphael iGPU (gfx1036) as sanity tested and release ready on Linux, with its own device-gfx1036 package, so the Dockerfile's note that ROCm doesn't support it may be out of date.

A build with GFX=gfx1036 and an empty HSA_OVERRIDE_GFX_VERSION, plus a test run, would show whether the 10.1 libraries MIGraphX pulls in carry gfx1036 code. If they do, your 45 fps becomes a native baseline instead of a spoofed one.

2

u/Leather-Resist896 6d ago

Thanks, you're right, just tried it: same image, empty HSA_OVERRIDE_GFX_VERSION, rocminfo reports gfx1036. But I've got 11 test failures that are all MIGraphX 2.18 refusing to compile YOLO for gfx1036: gpu::compile_ops: adaptive_topk_benchmark: all candidates failed to run.

So for now inference still needs the override, and the 45 fps stays a spoofed baseline. Next I'll try MIGraphX 2.19 / ROCm 10.2, and report it upstream if it's still there. Good catch, thanks!