ใช้ FFmpeg และ Apple Script บีบอัดวิดีโอ
13 ตุลาคม 2563
สร้างแอปพลิเคชันที่คุณลากวิดีโอมาวางเพื่อบีบอัดให้เล็กลงได้อย่างมาก:
ตรวจสอบให้แน่ใจว่าติดตั้ง ffmpeg แล้ว (brew install ffmpeg)
สร้างแอป Apple Script ใหม่: 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