Output shape in Deepstream

• Hardware Platform (Jetson / GPU) dGPU
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only)
• TensorRT Version 7.2.1.6
• NVIDIA GPU Driver Version (valid for GPU only) 460.73.01

Hi, I have a question about output shape of video or image from Deepstream. I have a working pipelines in Deepstream, for video: uridecodebin->streammux->pgie->nvvideoconverter->videotemplate->nvosd->nvvideoconverter->capsfilter->encoder->codeparser->container->filesink and for image: filesrc->jpegparse->nvv412decoder->streammux->pgie->nvvideoconverter->videotemaplate->nvosd->nvvideoconverter->capsfilter->jpegenc->jpegparse->filesink. Everything works fine when I set width and height for streammux to 1280x720 or 1920x1080 but when I set squared shape, i.e. 1280x1280 or vertical orientation like 720x1280 the output is totally broken. I know that width has to by multiply by 8 and height by 4, but has it be also typical shape for video? I can’t find any information about it so I’m not sure if there is a bug in my implementation or it is normal for deepstream. And of course when I set output to 720x1280 the input is also 720x1280. It is a frame form input video:

It is an example of output:


And when I run deepstream with input 720x1280 but set in streammuxer 1280x720 the output is weird but without artefacts:

Can you try enable–padding?

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvstreammux.html#gst-properties

I tried but output looks the same