Skip to content

Instantly share code, notes, and snippets.

@seamonkey420
Created November 17, 2025 20:15
Show Gist options
  • Select an option

  • Save seamonkey420/3d7e82335500b599b7700bca629a48e3 to your computer and use it in GitHub Desktop.

Select an option

Save seamonkey420/3d7e82335500b599b7700bca629a48e3 to your computer and use it in GitHub Desktop.
extract subtitles via ffmpeg and macos terminal, use in automator
for f in "$@"; do
/opt/homebrew/bin/ffmpeg -y -hwaccel videotoolbox -v warning -hide_banner -i "$f" -map 0:s:0 "$f".srt
done
@seamonkey420
Copy link
Author

seamonkey420 commented Nov 17, 2025

create an automator quick action.
insert "Get Selected Finder Items"
insert "Run Shell Script"
paste code in to shell

-i use homebrew to install ffmpeg and in turn code reflects ffmpeg location

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment