I’m running the following gstreamer pipeline using the C APIs
nvcamerasrc sensor_id=0 name=cam_src_0 ! video/x-raw(memory:NVMM), width=2100, height=1176, framerate=(fraction)30/1 ! nvvidconv top=0 bottom=1176 left=266 right=1834 ! video/x-raw, width=(int)640, height=(int)480, format=(string)NV12 ! queue leaky=downstream max-size-buffers=1 ! interpipesink name=cam_0 emit-signals=true forward-events=true max-buffers=1 enable-last-sample=false async=false sync=false
The pipeline is successfully running and read video data from a single MIPI camera.
However sometimes after non-graceful shutdown, the same pipeline cannot be started due to this error
nvcamerasrc gstnvcamerasrc.cpp:2448:gst_nvcamera_open:<cam_src_0> REQ_NVCAM_CREATE_SESSION to camera_daemon failed
We are running on TX1 that is based on JetPack 3.3.
Also reviewed other threads related to this issue with no much help (https://devtalk.nvidia.com/default/topic/1050604/jetson-tx2/streaming-issues-with-gst-launch-1-0-with-a-custom-camera-device/post/5333526/#5333526)
We do not want to restart nvcamera-daemon before each execution of our pipeline.
Please suggest a solution that is either
- kernel patch
- gstreamer plugin fix
- code fix
- code example of how to start and shutdown nvcamerasrc
Thank you in advance,