view TOOLS/x2mpsub.sh @ 6603:6eab60ea6c11

colorspace converter tests (memory corruption tests at different width/src/dst) quite impressive results only 1 of the 13 rgb->rgb converters fails for the c versions ... sadly only 1 of the mmx converters passes though :( ... i feared allready that last mplayerxp merge reversed the bugfixes :((((
author michael
date Sat, 29 Jun 2002 15:01:23 +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