Hi:
i want to crop image using nvvidconv because it is hardware accelerated.
when I use the following command:
gst-launch-1.0 nvcamerasrc sensor-id=$sensor_id fpsRange="60.0 60.0" intent=3 flicker=off ! 'video/x-raw(memory:NVMM), width=1932, height=1102, format=(string)I420, framerate=(fraction)60/1' ! nvvidconv top=0 bottom=0 left=0 right=0 ! 'video/x-raw(memory:NVMM), width=640, height=480, format=(string)I420' ! nvegltransform ! nveglglessink -e
I get the following error messages:
Setting pipeline to PAUSED ...
Available Sensor modes :
3864 x 2218 FR=30.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1932 x 1102 FR=60.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1932 x 1102 FR=30.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1288 x 738 FR=60.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1288 x 738 FR=30.000000 CF=0xf09208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
Pipeline is live and does not need PREROLL ...
Got context from element 'eglglessink0': gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Setting pipeline to PLAYING ...
New clock: GstSystemClock
NvCameraSrc: Trying To Set Default Camera Resolution. Selected 1932x1102 FrameRate = 60.000000 ...
ERROR: from element /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0:
streaming task paused, reason error (-5)
EOS on shutdown enabled -- waiting for EOS after Error
Waiting for EOS...
If I remove “top=0 bottom=0 left=0 right=0” from the above command, there is no error.
According to the nvvidconv description, it can crop input image.
Can anyone tell me how to do that ?
Thanks.