Mercurial > mplayer.hg
view TOOLS/x2mpsub.sh @ 17920:a781bc070922
1.1243: 10l
1.1242: sync to x264 r476 (subq=7)
1.1241: Support libavcodec vrc_strategy=1 (XviD ratecontrol).
1.1240: [applied by diego, commit #1.209]
1.1239: mpegopts example
1.1238: adapter doesn't require vm anymore
author | kraymer |
---|---|
date | Wed, 22 Mar 2006 18:11:44 +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