Nvvidconv crop failed


I am trying to crop image on TX2 using nvvidconv

I am using Jetpack version 28.2.1 and gstreamer version 1.8.3

My pipeline is working well using the nvvidconv element without setting properties

BUT when I am trying to set any of crop property (top,bottom,left,right) I get critical error from my pipeline

do you know what the reason for that error?

Please share the pipeline and the reported error.

Be aware that, as opposed to videocrop, nvvidconv parameters are not the margins, but the X or Y coordinates.
For top and left these are the same as with videocrop, but you would set:
right = width - rightMargin
bottom = height - bottomMargin.

Example removing 100 columns on left and right and 100 rows on top and bottom from a 640x480 frame giving a 440x280 frame:

gst-launch-1.0 -v videotestsrc ! video/x-raw, format=YUY2, width=640, height=480, framerate=30/1 ! nvvidconv left=100 right=540 top=100 bottom=380 ! 'video/x-raw(memory:NVMM), width=440, height=280' ! nvvidconv ! xvimagesink