From a2a3adf08e54ff880746868815d941bd464cd42e Mon Sep 17 00:00:00 2001 From: Akash Shingha Date: Mon, 9 Mar 2026 21:16:42 +0200 Subject: [PATCH] Update parameters.yaml for topic and resolution; add run_image2rtsp.sh launcher script --- config/parameters.yaml | 8 ++++---- run_image2rtsp.sh | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100755 run_image2rtsp.sh diff --git a/config/parameters.yaml b/config/parameters.yaml index 2ca4cb0..c68dc21 100644 --- a/config/parameters.yaml +++ b/config/parameters.yaml @@ -3,12 +3,12 @@ # If the source is a ros2 topic (default case) compressed: False - topic: "color/image_raw" + topic: "camera/image" default_pipeline: | ( appsrc name=imagesrc do-timestamp=true min-latency=0 max-latency=0 max-bytes=1000 is-live=true ! videoconvert ! videoscale ! - video/x-raw, framerate=30/1, width=640, height=480 ! + video/x-raw, framerate=30/1, width=1920, height=1080 ! x264enc tune=zerolatency bitrate=500 key-int-max=30 ! video/x-h264, profile=baseline ! rtph264pay name=pay0 pt=96 ) @@ -31,9 +31,9 @@ # Notice: Here the framerate might be set to the camera framerate, otherwise "503 Service Unavailable" error will appear. # RTSP setup - mountpoint: "/back" + mountpoint: "/live" port: "8554" - local_only: True # True = rtsp://127.0.0.1:portAndMountpoint (The stream is accessible only from the local machine) + local_only: False # True = rtsp://127.0.0.1:portAndMountpoint (The stream is accessible only from the local machine) # False = rtsp://0.0.0.0:portAndMountpoint (The stream is accessible from the outside) # For example, to access the stream running on the machine with IP = 192.168.20.20, # use rtsp://192.186.20.20:portAndMountpoint diff --git a/run_image2rtsp.sh b/run_image2rtsp.sh new file mode 100755 index 0000000..ec59528 --- /dev/null +++ b/run_image2rtsp.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -e + +# Minimal launcher: runs a package launch with optional args. +exec ros2 launch image2rtsp "${1:-image2rtsp.launch.py}" "${@:2}"