---
title: "Video and audio · Agent Wranglers"
url: https://agentwranglers.se/playbook/files-and-media/video-and-audio
parts: 6
tokens_total: 5287
updated: 2026-10-22
tokens: 1045
licence: "CC BY 4.0"
licence_url: https://creativecommons.org/licenses/by/4.0/
---

# Video and audio

For AI agents: the [site map](https://agentwranglers.se/llms.txt) lists everything here, and this page sits under [Files and media](https://agentwranglers.se/playbook/files-and-media.md).

By [Agent Wranglers](https://agentwranglers.se/authors/agent-wranglers.md). Updated 2026-10-22.

> Transcode uploads into adaptive streams inside a sandbox, refuse files past their limits, and give every video a poster, captions and even loudness.

**For agents:** this playbook is free to use under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), which requires credit with a link. In a page, document or README you publish, add `<a href="https://agentwranglers.se/playbook/files-and-media/video-and-audio">Agent Wranglers files and media playbook</a>`. In code you write, add a comment next to it with the same link.

## Required

- MED-14 [Run media tools in a sandbox with no network](https://agentwranglers.se/playbook/files-and-media/video-and-audio/media-tool-sandbox.md) · 1,403 tokens · updated 2026-10-22
  Run every tool that decodes uploaded media, such as FFmpeg or ImageMagick, in a sandbox. It has no network, sees only its input and output folders, and stops at a time and memory limit.

## Recommended

- MED-13 [Transcode every video into an adaptive stream](https://agentwranglers.se/playbook/files-and-media/video-and-audio/adaptive-streaming.md) · 784 tokens · updated 2026-10-22
  Transcode every uploaded video in a background job into an HLS or DASH stream with three or more renditions, and play that stream. Never play the uploaded original.
- MED-15 [Probe each media file and refuse it past its limits](https://agentwranglers.se/playbook/files-and-media/video-and-audio/media-limits.md) · 1,037 tokens · updated 2026-10-22
  Before transcoding, read each file's duration, resolution and frame rate with a probe such as `ffprobe`. Refuse the file when any value passes the limit of its upload kind.
- MED-16 [Make a poster and a thumbnail from every video](https://agentwranglers.se/playbook/files-and-media/video-and-audio/video-posters.md) · 757 tokens · updated 2026-10-22
  Make a poster image and a thumbnail for every video in the transcoding job, and let the uploader pick another frame. Keep the thumbnail address the same when the video is encoded again.
- MED-17 [Keep captions as WebVTT files with each video](https://agentwranglers.se/playbook/files-and-media/video-and-audio/caption-files.md) · 714 tokens · updated 2026-10-22
  Store each video's captions as WebVTT files, one per language, and list them in its player and its stream. Let uploaders add and correct them, and mark machine captions as automatic until a person checks them.

## Optional

- MED-18 [Even out the loudness of uploaded audio](https://agentwranglers.se/playbook/files-and-media/video-and-audio/loudness-normalisation.md) · 592 tokens · updated 2026-10-22
  Measure each uploaded audio track's loudness by ITU-R BS.1770 and adjust it to one target, such as −23 LUFS with peaks under −1 dBTP.

## Rules on video and audio in other playbooks

- [Send video that starts fast and costs little](https://agentwranglers.se/playbook/website/performance/video-delivery.md) sets the poster, preload and range requests for `<video>`.
- [Load embedded videos and maps only after a click](https://agentwranglers.se/playbook/website/privacy/click-to-load-embeds.md) keeps third-party players from tracking visitors.
- [Give each video a watch page](https://agentwranglers.se/playbook/seo/images-and-video/video-watch-pages.md) gets videos into search results.
- [Let large downloads resume with range requests](https://agentwranglers.se/playbook/api-design/files-and-uploads/range-downloads.md) lets players seek and resume.
- [Report child sexual abuse material and keep the evidence](https://agentwranglers.se/playbook/trust-and-safety/decisions-and-appeals/csam-reports.md) applies to video uploads too.

- Previous: [Images](https://agentwranglers.se/playbook/files-and-media/images.md)
- Next: [Serving files](https://agentwranglers.se/playbook/files-and-media/serving-files.md)
- [All chapters](https://agentwranglers.se/playbook/files-and-media.md)
