/media-os:decklink-tools [device-or-file] [target]from media-os
Captures and plays SDI/HDMI video via Blackmagic DeckLink hardware using ffmpeg decklink indev/outdev and SDK samples. Lists devices, formats, generates test patterns.
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
decklink.py list-devices)decklink.py list-formats)decklink.py capture)decklink.py play)decklink.py signal-gen)decklink.py sdk-install)Hp60, 4k60) or name.decklink-docs skill to verify API / enum / option names.DeckLink hardware is enumerated at the OS level by the Desktop Video driver. ffmpeg talks to it via the decklink indev/outdev.
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py list-devices
Under the hood this runs:
ffmpeg -hide_banner -f decklink -list_devices 1 -i dummy
Output lines look like [decklink @ ...] 'DeckLink Mini Recorder 4K'. The quoted string is the exact name to pass to -i or as output URL. Names are case-sensitive; spaces are significant.
Display modes supported by a device depend on the hardware (HD-only vs 12G-SDI).
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py list-formats --device "DeckLink Mini Recorder 4K"
Under the hood:
ffmpeg -hide_banner -f decklink -list_formats 1 -i "DeckLink Mini Recorder 4K"
Output columns: mode index, four-CC, mode name, FPS. Use either the index (-format_code 23) or the four-CC (-format_code Hp60) — four-CCs are clearer and more portable.
Stream copy the DeckLink signal to a file without re-encoding (fastest path):
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py capture \
--device "DeckLink Mini Recorder 4K" \
--format Hp60 \
--pixel uyvy422 \
--out capture.mov
Expands to:
ffmpeg -f decklink -format_code Hp60 -raw_format uyvy422 \
-i "DeckLink Mini Recorder 4K" \
-c:v copy -c:a copy capture.mov
For 10-bit YUV (Rec.2020 HDR, film), pass --pixel v210. Width must be divisible by 48 for v210.
Re-encode during capture (useful when disk bandwidth is limited):
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py capture \
--device "DeckLink Mini Recorder 4K" --format Hp60 \
--encode prores_hq --out capture.mov
Encode presets: prores_proxy, prores_lt, prores_hq, h264_crf20, hevc_crf20, dnxhr_hq.
Play an existing file out SDI/HDMI via a DeckLink output card:
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py play \
--device "DeckLink Mini Monitor" \
--in clip.mov \
--format Hp60
Expands to:
ffmpeg -re -i clip.mov \
-pix_fmt uyvy422 -vf scale=1920:1080,setsar=1 \
-f decklink -format_code Hp60 "DeckLink Mini Monitor"
-re (read at native frame rate) is mandatory — without it ffmpeg feeds the DeckLink faster than the output clock and the card drops frames.
Generate continuous SMPTE bars + 1 kHz tone out SDI/HDMI:
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py signal-gen \
--device "DeckLink Mini Monitor" \
--mode Hp60 \
--pattern smptebars
Expands to:
ffmpeg -re \
-f lavfi -i "smptebars=size=1920x1080:rate=60" \
-f lavfi -i "sine=frequency=1000:sample_rate=48000" \
-pix_fmt uyvy422 \
-f decklink -format_code Hp60 "DeckLink Mini Monitor"
Patterns: smptebars, smptehdbars, testsrc, testsrc2, rgbtestsrc, color=black, color=gray.
Writing your own C++ code against the DeckLink API needs the SDK headers, which live in a login-gated ZIP.
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py sdk-install
This prints — it does not download — the two links:
https://www.blackmagicdesign.com/support/family/capture-and-playbackhttps://www.blackmagicdesign.com/developer/product/capture-and-playbackPlus the standard install order: install the driver first, reboot, then unzip the SDK somewhere and point your build at <SDK>/Mac / Linux / Win. ffmpeg --enable-decklink --extra-cflags=-I/path/to/SDK/Linux/include on Linux.
bmdcapture, BMDPlaybackSample, bmd_capture_tool are NOT official SDK sample names. bmdcapture / bmdplay come from the third-party github.com/lu-zero/bmdtools repo. Official sample directories are CapturePreview, LoopThroughPreview, SignalGenerator, StatusMonitor, DeviceList, TestPattern, 3DVideoFrames, StreamOperations, FrameServer, AudioMixer. Correct this if the user mentions those non-existent names.-i "DeckLink Mini Recorder 4K", never -i DeckLink-Mini-Recorder-4K.--enable-decklink. Homebrew ffmpeg does not enable it by default; you need a third-party tap or a source build with SDK headers present. Missing: Unknown input format: 'decklink'.libDeckLinkAPI.{so,dll,dylib} → ffmpeg errors at startup.-raw_format takes ffmpeg pix_fmt names, not SDK enum names. uyvy422 = bmdFormat8BitYUV, v210 = bmdFormat10BitYUV, argb = bmdFormat8BitARGB, bgra = bmdFormat8BitBGRA, r210 = bmdFormat10BitRGB.-format_code accepts four-CCs OR mode indexes. Four-CCs are 4 ASCII bytes; some are space-padded ('pal '). Trailing-space four-CCs are not shell-safe — use the index instead.-re. Without native-rate read, the DeckLink card fills its hardware queue, underruns on switch-over, and emits visible glitches.-channels to the source.-duplex_mode (full vs half). On cards with one connector that can do both input and output (DeckLink Studio 4K), you must set -duplex_mode full before using both directions simultaneously. Half duplex is default.libDeckLinkAPI.dylib into /Library/Frameworks/DeckLinkAPI.framework/. Ad-hoc ffmpeg builds need the framework on the rpath.libgcc ABI mismatch: SDK samples compiled on one distro may fail on another with undefined reference to __cxa_*. Rebuild the samples on the target machine with the matching g++.uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py list-devices
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py capture \
--device "DeckLink Mini Recorder 4K" --format Hp60 --pixel uyvy422 \
--out /tmp/grab.mov
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py capture \
--device "DeckLink 8K Pro" --format 4k60 --pixel v210 \
--encode prores_hq --out hdr_grab.mov
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py signal-gen \
--device "DeckLink Mini Monitor" --mode Hp60 --pattern smptehdbars
uv run ${CLAUDE_SKILL_DIR}/scripts/decklink.py play \
--device "DeckLink Mini Monitor" --in master.mov --format Hp29
Unknown input format: 'decklink'Cause: ffmpeg was not built --enable-decklink.
Solution: Build from source with the SDK headers present, or install a decklink-enabled ffmpeg binary.
Cannot find DeckLink device called 'DeckLink ...'Cause: Exact name mismatch (extra space, wrong case) or driver not running.
Solution: Run list-devices, copy-paste the exact string. Verify Desktop Video is installed and the card is lit.
DeckLinkCaptureDelegate::VideoInputFrameArrived: DeckLink frame bad: 0x80000000Cause: No incoming signal (unplugged cable, camera off, wrong format on sender).
Solution: Use the StatusMonitor SDK sample, or run ffmpeg -f decklink -i "..." with -hide_banner and watch the first log line — it reports detected input format. Match -format_code to that.
v210: width is not divisible by 48Cause: Packed 10-bit YUV pixel layout requirement.
Solution: Use -raw_format uyvy422 (8-bit) or scale first: -vf scale=1920:1080.
Cause: Missing -re, or disk can't sustain raw-rate read.
Solution: Add -re. If it's already there, pre-transcode the source to a codec decodable in real time (ProRes, DNxHR).
Could not find any DeckLink cardCause: Driver installed but kernel hasn't claimed the device, or Thunderbolt hub not powered.
Solution: Reboot. Check Blackmagic Desktop Video Setup enumerates the card.
decklink-docs skill (companion search + catalog).decklink-docs → search --query "..." --page ffmpeg-devices-decklink.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub damionrashford/media-os --plugin media-os110 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.
Other plugins' skills for the same job