【camera】 can not streaming by sensor mode 1728x1728

gst-launch-1.0 nvarguscamerasrc sensor-id=1 num-buffers=100 gainrange=“1 1” ! “video/x-raw(memory:NVMM), format=(string)NV12, width=(int)960, height=(int)960” ! nvvidconv ! nvv4l2h264enc ! h264parse ! mp4mux ! filesink location=test2.mp4

当这个分辨率存储指令执行完成后,将960换成1728后,执行失败。重启后执行正常。

执行失败的错误如下:


root@iking:~# gst-launch-1.0 nvarguscamerasrc sensor-id=1 num-buffers=100 gainrange="1 1" ! "video/x-raw(memory:NVMM), format=(string)NV12, width=(int)1728, height=(int)1728" ! nvvidconv ! nvv4l2h264enc ! h264parse ! mp4mux ! filesink location=test0.mp4
GST_ARGUS: NvArgusCameraSrc: Setting Gain Range : 1 1
Setting pipeline to PAUSED ...
Opening in BLOCKING MODE 
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
NvMMLiteOpen : Block : BlockType = 4 
===== NvVideo: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 960 x 960 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 87.471001; Exposure Range min 16000, max 8333000;

GST_ARGUS: 800 x 800 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 87.471001; Exposure Range min 26000, max 33324000;

GST_ARGUS: 1728 x 1728 FR = 36.000000 fps Duration = 27777778 ; Analog Gain range min 1.000000, max 87.471001; Exposure Range min 26000, max 27779000;

GST_ARGUS: Running with following settings:
   Camera index = 1 
   Camera mode  = 2 
   Output Stream W = 1728 H = 1728 
   seconds to Run    = 0 
   Frame Rate = 36.000000 
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:723 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:242 (propagating)
Got EOS from element "pipeline0".
Execution ended after 0:00:04.004642558
Setting pipeline to NULL ...
GST_ARGUS: Cleaning up
GST_ARGUS: Done Success

Do you verify this mode(1728x1728) by v4l2-ctl?

v4l2-ctl --stream-mmap -c bypass_mode=0 --set-fmt-video=width=1728,height=1728 

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.