Skip to content

fix(media): raise video duration cap to 15 minutes - #6854

Open
ileonhardt wants to merge 1 commit into
block:mainfrom
ileonhardt:fix/media-video-duration-15min
Open

fix(media): raise video duration cap to 15 minutes#6854
ileonhardt wants to merge 1 commit into
block:mainfrom
ileonhardt:fix/media-video-duration-15min

Conversation

@ileonhardt

Copy link
Copy Markdown

Summary

The relay hard-rejected videos longer than 600 seconds (crates/buzz-media/src/validation.rs), so 11-minute sales demos could not attach even though they were well under the 500 MB size cap.

  • Default max duration is now 900 seconds (15 minutes)
  • Operators can override with BUZZ_MAX_VIDEO_DURATION_SECS
  • Error string includes the configured cap
  • Desktop in-app download cap raised from 50 MiB to 100 MiB so those cuts can play after upload

Related

None found after searching open PRs for the 600-second duration cutoff. Closest is #4143 (2 GiB mobile size, still DRAFT) which does not change duration.

Originating conversation: Buzz channel demo-video-generation.

Testing

  • cargo test -p buzz-media --lib: 128 passed, including:
    • 601s rejected when cap is 600s
    • 601s accepted at the default 900s cap
    • 901s rejected at the default 900s cap
  • cargo clippy -p buzz-media -p buzz-relay --tests -- -D warnings
  • cargo fmt --all -- --check

Live kyanhealth.com still runs the previous image until this merges and the VM pulls ghcr.io/block/buzz:main.

The relay rejected 11-minute sales demos with `duration exceeds 600
seconds`. Default the cap to 900s and make it operator-configurable via
BUZZ_MAX_VIDEO_DURATION_SECS. Desktop in-app download is raised to
100 MiB so those cuts can play after upload.

Co-authored-by: Nacho <ignacio@kyanhealth.com>
Signed-off-by: Nacho <ignacio@kyanhealth.com>
@ileonhardt
ileonhardt requested a review from a team as a code owner August 26, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant