Freescale / gstreamer-imx

GStreamer 1.0 plugins for i.MX platforms
Other
184 stars 127 forks source link

Cropping metadata #290

Closed jugurthab closed 3 years ago

jugurthab commented 3 years ago

Hi,

I would like to crop an image on an imx, here is my command :

gst-launch-1.0 imxv4l2src name=imxv4l2src-rear device=/dev/video0 ! video/x-raw,format=NV12,width=1024,height=864,framerate=25/1 \ ! tee name=tee-rear-raw \ tee-rear-raw. ! queue ! imxvideoconvert_g2d ! video/x-raw,format=(string)BGRx, width=384, height=256 ! appsink

The crop should be performed before the "video/x-raw,format=(string)BGRx, width=384, height=256", I'm trying to avoid "videocrop" as it uses the CPU.

I tried to add an "imxg2dvideotranform input-crop=true" but I'm not able to find a way to insert cropping metadata.

Do you have any idea on how the crop should be done?

Thanks.