[Mplayer-cvslog] CVS: main/TOOLS x2mpsub.sh,NONE,1.1

Winner of tha face compo gabucino at mplayer.dev.hu
Wed Oct 17 20:07:46 CEST 2001


Update of /cvsroot/mplayer/main/TOOLS
In directory mplayer:/var/tmp.root/cvs-serv32014

Added Files:
	x2mpsub.sh 
Log Message:

converts all subtitles in . to mpsub format


--- NEW FILE ---
#!/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




More information about the MPlayer-cvslog mailing list