Mercurial > mplayer.hg
view TOOLS/x2mpsub.sh @ 18408:6484274d41e5
1.252: [previously applied by rynaldo, #1.157]
1.251: console message review: countless spelling/grammar/wording fixes
Part I (incomplete patch)
1.250: [previously applied by diego, #1.155]
1.249: [previously applied by diego, #1.156]
1.248: [previously applied by reynaldo. #1.154]
author | kraymer |
---|---|
date | Tue, 09 May 2006 13:34:39 +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