To anyone interested:
You can convert your DVD subtitles from one resolution to an other extracting them with
Code: Select all
tccat -i /dev/sr2 -T 8,-1 | tcextract -x ps1 -t vob -a 0x20 > subsen
mkdir subtitles
cd subtitles
subtitle2pgm -i ../subsen -c 224,224,32,0 -g 4 -t 1 # <-- verify the vaules of -c they depends on the movie(1)
convert all the png files with
Code: Select all
for d in *.png ;do
convert "$d" -resize '720x575!' +dither -map "$d" tmp.png || break
mv tmp.png "$d"
echo "$d"
done
mixing them in the mpg file with the movie with
Code: Select all
spumux -s0 movie_subtitle.dvdxml <../movie.mpg >../movie_wsubs.mpg #<-- increase the -s value if it is not the first subtitle
and finally you can author your dvd with the mpg file.
About (1)
I usually use `-c 0,85,170,255' to see how is the palette and assign black to the background, white inside the letters and dark gray around.
Thanks everyone.