I’m encountering an issue with nvdspreprocess in a DeepStream pipeline where I’m using the new streammux (with USE_NEW_NVSTREAMMUX=yes).
Current Setup:
- DeepStream 7.1
- Pipeline with 2 video sources:
- Source 0: 1280×720
- Source 1: 640×320
- Using nvdspreprocess for ROI (Region of Interest) processing
- New streammux enabled (
USE_NEW_NVSTREAMMUX=yesandNVSTREAMMUX_ADAPTIVE_BATCHING=yes)
Observed Behavior:
- When displaying each stream individually, ROIs appear correctly positioned
- When displaying both streams together (via tiler/multistream), the ROI for the 640×320 stream shifts position
Key Details:
- Using absolute coordinates in
config_preprocess.txt - Streammux batch size = number of sources (
batch-size=2) - Tried both with and without
maintain-aspect-ratio=1
Configuration Snippet:
[property]
processing-width=640
processing-height=640
maintain-aspect-ratio=1
[group-0]
src-ids=0;1
process-on-roi=1
roi-params-src-0=150;110;850;500 # For 1280×720 source
roi-params-src-1=75;55;425;250 # Scaled coordinates for 640×320
[property] processing-width=640 processing-height=640 maintain-aspect-ratio=1 [group-0] src-ids=0;1 process-on-roi=1 roi-params-src-0=150;110;850;500 # For 1280×720 source roi-params-src-1=75;55;425;250 # Scaled coordinates for 640×320
Questions:
- What’s the recommended way to handle ROIs with mixed resolutions?
- Should ROI coordinates be normalized or maintained as absolute value