gstd-1.x
gstd-1.x copied to clipboard
Gstd-30-min-server Example
Hello Everyone,
I am planning to realize a multi camera AI application. I have Jetson Nano with two CSI camera and one webcam wired. I am starting gstd -D and trying ./00_create_camera.sh command.
I am getting; @client side
======================== Creating camera pipeline
{ "code" : 6, "description" : "Resource requested doesn't exist", "response" : null } { "code" : 2, "description" : "Bad pipeline description", "response" : null }
And @server side [[A0:00:35.834408280 4941 0x55957e2b65e0 ERROR gstdlist gstd_list.c:278:gstd_list_delete:GstdList@0x55957e11bd80 The resource "camera" doesn't exists in "pipelines" 0:00:35.867470122 4941 0x55957e2b65e0 ERROR gstdpipeline gstd_pipeline.c:511:gstd_pipeline_create:GstdPipeline@0x7f57f010b000 Unable to create pipeline: no element "nvcamerasrc" 0:00:35.867501545 4941 0x55957e2b65e0 ERROR gstdlist gstd_list.c:233:gstd_list_create:GstdList@0x55957e11bd80 Could not create the resource "camera" on "pipelines"
Why? And How can I fix? Thank you.
Hi Baris,
Is the 00_create_camera.sh a script you wrote? I can't find it on the latest develop
version.
You will probably need to make a couple of changes to the pipeline. For the CSI cameras you'll want to use nvarguscamerasrc
instead of nvcamerasrc
. For your webcam you'll want to use v4l2src device=/dev/video$WEBCAM_NUMBER
instead of nvcamerasrc
.
Also depending on the pipeline you'll want to use nvvidconv
to go from cuda memory (such as the one provided by nvarguscamerasrc
) to cpu memory and back. Take note that NVIDIA's GPU accelerated device will require cuda memory.
No I did not write the script. I tried as its default. After I changed nvcamerasrc by nvarguscamerasrc, the error is changed. I achieved to create a pipeline and delete also. Thank you. I am following the link below to create pipelines (Camera Capture with GStreamer-1.0 under Accelerated Gstreamer ) https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%2520Linux%2520Driver%2520Package%2520Development%2520Guide%2Faccelerated_gstreamer.html%23wwpID0E0ZQ0HA
Still I have errors like Missing argument for -e ? I do not know about. Is there a document or tutorial series for beginners like me?
Hi @barisduzenli ,
Yes, we do have a great wiki page with tons of information and examples from basic to advanced, you can take a look here: https://developer.ridgerun.com/wiki/index.php?title=GStreamer_Daemon