How can I revert back to input frame width and height at Output


I am inputing only one video to the stream mux at a time(no multiple sources). The streammux scales the frames to given frame width and height. I want to store frames in their original frame width and height. How can I disable this scaling of frames by streammux? I have set it to zero but it is not playing at all.


  • Hardware Platform (Jetson / GPU)=GPU NVIDIA GEFORCE RTX 2060
  • TensorRT Version=7.0
  • NVIDIA GPU Driver Version (valid for GPU only):450.102
  • Issue Type( questions, new requirements, bugs)=questions
  • GCC=7.5
  • PYTHON 3.7
  • CUDNN 7.6.5
  • CUDA 10.2

The only way is to get the input stream resolution in other way and set nvstreammux width and height with the resolution.

Can you point me how to extract input resolution from frame_meta->source_frame_height and set nvstreammux width and height with the resolution.

No. You can not get the original resolution inside deepstream. If you get the resolution inside the pipeline, there is no chance to change the nvstreammux settings once the pipeline is running.

hmm…okay so I need to extract it before pipeline starts?

Yes. The resolution should be get outside the pipeline.

Can you point me any way to do that?

Yo can use any way you know. We can not give any proposal. It has nothing to do with deepstream.

ok thanks