Mercurial > mplayer.hg
view TOOLS/x2mpsub.sh @ 20804:cfd35d61bed3
r20711: MSGTRs for demux_avi.c
r20712: better wording for "workarounding"
r20739: Remove remnants of long-gone libfame. (previously applied)
r20774: Adding ability to check allowed frequency range.
r20775: Spelling fix: Allowable -> Allowed
r20780: MSGTRs for ao_alsa.c
r20781: MSGTRs for libvo/aspect.c and libvo/vo_xv.c
r20782,r20783: (do not apply)
r20817: add full stop at end of sentence
author | kraymer |
---|---|
date | Thu, 09 Nov 2006 18:05:06 +0000 |
parents | 2c6c21e1a1a1 |
children |
line wrap: on
line source
#!/bin/sh # # This script converts the subtitles in the current directory into # MPsub format (into ./converted-subtitles/*) # # Gabucino. No warranty. :) # TMP="x2mpsub-$RANDOM" mkdir "$TMP" touch "$TMP/$TMP" for x in *; do echo "Converting $x" mplayer "$TMP/$TMP" -sub "$x" -dumpmpsub -quiet > /dev/null 2> /dev/null mv dump.mpsub "$TMP/$x" done rm "$TMP/$TMP" mv "$TMP" converted-subtitles