agentic-video Gallery

Find when a steady tone is heard in the mid band of a clip

SoundNatureVerified
0:12CC-BY-SA-4.0 · Addshore

Proof frames

Click a frame to seek

Tool calls

2 calls · agentic-video 0.3.1
spectrogram_windowimac · 563 ms

Arguments

{
  "source": "$CLIP",
  "start_sec": 4,
  "end_sec": 10
}

Result

{
  "ok": true,
  "data": {
    "source_path": "~/hill/gallery/tmp/R-tone/precheck/tone-nature/clip.mp4",
    "start_sec": 4,
    "end_sec": 10,
    "file_path": "/private<cache>/467a335a8bbda3c3444e/audio/spectrogram_v2_v1_113ad56dec67ba9e.png",
    "width": 1200,
    "height": 600,
    "sample_rate": 48000,
    "hop_samples": 256,
    "timecode_badges": [
      "00:00:04.000",
      "00:00:05.000",
      "00:00:06.000",
      "00:00:07.000",
      "00:00:08.000",
      "00:00:09.000",
      "00:00:10.000"
    ],
    "frequency_ticks": [
      {
        "frequency_hz": 50,
        "label": "50",
        "y_px": 480
      },
      {
        "frequency_hz": 100,
        "label": "100",
        "y_px": 432
      },
      {
        "frequency_hz": 200,
        "label": "200",
        "y_px": 383
      },
      {
        "frequency_hz": 500,
        "label": "500",
        "y_px": 318
      },
      {
        "frequency_hz": 1000,
        "label": "1k",
        "y_px": 269
      },
      {
        "frequency_hz": 2000,
        "label": "2k",
        "y_px": 220
      },
      {
        "frequency_hz": 5000,
        "label": "5k",
        "y_px": 156
      },
      {
        "frequency_hz": 10000,
        "label": "10k",
        "y_px": 107
      },
      {
        "frequency_hz": 20000,
        "label": "20k",
        "y_px": 58
      }
    ],
    "marks": [],
    "tool_file": {
      "_tag": "ToolFile",
      "name": "spectrogram_v2_v1_113ad56dec67ba9e.png",
      "mimeType": "image/png",
      "encoding": "base64",
      "data": "<782252 base64 chars dropped>",
      "byteLength": 586688
    }
  }
}
loudness_timelineimac · 340 ms

Arguments

{
  "source": "$CLIP",
  "start_sec": 4,
  "end_sec": 10,
  "window_sec": 2
}

Result

{
  "ok": true,
  "data": {
    "source_path": "~/hill/gallery/tmp/R-tone/precheck/tone-nature/clip.mp4",
    "start_sec": 4,
    "end_sec": 10,
    "window_sec": 2,
    "bpm": null,
    "silence_threshold_dbfs": -60,
    "peak_dbfs": -21.203,
    "peak_sec": 6.986,
    "windows": [
      {
        "start_sec": 4,
        "end_sec": 6,
        "rms_dbfs": -26.918,
        "peak_dbfs": -21.244,
        "band_db": {
          "sub": -44.744,
          "low_mid": -48.206,
          "mid": -27.678,
          "high": -72.118,
          "air": -80.045
        },
        "spectral_centroid_hz": 975.626,
        "silent": false
      },
      {
        "start_sec": 6,
        "end_sec": 8,
        "rms_dbfs": -22.989,
        "peak_dbfs": -21.203,
        "band_db": {
          "sub": -43.995,
          "low_mid": -47.659,
          "mid": -21.678,
          "high": -72.726,
          "air": -78.332
        },
        "spectral_centroid_hz": 992.703,
        "silent": false
      },
      {
        "start_sec": 8,
        "end_sec": 10,
        "rms_dbfs": -32.644,
        "peak_dbfs": -21.581,
        "band_db": {
          "sub": -43.671,
          "low_mid": -48.112,
          "mid": -51.631,
          "high": -71.407,
          "air": -78.352
        },
        "spectral_centroid_hz": 217.17,
        "silent": false
      }
    ],
    "outliers": [
      {
        "start_sec": 4,
        "end_sec": 8,
        "band": "mid",
        "direction": "boost",
        "energy_db": -24.678,
        "baseline_db": -38.154,
        "delta_db": 13.476,
        "min_delta_db": 8.976,
        "max_delta_db": 17.976,
        "energy_start_db": -27.678,
        "energy_end_db": -21.678,
        "entry_jump_db": null,
        "exit_jump_db": 29.953,
        "internal_range_db": 6,
        "trend_db": 6,
        "monotonic_fraction": 1,
        "shape": "transient",
        "window_count": 2,
        "fault_level": false,
        "classification": "informational",
        "ignored": false,
        "ignore_reason": null
      },
      {
        "start_sec": 8,
        "end_sec": 10,
        "band": "mid",
        "direction": "cut",
        "energy_db": -51.631,
        "baseline_db": -24.678,
        "delta_db": -26.953,
        "min_delta_db": -26.953,
        "max_delta_db": -26.953,
        "energy_start_db": -51.631,
        "energy_end_db": -51.631,
        "entry_jump_db": -29.953,
        "exit_jump_db": null,
        "internal_range_db": 0,
        "trend_db": 0,
        "monotonic_fraction": 0,
        "shape": "transient",
        "window_count": 1,
        "fault_level": false,
        "classification": "informational",
        "ignored": false,
        "ignore_reason": null
      }
    ],
    "ignore_ranges": [],
    "silence_gaps": [],
    "total": 3
  }
}

Question and answer

Question
There's a whine in the audio. When does it start and stop?
Answer
The loudness check's largest mid-band outlier runs from 4 s to 8 s, +13.5 dB against the other windows.
Check passedIoU 0.67, minimum 0.5

How it was checked

Truth from
constructed
Fixed at

Planted by this recipe before any tool ran: a 1000 Hz sine at gain 0.1 was mixed over the source's own audio from 5.2 s to 8.2 s in the first 12 s of the clip (the picture is not changed). The truth is that interval, and the tolerance 0.5 is the minimum overlap (IoU) with the answer. The call range, 4 s to 10 s in 2-second windows, is the fixed rule floor(start) minus 1 to floor(start) plus 5, written here before the run.

A script mixed a steady 1000 Hz tone for 3 seconds into this clip's own sound at a time it chose, and the tool gives a frequency band rather than a pitch, so the card gives the time only and no hertz value.

Try it yourself

Using agentic-video, look at the sound in my video from 4 to 10 seconds. Run spectrogram_window on that range, then run loudness_timeline on the same range with 2-second windows. Tell me the start and end, in seconds, of the mid-band outlier with the largest change.
  1. Get the .mcpb file and open it in Claude Desktop.
  2. Or: pip install agentic-video

Clip and licence

Licence
CC-BY-SA-4.0
Author
Addshore
Source
commons.wikimedia.org
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.