Mercurial > mplayer.hg
view TOOLS/x2mpsub.sh @ 21932:c11cbff65f18
r21727: Must refer to option name instead of internal variable
r21758: Subtitle formats are listed in subreader.h, not libmpdemux/demuxer.h.
r21848: clarify a few things about the interaction between *cmp and mbd options
r21865: Audio track switching works with DVDs as well.
r21882: sync to x264 r607 (update description of threads)
author | kraymer |
---|---|
date | Wed, 17 Jan 2007 14:04:30 +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