How to set video output width and height with new nvstreammux?

My app relies on the ability to set the width and height of the output from the nvstreammux element because I embed it inside of a window in the application and I need to set the correct dimensions for the video.

The new nvstreammux no longer has the “width” and “height” properties that allow this to be set and instead just uses the dimensions of the input video. Currently to migrate to DeepStream 7.0 I am needing to set “USE_NEW_NVSTREAMMUX” to “no” so that I can still set the output width and height.

Is there a way to set the output width and height while using the new version of the plugin? If not, will the ability to use the old version be maintained in future versions of DeepStream?

Not sure on new vs old streammux, but do you have to set it through the nvstreammux element itself? If not you can perhaps use a capsfilter, something like:

nvstreammux .... ! nvvideoconvert ! 'video/x-raw(memory:NVMM),width=1280,height=720' ! ....

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.