用 FFmpeg 和 Apple Script 压缩视频
October 13, 2020
打造一个可以把视频拖放上去、大幅压缩视频的应用程序:
先确定你已安装 ffmpeg(brew install ffmpeg)。
创建一个新的 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