Hello, I need to crop the video capture on the sides. For example I can capture video and display it on the screen by this gstreamer pipeline:
XDG_RUNTIME_DIR=/run/user/0 GST_DEBUG=3 gst-launch-1.0 -vvv v4l2src device=/dev/video1 io-mode=dmabuf ! video/x-raw,format=NV12,framerate=30/1,width=1920,height=1080 ! v4l2h264enc output-io-mode=dmabuf-import ! h264parse ! v4l2h264dec ! imxvideoconvert_g2d ! waylandsink
So, I can see videocrop plugin to crop the video, so I'm trying to do this:
XDG_RUNTIME_DIR=/run/user/0 GST_DEBUG=3 gst-launch-1.0 -vvv v4l2src device=/dev/video1 io-mode=dmabuf ! video/x-raw,format=NV12,framerate=30/1,width=1920,height=1080 ! videoscale ! videocrop top=180 bottom=180 right=320 left=320 ! v4l2h264enc output-io-mode=dmabuf-import ! h264parse ! v4l2h264dec ! imxvideoconvert_g2d ! waylandsink
And got the following errors on log (attached file)
Can anyone help, how can I crop the videocapture simultaneously with DMA usage?
My setup is yocto Kirkstone build for IMX8. Board VAR-SOM-MX8
Thanks in advance. Waiting for response