Twitch
Twitch 直播集成技能。
clawhub install twitch在 Linux 上拍照、录制视频片段、列出摄像头和进行直播,使用 V4L2 和 ffmpeg,支持 USB 网络摄像头及 RTSP/IP 摄像头。
Capture photos, record video clips, list cameras, and live stream on Linux. Uses V4L2 and ffmpeg. Supports USB webcams and RTSP/IP cameras.
# 安装 Skill(会下载 SKILL.md 到 .claude/skills/) clawhub install linux-camera # 之后直接对 Claude 说"用 linux-camera 帮我…"即可
# 同样的安装命令,兼容所有支持 SKILL.md 的 AI 编程工具 clawhub install linux-camera
此 Skill 兼容 OpenClaw 标准。 安装后自动生成 SKILL.md 文件,任何支持 OpenClaw 协议的 AI Agent(Claude Code、Cursor、Windsurf 等)均可直接调用。
需Linux系统、V4L2驱动和ffmpeg;若使用直播需要流媒体服务器
~/.openclaw/workspace/skills/linux-camera/sudo apt-get install -y ffmpeg v4l-utils
camera_photo.py) — simplest way to take a photouv run python scripts/camera_photo.py # auto-detect camera, timestamped filename
uv run python scripts/camera_photo.py front # use /dev/video0
uv run python scripts/camera_photo.py back # use /dev/video2
uv run python scripts/camera_photo.py front pic.jpg # custom filename → /tmp/pic.jpg
uv run python scripts/camera_photo.py /dev/video4 # explicit device path
front = /dev/video0, back = /dev/video2. Output goes to /tmp/ by default.camera_list.py)uv run python scripts/camera_list.py
--json | Output as JSON | off |camera_snap.py) — primary, recommendeduv run python scripts/camera_snap.py --output /tmp/snapshot.jpg
--device | V4L2 device path | /dev/video0 |
| --rtsp | RTSP URL (use instead of --device for IP cameras) | — |
| --output | Output file path | /tmp/camera_snap.jpg |
| --width | Capture width | 1280 |
| --height | Capture height | 720 |
| --warmup | Warmup frames to skip (for exposure adjustment) | 5 |
| --quality | JPEG quality (1–100) | 90 |camera_clip.py)uv run python scripts/camera_clip.py --duration 5 --output /tmp/clip.mp4
--device | V4L2 device path | /dev/video0 |
| --rtsp | RTSP URL (use instead of --device for IP cameras) | — |
| --output | Output file path | /tmp/camera_clip.mp4 |
| --duration | Recording duration in seconds | 5 |
| --width | Capture width | 1280 |
| --height | Capture height | 720 |
| --fps | Frames per second | 30 |camera_stream.py)uv run python scripts/camera_stream.py --port 8090
http://<device-ip>:8090 in a browser to view the MJPEG stream.--device | V4L2 device path | /dev/video0 |
| --rtsp | RTSP input URL (use instead of --device for IP cameras) | — |
| --port | HTTP server port | 8090 |
| --width | Capture width | 640 |
| --height | Capture height | 480 |
| --fps | Target frames per second | 15 |
| --enable-hls | Enable HLS output (adaptive bitrate, mobile-friendly) | off |
| --enable-rtsp | Enable RTSP re-stream output | off |
| --rtsp-port | RTSP server port (when --enable-rtsp is used) | 8554 |http://<ip>:8090/ | MJPEG stream (works in <img> tags and browsers) |
| http://<ip>:8090/snap | Single JPEG snapshot |
| http://<ip>:8090/hls | HLS live page (requires --enable-hls) |
| http://<ip>:8090/hls/stream.m3u8 | HLS playlist for VLC or mobile players |
| rtsp://<ip>:8554/live | RTSP stream (requires --enable-rtsp) |
| http://<ip>:8090/status | JSON status (frame age, size, active outputs) |# List cameras
uv run python scripts/camera_list.py
# Snapshot from default webcam
uv run python scripts/camera_snap.py
# Snapshot from a specific camera
uv run python scripts/camera_snap.py --device /dev/video2 --output /tmp/photo.jpg
# Snapshot from an IP camera
uv run python scripts/camera_snap.py --rtsp rtsp://user:[email protected]:554/stream1
# Record 10 seconds of video
uv run python scripts/camera_clip.py --duration 10
# MJPEG stream (low-latency, view in browser)
uv run python scripts/camera_stream.py --port 8090
# MJPEG + HLS stream (adaptive bitrate for mobile / remote)
uv run python scripts/camera_stream.py --port 8090 --enable-hls
# Full streaming: MJPEG + HLS + RTSP re-stream
uv run python scripts/camera_stream.py --port 8090 --enable-hls --enable-rtsp
# Stream from an IP camera as input
uv run python scripts/camera_stream.py --rtsp rtsp://user:[email protected]:554/stream1 --enable-hls
# High-res stream at 30fps
uv run python scripts/camera_stream.py --width 1280 --height 720 --fps 30
/dev/video0 and /dev/video2), specify the device:# List all cameras
uv run python scripts/camera_list.py
# Snap from camera 0
uv run python scripts/camera_snap.py --device /dev/video0 --output /tmp/cam0.jpg
# Snap from camera 2
uv run python scripts/camera_snap.py --device /dev/video2 --output /tmp/cam2.jpg
# Stream camera 0 on port 8090, camera 2 on port 8091
uv run python scripts/camera_stream.py --device /dev/video0 --port 8090
uv run python scripts/camera_stream.py --device /dev/video2 --port 8091
# Move arm to look at the desktop
uv run python ~/.openclaw/workspace/skills/soarm-control/scripts/soarm_set_joints.py \
--shoulder-pan 1.626 --shoulder-lift -42.110 --elbow-flex 32.088 \
--wrist-flex 78.242 --wrist-roll -95.077
# Capture what the camera sees
uv run python scripts/camera_snap.py --output /tmp/desktop.jpg
clawhub run linux-camera --capture /tmp/snapshot.jpg && ffprobe /tmp/snapshot.jpginSaiAI 智能编辑工具,用于直播场景下的视频/音频处理,包括转码、滤镜、流媒体处理、元数据操作和复杂 FFmpeg 滤镜图操作。
Use when performing video/audio processing tasks including transcoding, filtering, streaming, metadata manipulation, or complex filtergraph operations with FFmpeg.
clawhub install insaiai-intelligent-editing