Skip to content

knowledge:video-digest: digest a time range of a video (--from/--to) #15531

Closed
4 of 4 issues completed
Closed

Description

@kyle-sexton

Problem

/knowledge:video-digest watch has no way to digest part of a video. watch/run-watch.js accepts
--skip-research, --target, --recover, --transcript-strategy, --max-frame-gap-sec and
--caption-wait-deadline, and nothing that bounds time. For one 18-minute talk inside a 9-hour
conference livestream, the only supported path downloads and samples the whole stream, and the
conference-multi-session floors in context/quality-gates.md (which context/watch-pipeline.md
applies to videos of 4 hours or more) then grade the whole video, not the part that was asked for.

What a run did instead (2026-11-11, knowledge 1.4.1)

The owner asked for 1:00:00 to 1:20:00 of an 8:58:20 was_live stream. The session worked around
the skill by hand:

  • Clipped with yt-dlp --download-sections "*0:58:00-1:22:00" plus the skill's format selector.
    About 13 minutes of wall time for 24 minutes of 1080p: the section download ran through ffmpeg
    at under 2x real time.
  • The stream had ended that day and had no captions yet, so the skill's caption wait would have
    held the run. The session transcribed the clip with the skill's faster-whisper settings
    (under 2 minutes for 24 minutes of audio).
  • watching/run-watching-pipeline.js needs a VTT, and none existed, so frames came from a fixed
    4-second ffmpeg interval and hand-built contact sheets, not the sampler.
  • Every timestamp had to be shifted by the clip's start offset by hand. The cut lands on a
    keyframe, so the offset is only known to about 10 seconds.
  • No watch.json, no checklist, no close, no resume: the slice is outside the contract.

Wanted

A time range as a first-class input of the watch and transcript actions, so a ranged digest is
a normal slice.

Acceptance criteria:

  • watch <url> --from <h:mm:ss> --to <h:mm:ss> (either bound optional) acquires only that
    range, and the slice records the range in watch.json and README.md.
  • Every stamp in the slice (transcript, frame times, densification windows, visual gaps) is in
    full-video time, with the range's start offset applied by the pipeline, and the offset's
    error recorded when the cut is keyframe-aligned.
  • Captions are cut to the range; when none exist, the asr rung runs on the ranged media.
  • A ranged run of a live-derived video with no captions does not enter the caption wait when
    asr is available (or the wait is skippable by flag), and records which path it took.
  • Quality gates grade the range, not the whole video: the conference-multi-session floors
    apply only to sessions inside the range.
  • resume, --recover and close work on a ranged slice.
  • The slice key allows more than one range of the same video (for example a range suffix), and
    QUEUE.md dedupes on video id plus range.
  • --max-frame-gap-sec applies within the range, so a dense "every slide" pass on a short talk
    does not densify the rest of the video.

Design notes for whoever picks this up

  • Options for acquisition: yt-dlp --download-sections (simple, slow through ffmpeg, keyframe
    cuts unless --force-keyframes-at-cuts, which re-encodes); full download then local ffmpeg
    trim (fast trim, full bandwidth and disk); or download once and keep sampling bounded by range
    (no trim at all). The measurement above is one data point for the first.
  • A natural follow-on is a session picker for conference-multi-session content: list the
    sessions found from the transcript and let the operator choose one, which resolves to a range.

Related

Found while digesting a talk for the repo-applicability menu; no PR depends on this.

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  2. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    Size: Large
    Complexity: High
    Uncertainty: Knowable
    Flags: none
    Blocked by: none

    Understood: you want a time range (--from/--to) as a first-class input to video-digest watch and transcript. The range would be acquired alone, stamps would be in full-video time, gates would grade only the range, and resume, --recover and close would work on a ranged slice.

    The acceptance criteria are clear. The acquisition method (yt-dlp sections, full download plus trim, or bounded sampling) is an implementation choice for the issue lane to settle on evidence. The work touches several subsystems, so it likely needs splitting into sub-issues.

    No duplicate found. #14708 is related only in that it also concerns watch media staging. No merged pull request appears to cover this.

    Automated triage. A maintainer reviews it.

  3. melodic-automation-lanes commented on Nov 12, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane yet: sub-issue #16130 is open.

  4. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    Split at intake (owner Q93). This issue is Size Large, so its done-when is split into 4 sub-issues, each holding its task-list lines as written.

    Automated split by the lanes App. Admission waits on this issue while a sub-issue is open; work-unblock closes it as completed once every sub-issue is closed as completed by a merge or a listed human and its done-when is covered.

  5. melodic-automation-lanes commented on Nov 16, 2026

    @melodic-automation-lanes
    Contributor

    Every sub-issue of this split is closed as completed by a listed human or a merge (#16127, #16128, #16129, #16130), so the lanes App closes it as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    Work status

    ready

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions