ros_rtsp icon indicating copy to clipboard operation
ros_rtsp copied to clipboard

Setting up the stream_setup.yaml file for GMSL camera with Nvidia Xavier NX based device

Open kavishmshah opened this issue 2 years ago • 1 comments

Hi,

I am currently able to successfully launch the camera streaming display with the below command line: gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1900,height=1080,format=NV12' ! nvvidconv ! xvimagesink I now want to use this package in order to launch the same with ROS. Below is my stream_setup.yaml file. With this yaml file I'm able to launch the node although do not see the image topic. I'm guessing there seems to be an issue with the way I'm setting certain parameters.

port: "8554"
streams: # Cannot rename - must leave this as is.

stream-x:
  type: cam
  source: "nvarguscamerasrc sensor-id=0 ! nvvidconv ! xvimagesink ! video/x-raw(memory:NVMM),width=1900,height=1080,format=NV12"
  mountpoint: /front
  bitrate: 500

stream-yay:
  type: topic
  source: /usb_cam1/image_raw
  mountpoint: /back
  caps: video/x-raw,framerate=10/1,width=640,height=480
  bitrate: 500

Hope to resolve this issue. Thanks!

kavishmshah avatar Aug 25 '22 14:08 kavishmshah

Hi, First of all you should bring your video from any source to given formate in there sample yaml. You should build Gst pipeline from xyz src to videoconvert and then to video-x/ ...look in example.

I guess you should ask this at Gstreammer forum

prathamsss avatar Mar 26 '23 10:03 prathamsss