用 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