agentleFS
haliphax-aihaliphax-ai/skills/rtsp-snapshot/SKILL.md

rtsp-snapshot

Skill0 starsChanged 8 months agoUnlicenseView on GitHub

Captures a still frame from an RTSP camera stream using ffmpeg. Use when asked to get a snapshot, still image, or single frame from an RTSP source.

The file

Files
SKILL.md

RTSP Snapshot

This skill uses ffmpeg to capture a single, high-quality still frame from a network RTSP stream.

Usage

Execute the following shell command. Replace <RTSP_URL> with the full RTSP connection string for your camera and <OUTPUT_FILE> with the desired output path (e.g., ~/.openclaw/media/rtsp-snapshots/living-room.jpg).

Recommended Command

ffmpeg -y -rtsp_transport tcp -i "<RTSP_URL>" -ss 00:00:01 -vframes 1 -q:v 8 -colorspace smpte170m -color_primaries smpte170m -color_trc smpte170m "<OUTPUT_FILE>"

Command Breakdown

  • -y: Overwrite the output file without asking.
  • -rtsp_transport tcp: Forces the stream to use TCP instead of UDP. This is more reliable and prevents corrupted or incomplete images, especially over Wi-Fi or congested networks.
  • -i "<RTSP_URL>": Specifies the input RTSP stream URL.
  • -ss 00:00:01: Seeks 1 second into the stream before capturing the frame. This gives the stream time to stabilize and avoids capturing a black or garbled initial frame.
  • -vframes 1: Captures exactly one video frame and then stops.
  • -update 1: Overwrites the single output file, which is the correct way to handle single-frame grabs.
  • -q:v 8: Sets the JPEG quality level. The scale is 2 (best) to 31 (worst). A value of 8 is a good balance of quality and file size.
  • "<OUTPUT_FILE>": The path where the snapshot image will be saved.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.