Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Compress Video for Discord with Claude Code (No App)

Video information, playback and saved actions.

Compress Video for Discord with Claude Code (No App)

Description: Compress a video for Discord with one Claude Code prompt, no compressor app. My 1-minute 1080p clip was 37.4 MB. Discord's free upload limit is 20 MB since August 2026. Claude Code got it to 19.2 MB, still 1080p, with the original untouched. One line in its summary was out of date, so put the limit in your prompt.

Discord is just the example. Claude Code handles a lot of small jobs you used to install extra software for, and this series, No Tool Needed, tests them one by one on real files. Follow for the next one.

----
🚀 DYNAMOUS AI COMMUNITY
Want to learn agentic coding with live daily events and workshops?
Check out Dynamous AI: https://dynamous.ai/?code=646a60
Get 10% off here 👉 https://shorturl.smartcode.diy/dynamous_ai_10_percent_discount

❤️ SUPPORT THE CHANNEL
Patreon: https://www.patreon.com/cw/DIYSmartCode

Higgsfield AI — Create AI Videos & Visuals
Get 10% OFF here: https://higgsfield.ai?fpr=thomas-dccf7e

⚡ HOSTINGER — RELIABLE HOSTING FOR YOUR PROJECTS (10% OFF)
Whether you're shipping a portfolio, a side project, n8n flows, or AI agents — I use Hostinger for fast, affordable VPS + web hosting.
Get 10% off here 👉 https://hostinger.com/DIYSMARTCODE

n8n: https://n8n.partnerlinks.io/diysmartcode

(Affiliate links — costs you nothing, supports the channel.)
----

What you will see in this 1-minute run:
• The prompt: "Make clip.mp4 fit Discord's free 20 MB limit. Keep 1080p if you can, and don't overwrite the original."
• It checked the file first (ls + ffprobe, read-only, no prompt), then asked once before the encode (manual mode).
• The math: about 2.42 Mbit/s for the picture + 128 kbit/s for the sound, times 60 seconds = 19.1 MB. Two-pass H.264 with ffmpeg, so the file lands on that size.
• Result 13 seconds after my yes: clip_discord.mp4, 19.18 MB (decimal MB), still 1920x1080 at 30 fps, full 60 seconds, clip.mp4 untouched. It also compared both files: SSIM 0.998 (1 = identical).
• The out-of-date line: its summary said Discord's free limit was 10 MB (true from September 2024 until August 2026) and that it had not checked. Discord's own FAQ says 20 MB now.
• The limit of this test: my clip is mostly screen footage, which compresses well. A longer clip gets fewer bits per second at the same size, and fast motion needs more, so a busy clip may have to drop to 720p. I did not test game footage.

Test setup: Claude Code v2.1.336, Sonnet 5.5, manual mode, Windows 11, ffmpeg already installed, recorded Dec 4, 2026. The clip is the first minute of one of my own videos.

Discord File Attachments FAQ (upload limits): https://support.discord.com/hc/en-us/articles/25444343291031
ffmpeg H.264 guide (two-pass encoding): https://trac.ffmpeg.org/wiki/Encode/H.264
HandBrake (the compressor app): https://handbrake.fr/

HandBrake, or one prompt in Claude Code: which one shrinks your clips?

#ClaudeCode #Discord #ffmpeg #AICoding Close description
      
Videos related to "Compress Video for Discord with Claude Code (No App)"