Skip to content

Troubleshooting Cameras & RTSP Ingest ​

This guide provides diagnostic procedures and remediation steps when cameras fail to connect, disconnect unexpectedly, or produce corrupted video frames.


1. Camera in offline State ​

When a camera transitions to offline, inspect the last_error field via the REST API (GET /api/v1/cameras/{id}) or CLI (ruseon-cli cameras list):

bash
# Check camera status via CLI
ruseon-cli cameras status --id cam_entrance

Common Root Causes & Solutions: ​

Error Message / SymptomRoot CauseRemediation Steps
401 UnauthorizedInvalid RTSP credentialsVerify camera username and password. Escape special characters (@, :, #) in RTSP URLs using URL encoding (e.g. %40).
i/o timeout / connection refusedNetwork unreachableVerify network routing, check if camera IP is reachable via ping <IP> and port 554 is open via nc -zv <IP> 554.
RTSP DESCRIBE failed: 404 Stream Not FoundWrong RTSP pathCheck camera RTSP URL path syntax (e.g., /h264Preview_01_main for Reolink, /Streaming/Channels/101 for Hikvision, /cam/realmonitor?channel=1&subtype=0 for Dahua).
max connections reachedCamera hardware client limitLower simultaneous connections on the camera; ensure RUSEON is the single consumer and restream to other clients.

2. Testing RTSP Stream Connectivity with FFmpeg ​

Verify the stream independently using ffmpeg or ffprobe:

bash
# Probe stream video codec, resolution, and SPS/PPS metadata
ffprobe -rtsp_transport tcp -v verbose "rtsp://admin:password@192.168.1.50:554/live"

# Test 10 seconds of packet ingestion without decoding
ffmpeg -rtsp_transport tcp -i "rtsp://admin:password@192.168.1.50:554/live" -t 10 -f null -

3. Unsupported Codec or Audio Format ​

RUSEON Core performs zero-transcoding transmuxing and natively accepts:

  • Video: H.264 (AVC) and H.265 (HEVC).
  • Audio: AAC and Opus (for WebRTC direct passthrough) and G.711 (PCMU/PCMA).

If the camera is configured for MJPEG or MPEG-4, the RTSP ingest engine will reject the video track.

  • Solution: Open the camera's web admin UI (Video/Encoding settings) and select H.264 or H.265.

4. Frequent Reconnections & Green Smearing / Gray Screen Artifacts ​

Green artifact blocks or smearing indicate lost P-frames over unstable transport:

  1. Switch Transport to TCP: Set transport: "tcp" in the camera configuration to eliminate UDP packet loss.
  2. Adjust GOP (KeyFrame Interval): In the camera web settings, set the I-Frame interval (GOP) to match the frame rate (e.g., 25 fps = GOP 25 or 50, meaning 1-2 seconds per keyframe). Avoid GOP intervals longer than 4 seconds.

Released under the MIT License.