Source video crop before inference

• Hardware Platform = Jetson
• DeepStream Version = 5.0
• JetPack Version = 32.4.3-20200625213809
** Source type = CSI Camera **

Hello,

How can I crop the source video to a constant ROI in the deepstream-app source code before inference?

Thanks.

1 Like

gst-launch-1.0 filesrc location= ! qtdemux ! h264parse ! omxh264dec ! nvvidconv left=400 right=1520 top=200 bottom=880 ! nvoverlaysink display-id=1 -e

Here is an example for the pipe I want to build, but i want to do it in the source code.

1 Like

I would suggest you to use nvvideoconvert https://docs.nvidia.com/metropolis/deepstream/plugin-manual/index.html#page/DeepStream%20Plugins%20Development%20Guide/deepstream_plugin_details.html#wwpID0E0TV0HA.
BTW, pls use nvvideo4linux2 for decoder.