---
title: "Use FFmpeg and Apple Script to compress videos"
description: "Build an application you can drag-and-drop videos onto to compress them significantely:"
canonical: https://oozou.com/til/use-ffmpeg-and-apple-script-to-compress-videos-12
locale: en
date: 2020-10-13
topic: macos
---

# Use FFmpeg and Apple Script to compress videos

> Build an application you can drag-and-drop videos onto to compress them significantely:

Published: 2020-10-13 · Topic: [macos](https://oozou.com/til-topics/macos) ([markdown](https://oozou.com/til-topics/macos.md))

Build an application you can drag-and-drop videos onto to compress them significantely:

Make sure you have *ffmpeg* installed (*brew install ffmpeg*).

Create a new Apple Script app:
*AppleScript
on open filelist
repeat with i in filelist
tell application "Terminal"
do script "ffmpeg -i " & POSIX path of i & " -vcodec h264 -acodec mp2 " & POSIX path of i & "\_compressed.mp4"
end tell
end repeat
end open*

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
