Video 1 of 2: π High-Performance Multi-Stream Video Processing in Python with CUDA
Decodes many RTSP streams with NVDEC, keeps frames on the GPU through TensorRT detection, classification, segmentation or pose models and tracking, and sends only boxes back to the CPU. A single-threaded process per stream under CUDA MPS sidesteps the GIL. Deployed with Docker.
- 40% vs 511.6%CPU, 4 streams
Trade-offs
- One single-threaded process per stream at batch size 1, scaled with CUDA MPS: it costs GPU memory, but delivers in days, needs no specialist upkeep, and isolates a dropped camera.
- Frames stay on the GPU from NVDEC through TensorRT, zero-copy, and only detection results return to the CPU, which is why CPU load stays low.
Q&A2
On a Ryzen 9 5950X with an RTX 3090: 4 RTSP decoders into YOLO26 on TensorRT and 4 RTMP encoders. CPU 40% against 511.6%, at 3,932 MiB of VRAM against 2,677 MiB.
Auto-reconnect, timeouts, B-frame reordering, a jitter buffer, and fault isolation, since each stream runs in its own process.
Links
Built by
Reviews
Loading reviews
More in PyTorch
See all 5 β- ML ForgeVisual node editor for building and training PyTorch image classifiers
- LucidaBackground removal model fine-tuned for glass, camouflage, text and print
- Texo20M-parameter LaTeX formula OCR model that runs in the browser
Env-DoctorDiagnoses CUDA mismatches between GPU driver, toolkit and Python ML libraries- VLM-AutoYOLOImages or video in, trained YOLO model out, with VLM auto-labels and review
More in GPU
See all 23 β
jobdGPU-aware job broker for a few personal machines, with an MCP server- PXALLM server tuned for Tesla P100, V100 and GTX 10-series GPUs
GlydLossless compression that keeps bf16 weights and KV cache smaller on the GPU- gnss_gpuGPU GNSS positioning for urban canyons with particle filters and ray-traced NLOS
impLLM inference server built only for NVIDIA Blackwell GPUs
AlzeoOne-command installer that turns a DGX Spark or GB10 box into an AI server
More in Computer vision
See all 16 β- SAM3DBody-cppStandalone C++ inference for SAM-3D-Body, with BVH motion capture
CorridorKey-RuntimeNative AI keying runtime and OFX plugin for Resolve and Nuke- px4-ros2-drone-navROS 2 stack that flies a PX4 drone through dark spaces with no GNSS or map
- FramegenBrowser extension that interpolates 24 fps video up to 240 fps on the GPU
- OpenSource AI GlassesOpen Linux smart glasses with a camera, voice AI and an optional display