nvvidconv video cropping fails

Hi,

I am testing the nvvidconv Gstreamer element on JetPack 4.2.2 to perform video cropping and some values are failing. Is there any restriction on the values that can be passed to nvvidconv?

for example, this pipeline works:

gst-launch-1.0 videotestsrc ! video/x-raw, width=1920, height=1080 ! nvvidconv left=0 right=120 top=0 bottom=68 ! nvoverlaysink display-id=1

But these don’t:

gst-launch-1.0 videotestsrc ! video/x-raw, width=1920, height=1080 ! nvvidconv left=10 right=120 top=0 bottom=68 ! nvoverlaysink display-id=1
gst-launch-1.0 videotestsrc ! video/x-raw, width=1920, height=1080 ! nvvidconv left=0 right=110 top=0 bottom=68 ! nvoverlaysink display-id=1
gst-launch-1.0 videotestsrc ! video/x-raw, width=1920, height=1080 ! nvvidconv left=0 right=120 top=8 bottom=68 ! nvoverlaysink display-id=1
gst-launch-1.0 videotestsrc ! video/x-raw, width=1920, height=1080 ! nvvidconv left=0 right=120 top=0 bottom=60 ! nvoverlaysink display-id=1

With these pipelines I get the following error:

NvDdkVicConfigure Failed
nvbuffer_transform Failed
gst_nvvconv_transform: NvBufferTransform Failed

After some experiments, it seems that the minimum crop width is 120px and the height is 68px. Is this correct? Are there other limitations on the crop window?

Thanks.

1 Like

Hi,
Yes, it is limitation of hardware VIC engine. For small resolution, please leverage videoconvert also. Here is a reference pipeline.