/media-os:ffmpeg-mxf-imf [operation]from media-os
Provides ffmpeg recipes for professional broadcast and film delivery: MXF OP1a/OP-Atom, IMF packages, GXF, SMPTE timecode, XDCAM profiles. Use for Netflix/studio deliverables or broadcast exchange.
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
Ask / infer:
01:00:00:00?setfield=tff for broadcast TFF output?asdcplib / photon.| Target | Codec | Muxer |
|---|---|---|
| MXF OP1a broadcast | dnxhd / dnxhr | -f mxf |
| MXF OP-Atom (Avid/IMF) | dnxhd / dnxhr / prores | -f mxf_opatom |
| MXF D-10 IMX | mpeg2video D-10 | -f mxf_d10 |
| XDCAM HD422 | mpeg2video 50 Mb CBR | -f mxf |
| ProRes mezzanine | prores_ks | -f mov |
| GXF (Grass Valley) | mpeg2video / others | -f gxf |
See references/formats.md for full codec profile tables.
ffmpeg -i in.mov \
-c:v dnxhd -b:v 120M -pix_fmt yuv422p \
-vf "setfield=tff" \
-c:a pcm_s24le -ar 48000 \
-timecode "01:00:00:00" \
-f mxf out_op1a.mxf
For DNxHR (raster-independent successor): -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p.
ffmpeg -i in.mov \
-map 0:v -c:v dnxhd -b:v 120M -pix_fmt yuv422p \
-f mxf_opatom video.mxf
ffmpeg -i in.mov \
-map 0:a:0 -c:a pcm_s24le -ar 48000 -f mxf_opatom audio_1.mxf
One file per video essence + one file per audio channel. Script mxf-opatom does the fan-out.
ffmpeg -i in.mov \
-c:v prores_ks -profile:v 3 -pix_fmt yuv422p10le -vendor apl0 \
-c:a pcm_s24le \
out_prores.mov
Profile map: 0 Proxy, 1 LT, 2 Standard 422, 3 HQ 422, 4 4444, 5 4444 XQ.
ffmpeg -i in.mov \
-c:v mpeg2video -pix_fmt yuv422p \
-b:v 50M -maxrate 50M -minrate 50M -bufsize 17M \
-flags +ildct+ilme -top 1 \
-c:a pcm_s24le -ar 48000 \
-f mxf out_xdcam.mxf
ffmpeg cannot author an IMF package. IMF = MXF essence files + XML CPL (Composition Playlist), PKL, ASSETMAP, OPL, VOLINDEX. ffmpeg writes the MXF essence (J2K SMPTE ST 2067-20 or ProRes ST 2067-21); CPL authoring requires external tooling:
https://github.com/Netflix/photon) — validates IMF packages.Document this limitation; do not pretend ffmpeg alone produces an IMP.
# Non-drop-frame (24, 25, 30, 50, 60 fps) — use COLON
ffmpeg -i in.mov -c copy -timecode "01:00:00:00" -f mxf out.mxf
# Drop-frame (29.97, 59.94) — use SEMICOLON before frames field
ffmpeg -i in.mov -c copy -timecode "01:00:00;00" -f mxf out.mxf
The semicolon vs. colon is load-bearing — it is how ffmpeg selects DF.
ffprobe -v error -show_streams -show_format out.mxf
ffprobe -v error -show_entries format_tags:stream_tags=timecode out.mxf
mediainfo --Output=JSON --Full out.mxf # deeper: GOP, profile, level
Look for: codec_name, pix_fmt, r_frame_rate, tags.timecode, MXF Operational Pattern in mediainfo. IMF essence should show JPEG 2000 or ProRes with 10-bit 4:2:2+ and a UL identifying SMPTE ST 2067.
scripts/mxfimf.py — subcommands: mxf-op1a, mxf-opatom, prores-mov, xdcam-hd422, set-timecode, identify-imf.uv run ${CLAUDE_SKILL_DIR}/scripts/mxfimf.py mxf-op1a \
--input in.mov --output out.mxf --codec dnxhd --timecode "01:00:00:00"
uv run ${CLAUDE_SKILL_DIR}/scripts/mxfimf.py set-timecode \
--input in.mov --output out.mov --tc "01:00:00;00" --drop-frame
uv run ${CLAUDE_SKILL_DIR}/scripts/mxfimf.py identify-imf --input suspect.mxf
All subcommands accept --dry-run and --verbose.
references/formats.md for MXF operational patterns, DNxHD/DNxHR profiles, ProRes profiles, XDCAM variants, timecode syntax, IMF spec refs, Netflix/Disney/Apple delivery notes, external IMF tooling, SMPTE 2022/2110 overview, and DeckLink SDI capture.-f mxf = OP1a (single file, broadcast default). -f mxf_opatom = OP-Atom (one essence per file, Avid + IMF). -f mxf_d10 = D-10 / IMX. Confirm which the downstream system requires — mixing them up causes silent ingest rejection.01:00:00;00 = drop-frame. 01:00:00:00 = non-drop-frame. 29.97 fps NDF is not the same as 29.97 DF — NDF never skips, DF skips 2 frames every minute except every 10th minute.-vf setfield=tff on output, plus -flags +ildct+ilme -top 1 for MPEG-2. Missing these produces ingest-rejecting files.pcm_s24le at 48 kHz. Don't use AAC in broadcast MXF.mxf-opatom subcommand fans out automatically.-mpegts_flags system_b for broadcast MPEG-TS compliance.-metadata rarely suffices; Dolby Vision usually requires MP4Box or dovi_tool after encode.-metadata timecode=HH:MM:SS:FF, output side use -timecode — they are different flags.-f decklink -i "DeckLink Mini Recorder". Requires the Blackmagic Desktop Video driver.-mbd rd -trellis 2 -cmp 2 -subcmp 2 for better RD._original suffix on output means ffmpeg refused to overwrite — pass -y to force overwrite.Input: master.mov (ProRes 422 HQ, 29.97 fps, needs DF timecode).
uv run ${CLAUDE_SKILL_DIR}/scripts/mxfimf.py mxf-op1a \
--input master.mov --output deliverable.mxf \
--codec dnxhd --timecode "10:00:00;00"
ffprobe -show_entries stream_tags=timecode deliverable.mxf
Result: OP1a MXF with DNxHD 120 Mbps video + PCM 24-bit audio + drop-frame SMPTE timecode starting at 10:00:00;00.
uv run ${CLAUDE_SKILL_DIR}/scripts/mxfimf.py mxf-opatom \
--input master.mov --outdir /tmp/opatom --codec dnxhr
Produces video.mxf, audio_0.mxf, audio_1.mxf, … one essence per file.
uv run ${CLAUDE_SKILL_DIR}/scripts/mxfimf.py identify-imf --input unknown.mxf
Reports whether the MXF uses SMPTE ST 2067 descriptors and whether ffmpeg can round-trip it. If IMF, instructs user to fetch the CPL and use Netflix Photon.
Could not find tag for codec ... in stream #0, codec not currently supported in containerCause: codec/muxer mismatch (e.g., H.264 in mxf_opatom, or AAC in MXF).
Solution: MXF wants DNxHD/DNxHR/MPEG-2/JPEG 2000 for video and PCM for audio. Re-encode with a supported codec.
Cause: mxf_opatom supports exactly one video or one audio essence per file.
Solution: split with -map and produce one MXF per essence. Use the mxf-opatom subcommand.
00:00:00:00 after muxCause: -timecode must be on the output side, not input; or input was -c copy without the output flag.
Solution: put -timecode "HH:MM:SS:FF" as an output option, after -i. For DF, use semicolon.
Cause: missing setfield=tff and/or -top 1, or wrong field order.
Solution: add -vf setfield=tff -flags +ildct+ilme -top 1 for TFF broadcast.
_original suffixCause: a file with that name already existed and ffmpeg refused to overwrite.
Solution: add -y to the ffmpeg command, or delete the existing output first.
Cause: ffmpeg does not author CPLs. You produced the essence but not the XML package.
Solution: use asdcp-wrap or the Netflix IMF Conversion Utility to wrap the essence and generate CPL/PKL/ASSETMAP. ffmpeg is only step 1.
What SKILL.md sets; muted values are Claude Code's defaults
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