Skip to content

Instantly share code, notes, and snippets.

@Seegras
Created January 10, 2019 10:57
Show Gist options
  • Save Seegras/511e2baca28ec3305ac67fea8dc33e09 to your computer and use it in GitHub Desktop.
Save Seegras/511e2baca28ec3305ac67fea8dc33e09 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# Author: Peter Keel <seegras@discordia.ch>
# Date: 20.10.2012
# Version: 0.1
# License: Public Domain
# URL: http://seegras.discordia.ch/Programs/
#
for i in *.ass ; do ffmpeg -i "$i" "$(basename $i .ass).srt" ; done
flip -ub *.srt
for i in *.srt; do sed -i "s#<font.*\">##g" $i; done
for i in *.srt; do sed -i "s#</font>##g" $i; done
for i in *.srt; do sed -i "s#<b>##g" $i; done
for i in *.srt; do sed -i "s#</b>##g" $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment