Skip to content

Instantly share code, notes, and snippets.

@LeiHao0
Last active August 2, 2018 02:28
Show Gist options
  • Select an option

  • Save LeiHao0/32d8a60d5f8501e7e346b93a844bc375 to your computer and use it in GitHub Desktop.

Select an option

Save LeiHao0/32d8a60d5f8501e7e346b93a844bc375 to your computer and use it in GitHub Desktop.
embedSub.sh
#!/bin/zsh
mkdir -p embedSub
files=$(ls -1 | grep mkv)
for f in *.mkv; do
echo "$f"
ffmpeg -nostats -loglevel 0 -y -i "$f" -vf subtitles="$f" "embedSub/$f";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment