GST-NVVIDEOCONVERT

Hi,

I am reading GST-NVVIDEOCONVERT in DS4.0 PlugIn Manual and testing Gst Properties,

I think this plugin can crop an image from input or output surface

How do I use this function ? Do you have examples?

Hi,
Please configure the properties:

src-crop            : Pixel location left:top:width:height
                    Use string with values of crop location to set the property.
                     e.g. 20:20:40:50
                    flags: readable, writable, changeable only in NULL or READY state
                    String. Default: "0:0:0:0"
dest-crop           : Pixel location left:top:width:height
                    Use string with values of crop location to set the property.
                     e.g. 20:20:40:50
                    flags: readable, writable, changeable only in NULL or READY state

Hi,

Thanks for your help but I already used these properties

connected Plugin list below

… streammux, pgie, nvtracker, sgie1, sgie2, sgie3, nvvidconv, nvosd, transform, sink

so I hope to crop image between nvvidconv and nvosd

just try to change state ? e.g gst_element_set_state (pipeline, GST_STATE_READY);

Hi,
On DS4.0, please use nvvideoconvert instead of nvvidconv.

A relevant post:
https://devtalk.nvidia.com/default/topic/1058270/deepstream-sdk/nvvidconv-vs-nvvideoconvert-ds-4-0-nano-/post/5366862/#5366862

Hi,
Your pipeline should be from deepstream-test2. For your case, you can configure dest-crop to nvvidconv and add capsfilter between nvvidconv and nvosd to specify after-crop width and height.

Hi,

Thanks for your reply,

my pipeline based on deepstream-test2 was working in DS4.0 and I used nvvideoconvert instead of nvvidconv

I did test about nvvideoconvert by setting properties, nvbuf-memory-type, src-crop, dst-crop but it did not work well,

Could you give me advice if you know how to use it?

I used capsfilter because of nvvidconv when I used deepstream-test2 in DS3.0

but now I changed to nvvideoconvert in DS.40 and I don’t use capsfilter anymore

now I checked capsfilter by using gst-inspect-1.0 but I didn’t find something about the crop

Element Properties:
  name                : The name of the object
                        flags: readable, writable
                        String. Default: "capsfilter0"
  parent              : The parent of the object
                        flags: readable, writable
                        Object of type "GstObject"
  qos                 : Handle Quality-of-Service events
                        flags: readable, writable
                        Boolean. Default: false
  caps                : Restrict the possible allowed capabilities (NULL means ANY). Setting this property takes a reference to the supplied GstCaps object.
                        flags: readable, writable, changeable in NULL, READY, PAUSED or PLAYING state
                                                   ANY

  caps-change-mode    : Filter caps change behaviour
                        flags: readable, writable, changeable in NULL, READY, PAUSED or PLAYING state
                        Enum "GstCapsFilterCapsChangeMode" Default: 0, "immediate"
                           (0): immediate        - Only accept the current filter caps
                           (1): delayed          - Temporarily accept previous filter caps

Hi,
Please set dst-crop to 20:20:320:240 and insert capsfilter=‘video/x-raw(memory:NVMM),width=320,height=240’ into nvvidconv and nvosd. If you still hit error, please share a patch on deepstream-test2 to let us reproduce the error.