Nvbufsurface: NvBufSurfaceCopy: buffer param mismatch

Hi There,
I run the same gst-launch-1.0 ximagesrc command in different platform, it work well in jetson tx2, but when I run in jetson nx, I got the following error:

root@ubuntu:/home/amoymn/HideMenu# gst-launch-1.0 ximagesrc use-damage=0 endx=1233 endy=688 ! video/x-raw ! nvvidconv ! ‘video/x-raw(memory:NVMM),format=NV12,framerate=25/1’ ! nvv4l2h264enc idrinterval=25 insert-sps-pps=1 bitrate=4000000 ! queue ! filesink location=a.h264 -e
Setting pipeline to PAUSED …
Opening in BLOCKING MODE
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
Redistribute latency…
New clock: GstSystemClock
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy
H264: Profile = 66, Level = 0
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy
NVMEDIA: Need to set EMC bandwidth : 313333
NVMEDIA: Need to set EMC bandwidth : 313333
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy
nvbufsurface: NvBufSurfaceCopy: buffer param mismatch
nvbufsurface: NvBufSurfaceCopy: failed to copy

The resolution ratio is 1280*720, and I want to cut it to 1233x688, please kindly suggest. Thanks!

Hi,
Please check if it works in 1280x720. If 1280x720 works, you can then downscale to 1234x688 through nvvidconv plugin. Odd width 1233 may not work properly. The command is like:

$ gst-launch-1.0 ximagesrc use-damage=0 ! video/x-raw ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12,width=1280,height=720' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12,width=1234,height=688' ! ...

Hi,
Yes, it works in 1280x720, and I want to crop the image, nvvidconv plugin just scale the image, I already tried nvvidconv plugin parameter (bottom, top, left, right), but it dosen’t work