# CLI guide The command line interface is organized around the type of work you want to do. ```text remove-ai-watermarks [OPTIONS] COMMAND [ARGS] ``` Run `remove-ai-watermarks COMMAND --help` for the complete option list and defaults. This page focuses on choosing the right command. ## Command dependency map | Command or signal | Required installation | | --- | --- | | `metadata` and metadata-only `identify` | Default package | | `classify-source` | `remove-ai-watermarks[source-classify]` | | `text invisible` and `text all --invisible`, default backend | `remove-ai-watermarks[text]` | | Text regeneration with an explicit Apple silicon MLX checkpoint | `remove-ai-watermarks[text-mlx]` | | Text regeneration with a locally installed model served by Ollama | `remove-ai-watermarks[text-api]` | | Visible signals in `identify` | `remove-ai-watermarks[visible]` (`pixels` is the minimal runtime) | | Open DWT-DCT signals in `identify` | `remove-ai-watermarks[detect]` | | Adobe TrustMark signals in `identify` | `remove-ai-watermarks[trustmark]` | | `visible` and `erase` with OpenCV | `remove-ai-watermarks[visible]` (`pixels` is the minimal runtime) | | `visible` or `erase` with MI-GAN | `remove-ai-watermarks[migan]` | | `visible` or `erase` with big-LaMa | `remove-ai-watermarks[lama]` | | `invisible` and `all` (needs CUDA) | `remove-ai-watermarks[qwen-zimage]` | | `video metadata` and `video identify --no-visible` | Default package | | `video identify` | `remove-ai-watermarks[video]` | | `audio identify --no-invisible` | Default package plus ffmpeg and ffprobe | | `audio identify` and verified `audio invisible` | `remove-ai-watermarks[audio-detect]` plus ffmpeg and ffprobe | | Audio `--scheme silentcipher` | `audio-silentcipher`, for the experimental public SilentCipher-44k receiver | | Audio `--scheme silentcipher16` | `audio-silentcipher`, for the experimental terminated eight-symbol 16k pattern | | Audio `--scheme perth` | `audio-perth`, for pinned public Perth v1 | | Audio `--scheme wavmark` | `audio-wavmark`; `--scheme all` needs `audio-detect`, `audio-wavmark`, `audio-perth`, and `audio-silentcipher` | | `audio invisible --allow-unverified --no-verify` | `remove-ai-watermarks[audio]` plus ffmpeg and ffprobe | | `audio invisible --method encodec` and `video audio --method encodec` | Add `audio-codec`; keep `audio-detect` for default verification | | `video audio` | Same audio extras and tools; no video pixel runtime is required | | `video visible`, `video all`, and visible/all batch modes | `remove-ai-watermarks[video]` (includes FFmpeg and ffprobe) | | `video invisible` and `video all --invisible` | `remove-ai-watermarks[video,diffusion]` (includes FFmpeg and ffprobe) | | HEIC/HEIF/AVIF pixel input | Add `remove-ai-watermarks[heif]` | | Every production command and Python-compatible backend | `remove-ai-watermarks[all]` | | `mcp` | Default package; each tool needs the extra of the command it runs | `batch` requires the same extra as its selected mode. Extras can be combined in one installation, for example `remove-ai-watermarks[visible,detect,heif]`. ## Inspect and process audio ```bash remove-ai-watermarks audio identify input.wav --json remove-ai-watermarks audio identify input.m4a --scheme auto --json remove-ai-watermarks audio identify input.m4a --no-invisible remove-ai-watermarks audio metadata input.mp3 --check remove-ai-watermarks audio metadata input.mp3 --remove -o clean.mp3 remove-ai-watermarks audio invisible input.wav -o processed.flac --json remove-ai-watermarks audio invisible input.m4a -o processed.m4a --scheme auto --json remove-ai-watermarks audio all input.mp3 -o clean.mp3 --invisible remove-ai-watermarks audio batch ./tracks -o ./tracks_clean --mode all --invisible ``` `audio identify` and `audio invisible` accept `--stream N`, the zero-based audio-track ordinal, and `--json`. Inspection reports metadata, a source SHA-256, stream geometry, named compatible decoder checks, and a suggested `recommended_recipe` when AI metadata or a compatible watermark signal is found. `--no-invisible` skips model inference. `--scheme` selects `audioseal` (default on `identify`/`invisible`), `auto` (scans every *installed* non-experimental compatible public decoder — `audioseal`, `wavmark`, and `perth` — without failing when an optional decoder extra is absent or a clip is shorter than WavMark's 1-second minimum window, leaving the overall status `unverified` only if no applicable decoder completes), `wavmark`, `perth`, `silentcipher`, `silentcipher16`, or `all` (requires all named public models, including both experimental SilentCipher receivers). A missing explicitly requested decoder keeps the combined result unverified. For validated 24 and 48 kHz sources, AudioSeal checks both a resampled 16 kHz clock and the original sample clock. Other native clocks are not added automatically. JSON detections identify the clock in `decoder_sample_rate`; verification requires both clocks to be negative, across channels and windows. A short AudioSeal tail reuses preceding audio instead of decoding a tiny remainder on its own. WavMark checks exactly one-second inputs and the final valid search window; inputs shorter than its model window remain unverified. The same `wavmark` route separately checks the published OpenVoice default message at native samples 0 and 32000. JSON labels these readings `framing="openvoice-default"` and records their native `decoder_sample_rate`. Custom messages and shifted/resampled framing are outside this receiver. SilentCipher-44k uses three-second windows and an experimental consistency threshold, with exhaustive phase search. Shorter sources stay unverified; CPU decoding can be slow. Its JSON `decoder_sample_rate` is 44100 even for 16 kHz input. This receiver does not check the 16 kHz model. The separate `silentcipher16` route checks only an experimental terminated eight-symbol pattern, with `decoder_sample_rate=16000` regardless of input rate. Readings label `framing="terminated8"`. JSON `payload_symbols` contains seven ternary symbols, not bytes. The SDK byte API and general 32-bit profile remain unqualified. Three-second windows and the complete 103-position phase grid are required for a negative. `all` includes both SilentCipher receivers. Neither negative certifies a production provider, other framing, or complete payload erasure. `audio invisible` defaults to `--method auto`, an adaptive minimal-distortion profile sequence for the requested scheme and pre-strip vendor metadata. AudioSeal and Perth v1 try spectral then combined processing; WavMark and both experimental SilentCipher receivers try neural then combined; when pre-strip C2PA/container metadata identifies ElevenLabs (`("dac", "encodec", "combined")` on mono, stereo, or tagged 5.1/7.1 when `dac` is installed, else `("encodec", "combined")`) or Google SynthID (`("dac", "combined")` on the same layouts when `dac` is installed, else `dac` alone, which fails closed), `--method auto` skips `spectral` and routes directly to neural codec resynthesis; an explicit `--vendor` cohort (`google`, `elevenlabs`, `suno`, `udio`, `openai`, `cartesia`, `meta`, `resemble`, `microsoft`) selects the same kind of vendor-matched sequence when metadata was already stripped and authorizes processing without `--allow-unverified`; when `--scheme auto` or `--scheme all` detects a specific subset of public schemes on the source, `--method auto` adapts to the lightest profile sequence covering only the positively detected schemes before falling back to `combined`. Publication requires a positive compatible source check and proceeds only after the saved output is negative in whole-clip and window checks. A resistant or incompletely checked candidate raises an error and preserves an existing output. No targeted source signal exits 2 without writing. Hard failures exit 1. Use `--allow-unverified` (for example with `--method dac` on proprietary audio marks or alongside `--no-verify`) to process without a local source-positive decoder match while still enforcing the saved-file SNR, RMS, and 1-second active-window integrity gate. Use `--allow-positive` only when you explicitly want to retain an output that still tests positive on the final attempt (exits 1), and `--allow-quality-override` only when you explicitly want to bypass the audio integrity gate. `--force` remains an alias enabling `--allow-unverified`, `--allow-positive`, and `--allow-quality-override` on the final attempt. Unverified processing exits 0 with `verified_removed: null`; this is not a removal certificate. `--verify` is the default. The default output is `SOURCE_processed.wav`; `-o` / `--output` accepts `.wav`, `.flac`, `.mp3` (`libmp3lame` 256 kbps CBR with Xing header), `.m4a` (`aac` 192 kbps with faststart), `.ogg`, or `.opus` (`libopus` 192 kbps). Encoding discards AI metadata and preserves native sample rate and channels (Opus internally codes on its RFC 7845 48 kHz grid and resamples back to the source clock during fidelity measurement). Reports measure fidelity (including `worst_window_rms_ratio` across 1-second active windows and stereo `max_side_mid_drift_db`) and run decoder verification on the actual saved file, so lossy recompression relapses and mid-track dropouts are caught before publication. The filter changes audible content and can fail on tonal inputs. See [audio coverage](audio-video-removal.md) for tested families and limits. `audio metadata` inspects (`--check`, default) or strips (`--remove`) AI creation tags and C2PA manifests on standalone audio files without altering PCM/compressed audio frames via stream-copy remuxing (`-o` / `--output` defaults to `_clean`; `--keep-standard/--remove-all` controls non-AI tags; `--json` emits JSON). `audio all` provides the predictable single-file product contract (`_clean` by default): it always strips verified AI metadata (`--keep-standard/--remove-all`) and, when `--invisible` is passed (`--no-invisible` is the default), runs compatible waveform watermark removal (`--scheme auto` by default, plus `--method`, `--bandwidth`, `--vocoder-device`, `--vendor`, `--allow-unverified`, `--allow-positive`, `--allow-quality-override`, `--force`, `--verify/--no-verify`, `--stream`, `--json`). An explicit `--vendor` cohort implies the waveform stage even without `--invisible`. When `--invisible` finds no positive compatible watermark (and neither `--allow-unverified` nor `--force` is set) and the source carries no AI metadata, `audio all` copies the source file byte-for-byte rather than re-muxing container headers unnecessarily. `audio batch` processes every supported audio file in a top-level directory (`-o` / `--output-dir` defaults to `_clean`, `--mode [all|metadata]` defaults to `all`, with `--invisible/--no-invisible`, `--scheme`, `--method`, `--bandwidth`, `--vocoder-device`, `--vendor`, `--allow-unverified`, `--allow-positive`, `--allow-quality-override`, `--force`, `--verify/--no-verify`, `--keep-standard/--remove-all`, and `--json`). `--method spectral` fixes the spectral profile. `--method encodec` selects optional neural resynthesis. `--bandwidth` accepts `6`, `12`, or `24` kbps and defaults to `24`; it applies only to EnCodec. `--vocoder-device` (`cpu` default, `mps`, or `cuda`) applies to EnCodec, `combined`, BigVGAN, and DAC; spectral, Mimi, and FocalCodec require `cpu`. Lower bandwidth can change speech timbre or music substantially. On 2-channel stereo tracks, EnCodec resynthesizes in Mid/Side (`M/S`) space rather than independent L/R passes so stereo phantom-center phase coherence is preserved, while retaining native channels, rate, and sample-frame count using bounded context. It has the same source-positive and saved-output verification gate, and can fail even when a whole-clip reading is negative but a window remains positive. `--method combined` applies the spectral filter followed by that neural codec. It uses the same optional extra and bandwidth choices. Automatic neural fallback also needs `audio-codec`; if unavailable, output remains unpublished. `--method bigvgan` explicitly selects the experimental pinned mel-vocoder (`audio-vocoder` extra). It processes one complete mono/stereo track, limited to 30 seconds and 16 million sample values, without chunking, normalization, or added output clipping. Stereo uses raw mid/side reconstruction. Select `--vocoder-device cpu` (default), `mps`, or `cuda`; no automatic device fallback is performed. CUDA and short-signal perceptual quality remain unqualified. The method is never selected by `auto`, ignores EnCodec bandwidth, and retains the same local decoder gates. Those gates do not verify Google SynthID. BigVGAN WAV serialization is deterministic and omits the encoder tag and RF64 reserve padding. Exact-file provider verdicts can be reused only when the complete output hash and verification surface match; PCM equality alone is insufficient. FLAC output is separately encoded and needs its own qualification. `--method mimi` selects the separate experimental CPU FP32 Mimi codec using its fixed default 32 quantizers (`audio-codec` extra). It uses the same bounded full-track mono/stereo collector, raw mid/side stereo, native sample grid and bitexact WAV writer. Its internal 24 kHz grid limits representable bandwidth; retaining the source rate is not preservation of its highest frequencies. EnCodec bandwidth and a non-CPU vocoder device do not apply. `auto` never selects Mimi. Local Perth experiments removed the signal on independent speech generations, but one short generation failed the frozen relative voice guard. Native-provider candidates remain unverified. `--method focalcodec` selects the separate experimental CPU FP32 continuous 6-layer WavLM feature-to-Vocos resynthesizer (`audio-codec` extra, pinned to `lucadellalib/focalcodec_50hz@d6d6d9524e52155c85193c2c3b8da1cf8842f019` and upstream `v0.0.1` `cad8bf81d70875f756770449c34909d8b0951642`). It runs single-pass resynthesis up to 30 seconds and raised-cosine overlap-window streaming on longer mono/stereo audio (`> 30 s`), preserving raw mid/side stereo, exact native sample grid, symmetric `(40, 40)` WavLM receptive-field context, smooth source-activity pause conditioning (`-42 dBFS` active speech / `-50 dBFS` quiet intervals), and bitexact WAV writer. Its internal 16 kHz grid limits representable bandwidth to 8 kHz. EnCodec bandwidth and a non-CPU vocoder device do not apply, and `auto` never selects FocalCodec. On native speech, conditioned FocalCodec passed complete paired WAV, PCM MOV, and AAC 192 kbps MP4 checks across `LONG03`, `LONG04`, and an untouched held-out `LONG05` generation while preserving atypical lexical phrasing where Mimi regularized a word. None of BigVGAN, Mimi, FocalCodec, or DAC supplies a SynthID decoder or guarantees words, voice, music, or ambience fidelity on a new input. `--method dac` selects the separate experimental FP32 44.1 kHz 3-codebook Descript Audio Codec (`audio-codec` extra, pinned to `descript/dac_44khz@c1bc521685adf9cfe247bc39a5ca58917eda1ac4`, MIT weights in `licenses/dac/NOTICE.txt`). It accepts mono, stereo, and tagged 5.1/7.1 layouts, and runs single-pass resynthesis up to 30 seconds and raised-cosine overlap-window streaming on longer audio (`> 30 s`), with raw mid/side stereo, stem RMS preservation, exact rational half-open clock (`44.1 kHz` internal grid, preserving up to `22.05 kHz` bandwidth), and bitexact WAV writer. EnCodec bandwidth does not apply; `--vocoder-device` accepts `cpu` (default), `mps`, or `cuda`. `auto` selects DAC only when pre-strip metadata identifies ElevenLabs (falling back to `encodec` / `combined` if DAC is absent or the layout is unsupported) or Google SynthID (failing closed rather than falling back to `encodec` if DAC is absent or the layout is unsupported), or when `--vendor` names a cohort. `--method snac` selects the separate experimental FP32 44.1 kHz 3-codebook Multi-Scale Neural Audio Codec (`audio-codec` extra, pinned to `hubertsiuzdak/snac_44khz@873ebef9718b89660340c6f55a2b515e98cfa1d9`, MIT weights in `licenses/snac/NOTICE.txt`), accepting mono, raw mid/side stereo, and tagged 5.1/7.1 layouts with single-pass resynthesis up to 30 seconds and overlap-window streaming on longer tracks across `--vocoder-device [cpu|mps|cuda]`; `auto` excludes `snac`. Long audio tracks (`> 30 s`) are verified across bounded `<= 30 s` whole-clip segments in addition to sliding windows, missing requested decoders emit actionable install hints, and JSON output includes `quality_passed`. Each method must pass the requested decoder checks on the saved output; none guarantees universal watermark removal or erasure of every residual message bit. ### Process audio inside a video ```bash remove-ai-watermarks video audio input.mp4 -o processed.mkv --stream 0 --json remove-ai-watermarks video audio input.mp4 -o processed.mp4 --all-streams --scheme auto --json ``` This command processes one selected audio track (`--stream N`, default `0`) or every watermarked audio track (`--all-streams`, optionally restricted to repeatable zero-based ordinals via `--target-stream N`) while copying encoded video and subtitle streams. It accepts `--allow-unverified`, `--allow-positive`, `--allow-quality-override`, `--force`, `--verify/--no-verify`, `--stream`, `--all-streams`, `--target-stream`, `--scheme`, `--json`, and `-o` / `--output` with the same verification and exit policy as `audio invisible`. It also accepts `--method`, `--bandwidth`, `--vocoder-device`, and `--vendor` with the same audio backend rules. When `--all-streams` is passed, every audio track in the container is inspected sequentially; unmarked tracks are stream-copied unchanged while each positively detected track is cleaned and verified in the final mux. The default output is `SOURCE_audio_processed.mkv`. MKV and MOV store the selected audio as uncompressed float PCM and can substantially increase file size. An explicit `.mp4` output encodes only the selected track as lossy AAC with a target bitrate of 192 kbps. Final verification and fidelity measurements use the delivered decoded audio, including AAC priming and tail trimming. Source formats and other stream codecs must be compatible with that container. The source audio timeline must be continuous. Before publication the command checks the selected track's native rate, channels, decoded sample-frame count, start offset, and the actual muxed watermark readings. Every other stream must retain its packet payloads and PTS/DTS within one output time-base tick; packet durations may differ by one source or output tick. Stream languages and dispositions and copied-audio priming/tail trimming must survive, so a container conversion that changes them is rejected. No samples are padded or truncated to repair a failed count or timestamp check. Some nonzero-offset AAC timelines cannot preserve those values and are rejected. Failures preserve an existing output. Each stream reaches its own end, including audio tails. Other audio tracks, visible marks, invisible video pixels, and metadata are not cleaned by this command. Container conversion can change tags. Use a separate visual or metadata command when that work is also needed. ## Inspect an image ```bash remove-ai-watermarks identify image.png ``` `identify` always inspects supported metadata. When pixel extras are installed, it also evaluates supported visible and invisible pixel signals. When no signal is found, it reports the origin as unknown. It does not claim the image is clean. For C2PA files, the text report shows asset integrity, claim-signature, signer-trust, and signer-validity results separately. Confidence follows the binding: an intact asset binding and claim signature is high confidence, and an unanchored or expired signer is reported as a caveat rather than a lower score, because no trust anchor list ships with the reader. A failed asset binding or signature, or a revoked signing credential, does not confirm the claimed origin. When a structured C2PA soft binding is present, the report also names its exact algorithm and signed value. Removing the manifest does not remove a referenced pixel watermark, and a referenced content fingerprint may still be recomputed. A fingerprint is reported as a durable-provenance signal, not as a watermark or a pixel-removal target. Machine readable output: ```bash remove-ai-watermarks identify image.png --json ``` Metadata only inspection: ```bash remove-ai-watermarks identify image.png --no-visible ``` Despite the historical option name, `--no-visible` skips all pixel detectors, including visible marks, open DWT-DCT, and TrustMark. Metadata inspection still runs. `identify` also routes other media by file suffix: a video runs `video identify` (with `--audio --audio-scheme auto` unless `--no-visible` is passed), an audio file runs `audio identify --scheme auto` (`--no-visible` maps to `--no-invisible`), and a text file runs `text identify`. ## Classify source/export pipeline from pixels (opt-in) To classify an image's likely AI generation/export pipeline and model version subfamily from pixels after metadata removal, install the `source-classify` extra and run `classify-source`. `identify` never runs this command, and it is not a SynthID detector: ```bash uv tool install --force "remove-ai-watermarks[source-classify]" remove-ai-watermarks classify-source image.png remove-ai-watermarks classify-source image.png --json ``` `classify-source` evaluates all 10 provider classes (`openai`, `google`, `bytedance`, `flux`, `stable_diffusion`, `meta`, `midjourney`, `ideogram`, `firefly`, `xai`) and abstains as `unknown` when no provider clears its calibrated pixel-pipeline threshold, while also reporting `Synthetic` (`yes` or `no`, backed by `synthetic_detected` and `synthetic_probability`) so heavily resized or recompressed AI images remain detectable even when generator-family attribution honestly abstains. When a provider is accepted, the stacked Stage-2 head also reports `version_subfamily` (for example `google:gemini_3_pro_image`, `openai:gpt_image_1_5`, `flux:flux_2_pro`, `stable_diffusion:sdxl`, `midjourney:v6_1`). `watermark_truth` is always `"unknown"`. Guide: [source-pipeline classification](source-classify.md). ## Remove known visible marks Install `remove-ai-watermarks[visible]` before using `visible` or `erase`. ```bash remove-ai-watermarks visible image.png -o clean.png ``` The default behavior: - checks every registered visible mark; - removes every detected match, except the weakly detected Jimeng label pill, which needs corroboration (see [supported signals](supported-signals.md)); - selects the best installed fill backend; - checks the filled region once without changing it or retrying the fill; - strips AI metadata from the output. The re-encode never costs display fidelity: the ICC colour profile and the EXIF orientation tag are carried over from the source (see [strip AI metadata](#strip-ai-metadata)). The automatic command reports `Removed and validated` when the detector no longer accepts an overlapping mark, `Partial` when an overlapping residual is still detected, and `Post-removal validation unavailable` when the check fails. The latter two still write the once-filled output and return success; they are result-quality statuses, not requests for an automatic second edit. Use a specific mark: ```bash remove-ai-watermarks visible image.png --mark gemini -o clean.png ``` Available mark names are printed by: ```bash remove-ai-watermarks visible --help ``` Keep metadata: ```bash remove-ai-watermarks visible image.png --keep-metadata -o clean.png ``` Use the strict visual gate without metadata or sibling corroboration: ```bash remove-ai-watermarks visible image.png --sensitivity strict -o clean.png ``` Act on a mark you can see but the detector will not confirm, by naming it and skipping the gate: ```bash remove-ai-watermarks visible image.png --mark gemini --no-detect -o clean.png ``` `--detect` is the default. `--no-detect` removes the named mark's footprint unconditionally, so it only makes sense together with an explicit `--mark`; on an image that never carried that mark it inpaints a region for nothing. Prefer `erase --region` when you know the geometry. When no known mark is detected, the command does not write a new output. Use `erase` if you can identify the affected region yourself. ## Erase a region ```bash remove-ai-watermarks erase image.png \ --region 1640,1930,400,100 \ -o clean.png ``` The region format is `x,y,width,height`. Repeat `--region` to erase more than one box: ```bash remove-ai-watermarks erase image.png \ --region 20,20,180,60 \ --region 1640,1930,400,100 \ -o clean.png ``` Choose the fill backend: ```bash remove-ai-watermarks erase image.png \ --region 1640,1930,400,100 \ --backend migan \ -o clean.png ``` `erase` accepts `cv2` (the default for images), `migan`, `lama`, and `auto`, which selects the best installed backend. The corresponding optional extra must be installed for a learned backend. A video input is routed to `video erase`, where `--track` tracks moving user-specified boxes across frames via pyramidal Lucas-Kanade flow and Sobel/NCC template refinement. Two more knobs tune the fill. `--dilate N` (default 3) grows every box by `N` pixels before inpainting, which helps when a mark has a soft edge or a drop shadow just outside the box you measured; it applies to every backend because it shapes the mask. `--inpaint-method telea|ns` selects the classical algorithm and only affects the `cv2` backend. Like `visible`, `erase` strips AI metadata from the output by default; pass `--keep-metadata` to retain it. The ICC colour profile and the EXIF orientation tag survive either way. ## Strip AI metadata Inspect metadata: ```bash remove-ai-watermarks metadata image.png --check ``` Remove AI metadata and write a new file: ```bash remove-ai-watermarks metadata image.png --remove -o clean.png ``` The same metadata commands accept supported audio containers. With ffprobe available, exact native Suno and Suno Studio creation comments are reported as `audio_generator`; ffmpeg is required for stream-copy removal outside ISOBMFF. The ffmpeg route drops all container tags and chapters, including ordinary ones; ISOBMFF uses targeted patches. This unsigned declaration is separate from C2PA, fingerprints, and waveform watermarks. A quiet metadata report does not verify the audio samples. When `-o` is omitted, removal overwrites the source. Standard metadata is kept unless you pass `--remove-all`; that includes the display tags -- the ICC colour profile and the EXIF orientation -- which also survive every pixel-command re-encode (`all`, `visible`, `invisible`, `erase`), because colour and geometry are display fidelity, not provenance. Orientation is re-tagged, not re-applied: the raster is untouched, so what displayed upright still displays upright. A quiet `--check` or a successful `--remove` is not a clean verdict. The command only inspects and strips embedded AI metadata; a pixel watermark such as SynthID has no local decoder once that metadata proxy is gone. `identify` reports the same limit. The command also supports the audio and video containers listed in [supported signals](supported-signals.md). ffmpeg must be available for the non-ISOBMFF audio and video path, either from the `video` extra or the system. ## Identify and clean video Install the video pixel and timestamp runtime for visible identification, removal, and the complete pipeline: ```bash uv tool install --force "remove-ai-watermarks[video]" ``` Inspect every locally supported video signal: ```bash remove-ai-watermarks video identify input.mp4 remove-ai-watermarks video identify input.mp4 --audio --audio-scheme auto remove-ai-watermarks video identify input.mp4 --json remove-ai-watermarks video identify input.mp4 --no-visible ``` The default scans the complete clip for stable registered visible marks and inspects supported metadata. Pass `--audio` (`--no-audio` is the default) with `--audio-scheme` (default `auto`) to also inspect every audio stream in the container with compatible public decoders and include `audio_streams` plus a suggested `recommended_recipe` when signals are detected. A result with no signals is reported as unknown, not clean, because proprietary pixel watermarks have no public local decoder. `--no-visible` performs metadata-only inspection (or metadata + audio when `--audio` is set). The text report lists invisible watermark hints; JSON exposes them as `invisible_watermark_hints`. These name C2PA-declared watermark schemes, supported SynthID metadata, or Amazon Nova Reel from Bedrock video provenance. They do not confirm a surviving pixel watermark. Registered fingerprints are not watermark hints. C2PA soft-binding declarations alone leave the video AI verdict unknown. They remain visible as metadata and, for watermark algorithms, as hints. Use the complete locally verifiable cleaning path: ```bash remove-ai-watermarks video all input.mp4 -o clean.mp4 ``` It removes a stable supported visible mark when found and always strips verified AI metadata. When no visual, metadata, or audio signal requires rewriting, it copies the source file byte-for-byte instead of re-muxing container headers. The source is never overwritten. Invisible regeneration is deliberately opt-in: ```bash remove-ai-watermarks video all input.mp4 -o clean.mp4 --invisible remove-ai-watermarks video all input.mp4 -o clean.mp4 --invisible --keep-fps --audio-invisible ``` That option is supported only for MP4, MOV, and M4V. It is lossy and uses the same default SynthID profile as `video invisible` (including default motion-compensated `--temporal-stabilize` / `--no-temporal-stabilize` and optional `--keep-fps` to preserve native source frame rate). Pass `--audio-invisible` (`--no-audio-invisible` is the default) alongside `--audio-scheme` (default `auto`), `--audio-method` (default `auto`), repeatable `--audio-stream N` (to restrict inspection/processing to specific zero-based audio tracks), and optional `--audio-allow-unverified` (`--audio-allow-positive`, `--audio-allow-quality-override`, or alias `--audio-force`) to also inspect and clean compatible watermarked audio tracks in the same atomic pipeline, yielding 4-layer audiovisual cleaning (metadata + visible marks + video pixels + audio tracks). Silent videos skip `scipy` audio-extra requirements even when `--audio-invisible` is set. To select the experimental Seedance recipe for an owned MP4: ```bash remove-ai-watermarks video all input.mp4 -o clean.mp4 --invisible --profile seedance-experimental remove-ai-watermarks video batch ./videos --invisible --profile seedance-experimental ``` The complete pipeline runs supported visible-mark removal before this pixel stage. Unsupported visible overlays still require separate preparation. `--profile seedance-experimental` requires `--invisible` in all/batch mode. The batch keeps one VAE runtime across files and reports unsupported containers as per-file failures. Process all supported files in a top-level directory: ```bash remove-ai-watermarks video batch ./videos --mode all remove-ai-watermarks video batch ./videos --mode all --invisible --audio-invisible remove-ai-watermarks video batch ./videos --mode visible remove-ai-watermarks video batch ./videos --mode metadata ``` The batch runs sequentially, preserves successful outputs when another file fails, and exits nonzero if any item failed. Visible no-op files are copied byte-for-byte so the output directory remains complete. `--invisible` and `--audio-invisible` are available only with `--mode all`. ## Identify and clean text Inspect deterministic text provenance and character steganography in plain text, Markdown, or HTML files: ```bash remove-ai-watermarks text identify article.md remove-ai-watermarks text identify article.md --json ``` `text identify` runs with no optional ML or pixel extras. It detects and decodes: - C2PA 2.3/2.4 Appendix A.8 `C2PATextManifestWrapper` (`C2PATXT\0` encoded in trailing Variation Selectors `U+FE00`..`U+FE0F` and `U+E0100`..`U+E01EF`, prefixed by `U+FEFF`); - C2PA 2.3/2.4 Appendix A.9 structured-text ASCII-armored manifest blocks (`-----BEGIN C2PA MANIFEST----- ... -----END C2PA MANIFEST-----`); - C2PA 2.3/2.4 Appendix A.7 HTML `