Information:
• Hardware Platform (Jetson / GPU) Jetson Nano
• DeepStream Version 6.01
• Issue Type( questions, new requirements, bugs) question
Hi, I have the following DeepStream pipeline I’m running on Jetson Nano:
uridecodebin → nvvideoconvert (crop) → nvstreammux → nvinfer → nvtracker → nvdsanalytics → etc…
My issue is, the resolution from input source can change on the go. While all other elements seem to adjust to resolution change just fine (nvstreammux converts everything to fixed model resolution anyways), nvvideoconvert (crop) element receives absolute crop coordinates from a file and produces the wrong crop as the result. I want to dynamically change this pipeline element to adjust to source resolution.
My questions are:
-
How does one detect resolution change? Is there any event or signal emitted when that happens? Or should I use some factory element, like GstDiscoverer, or write my own custom element?
-
What would be the best way to adjust nvvideoconvert (crop) element on the fly? Should I g_signal_connect callback to a signal or listen to event?
-
Would it be sufficient to g_object_set “src-crop” property and should I flush the element after that? Or should I unlink this element from the pipeline entirely and link in a new one?
It would be of great help if you have any links or examples of similar issues.
Thanks in advance.