change to one example of each stream source type
This commit is contained in:
parent
30b5942c20
commit
bb59884bf1
|
@ -1,34 +1,10 @@
|
|||
# Set up your streams to rtsp here.
|
||||
#
|
||||
# "type": ["cam" , "topic"]
|
||||
#
|
||||
# "source":
|
||||
# if type=cam, location of v4l2 camera
|
||||
# if type=topic, the ROS Image topic to subscribe to.
|
||||
#
|
||||
# Notes:
|
||||
# Use a lower framerate of 10/1 on ROS topics.
|
||||
# There may be issues with appsrc 'media not prepared' errors if the framerate is too high.
|
||||
streams: # Cannot rename - must leave this as is.
|
||||
|
||||
streams:
|
||||
|
||||
# stream-x:
|
||||
# type: cam
|
||||
# source: "v4l2src device=/dev/video0 ! videoconvert ! videoscale ! video/x-raw,framerate=15/1,width=1280,height=720"
|
||||
# mountpoint: /front
|
||||
# bitrate: 500
|
||||
|
||||
# stream1:
|
||||
# type: cam
|
||||
# source: "v4l2src device=/dev/video0 ! videoconvert ! videoscale ! video/x-raw,framerate=15/1,width=1280,height=720"
|
||||
# mountpoint: /back
|
||||
# bitrate: 500
|
||||
|
||||
stream-a:
|
||||
type: topic
|
||||
source: /usb_cam0/image_raw
|
||||
stream-x:
|
||||
type: cam
|
||||
source: "v4l2src device=/dev/video0 ! videoconvert ! videoscale ! video/x-raw,framerate=15/1,width=1280,height=720"
|
||||
mountpoint: /front
|
||||
caps: video/x-raw,framerate=10/1,width=640,height=480
|
||||
bitrate: 500
|
||||
|
||||
stream-yay:
|
||||
|
|
|
@ -1,14 +1,5 @@
|
|||
<launch>
|
||||
<!-- Start the image publisher/s if required -->
|
||||
<!-- <node name="usb_cam0" pkg="usb_cam" type="usb_cam_node" output="screen" >
|
||||
<param name="video_device" value="/dev/video0" />
|
||||
<param name="image_width" value="640" />
|
||||
<param name="image_height" value="480" />
|
||||
<param name="pixel_format" value="yuyv" />
|
||||
<param name="camera_frame_id" value="yuyv" />
|
||||
<param name="io_method" value="mmap"/>
|
||||
<param name="autofocus" value="true"/>
|
||||
</node>
|
||||
<node name="usb_cam1" pkg="usb_cam" type="usb_cam_node" output="screen" >
|
||||
<param name="video_device" value="/dev/video1" />
|
||||
<param name="image_width" value="640" />
|
||||
|
@ -17,10 +8,10 @@
|
|||
<param name="camera_frame_id" value="yuyv" />
|
||||
<param name="io_method" value="mmap"/>
|
||||
<param name="autofocus" value="true"/>
|
||||
</node> -->
|
||||
</node>
|
||||
|
||||
|
||||
<!-- <node pkg="ros_rtsp" name="camera_publisher" type="camera_publisher" args="0"/> -->
|
||||
<!-- Start the RTSP server -->
|
||||
<node pkg="nodelet" type="nodelet" name="standalone_nodelet" args="manager" output="screen"/>
|
||||
|
||||
<node pkg="nodelet" type="nodelet" name="Image2RTSPNodelet" args="load image2rtsp/Image2RTSPNodelet standalone_nodelet" output="screen">
|
||||
|
|
Loading…
Reference in New Issue