/media-os:ptz-visca [action]from media-os
Control PTZ cameras via Sony VISCA protocol over serial (RS-232/485) or IP (UDP:52381). Supports Sony, PTZOptics, AVer, Panasonic AW, Bolin, Avonic, Lumens, Marshall, Canon cameras.
Ships in media-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Context: $ARGUMENTS
Send Sony VISCA commands to a PTZ camera over serial (RS-232C/422/485) or IP (UDP:52381). For spec lookup / command byte tables see ptz-docs. For IP cameras without VISCA (ONVIF Profile S/T) use ptz-onvif.
pan-tilt --x 8 --y 0 --duration 1)preset recall --number 2)zoom --direction tele --speed 4)focus --mode auto / --mode near)raw --hex '81 01 04 00 02 FF')pyserial for the Python helper (optional — detected at runtime; otherwise fall back to IP).Pass --transport serial|udp-ip to viscactl.py. Default is udp-ip.
Address 1–7 (broadcast 8). First byte = 0x80 | addr on wire.
| Camera | Default port | Default addr |
|---|---|---|
| Sony BRC-H900 | 52381 | 1 |
| Sony SRG-300H | 52381 | 1 |
| Sony FR7 | 52381 | 1 |
| PTZOptics (G2/G3/Move SE/Move 4K) | 1259 (legacy) / 52381 (modern) | 1 |
| AVer Pro-AV (PTZ310 etc.) | 52381 | 1 |
| Panasonic AW-UE | 52381 | 1 |
PTZOptics legacy firmware uses port 1259; newer units standardized on 52381. Check the camera's OSD/web UI if in doubt. Use --port to override.
# IP (default)
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py pan-tilt \
--host 192.168.1.100 --address 1 \
--x 8 --y 0 --duration 1.5
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py zoom \
--host 192.168.1.100 --direction tele --speed 4 --duration 1
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py preset \
--host 192.168.1.100 --action recall --number 2
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py focus \
--host 192.168.1.100 --mode auto
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py power \
--host 192.168.1.100 --action on
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py home --host 192.168.1.100
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py reset --host 192.168.1.100
# Serial
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py pan-tilt \
--transport serial --serial-port /dev/tty.usbserial-AB0J8W5C --baud 9600 \
--x 0 --y 6 --duration 1
# Raw escape hatch
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py raw \
--host 192.168.1.100 --hex '81 01 04 3F 02 01 FF'
Every command supports --dry-run (print packet, skip send) and --verbose (trace bytes on stderr).
After a Command, expect ACK (y0 4z FF) then Completion (y0 5z FF). After an Inquiry, expect Completion carrying the data. Errors return y0 6z ee FF where ee is:
| ee | Meaning |
|---|---|
| 01 | Message length error |
| 02 | Syntax error |
| 03 | Command buffer full |
| 04 | Command canceled |
| 05 | No socket (to cancel) |
| 41 | Command not executable |
For IP transport, the 8-byte payload header on replies uses payload type 0x0111 (VISCA reply).
0x80 | address, not a literal 0x81. 0x81 means address=1; 0x82=address 2, etc. Broadcast is 0x88.0xFF. It's the terminator, not a length field.52381 times out, retry on 1259.Syntax error (ee=02).Command not executable (41).Command buffer full (03).0p 0q 0r 0s) — NOT 4 hex bytes. Each nibble carries 4 bits of the position. Same for absolute pan/tilt (0Y 0Y 0Y 0Y 0Z 0Z 0Z 0Z, 16-bit position split across 4 nibbles each).pip install pyserial — script auto-detects. No pyserial → --transport serial exits with a hint.PanTilt Home (8x 01 06 04 FF) is the factory-set center; preset 0 is user-defined.uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py pan-tilt \
--host 192.168.1.100 --x -6 --y 0 --duration 1
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py preset \
--host 192.168.1.100 --action save --number 3
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py focus \
--host 192.168.1.100 --mode manual
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py focus \
--host 192.168.1.100 --mode near --speed 3 --duration 1
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py home \
--host 192.168.1.100 --address 8
uv run ${CLAUDE_SKILL_DIR}/scripts/viscactl.py zoom \
--host 192.168.1.100 --direction tele --speed 4 --duration 1 --dry-run
references/commands.md — VISCA command table (Pan/Tilt, Zoom, Focus, Exposure, WB, Preset, Inquiries) with exact byte sequences.visca-over-ip (PyPI) — async, straightforward IP transport.pyvisca / python-visca — older, serial-focused.pysca — reactive-style.libvisca (C) — github.com/norihiro/libvisca-ip adds TCP+UDP support on top of upstream libvisca.Cause: Wrong port (1259 vs 52381), wrong address, or camera VISCA disabled in OSD.
Solution: Ping the camera, check VISCA-over-IP enabled in camera web UI, try --port 1259 for older PTZOptics.
ee=02 Syntax errorCause: Invalid byte sequence — wrong speed range, wrong nibble packing.
Solution: Check references/commands.md for the exact shape. Use --dry-run --verbose to inspect bytes before sending.
ee=03 Command buffer fullCause: Sent commands faster than the camera could complete them. Solution: Wait for Completion before sending the next, or throttle to ~10 Hz.
ee=41 Command not executableCause: Valid syntax but the camera can't run it now (e.g. focus direct when in AF, preset >127 on strict Sony).
Solution: Change state first (e.g. focus --mode manual) then retry.
Cause: --transport serial without the optional pyserial dep.
Solution: pip install pyserial — or switch to --transport udp-ip.
Cause: Pan/tilt speed = 0 (stop), or direction bytes wrong (03 03 = stop).
Solution: Use non-zero --x/--y magnitude; see the direction matrix in references/commands.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
110 skills in this plugin
/audio-coreaudioManipulate macOS audio at the Core Audio HAL layer: afinfo (audio file metadata), afplay (play), afconvert (convert format/rate/bit-depth/channel layout), say (TTS), SwitchAudioSource (change default input/output/system device — brew install switchaudio-osx), audiodevice CLIs (npm/Go variants), AppleScript via osascript to drive System Preferences Sound. HAL plugins at /Library/Audio/Plug-Ins/HAL/ load virtual drivers (BlackHole 2ch/16ch/64ch, Loopback, Background Music). Aggregate Device (drift-corrected multi-in) and Multi-Output Device via Audio MIDI Setup.app or AudioHardwareCreateAggregateDevice. Use when the user asks to change default macOS audio device, route audio between apps on Mac, install BlackHole, build an Aggregate Device, convert audio files with afconvert, or script Mac audio from the terminal.
/audio-jackRoute professional low-latency audio with JACK Audio Connection Kit (jackaudio.org): jackd server (ALSA/CoreAudio/PortAudio/ASIO backends), jack_control (D-Bus JACK2 config), jack_lsp (list ports/connections), jack_connect/jack_disconnect (manage links), jack_cpu_load, jack_samplerate, jack_bufsize (runtime period size), jack_transport, jack_rec (multi-channel WAV recording), jack_iodelay (round-trip latency), jack_wait, jack_midi_dump. JACK1 C maintenance vs JACK2 C++ multicore. Modern Linux swaps jackd for PipeWire's libjack shim — same client API. JackTrip for uncompressed multichannel UDP over the Internet. Use when the user asks to run a JACK server, connect audio clients, measure roundtrip latency, record from JACK ports, set JACK period size, or bridge JACK over the network with JackTrip.
npx claudepluginhub damionrashford/media-os --plugin media-osOther plugins' skills for the same job