The commands and subtitles are read from a file xxxx.ppml
This is a frame oriented format.
See also the demo-yuv.ppml included.

subtitler-yuv (at least this version) works ONLY wit hthe mplayer fonts.
The font_dir in the .ppml file must point to the directory where a
font.desc is, so normally for example:
~/.mplayer/font/iso-8859-2/arial-24
mplayer allows you to make your won fonts too, see in
mplayer the directory TOOLS/subfont-c

*
This version of subtitler cannot do movies in movies, because there is only
one stdin where we can read data from!
If yo uwant to do that, use Linux transcode, subtitler is in the filter
directory, as filter_subtitler.
*

This I use for subtitler-yuv to add the effects and subtitles to
the original .mpg file.
See the demo-yuv.ppml for some nice effects you can make.

This is the script I use with the mjpeg tools:
(input 720 x 576 PAL interlaced, top first, from SkyStar1 DVB-s 
satellite digital TV card).

cat $1 | \
mpeg2dec -s -o YUV | \
subtitler-yuv \
-c 32 \
-o 0 \
-p demo-yuv.ppml \
| \
mpeg2enc \
--video-bitrate 2500 \
--interlace-mode 1 \
--video-buffer 230 \
--min-gop-size 6 \
--max-gop-size 15 \
--reduction-4x4 1 \
--reduction-2x2 1 \
--quantisation 5 \
--frame-rate 3 \
--aspect 2 \
--format 3 \
--video-norm p \
--playback-field-order t \
-o ./test.mpg

Error messages appear on sterr.
Make sure you have demo-yuv.ppml, sun.ppm, and rose.ppm in the same
directory where you run this.

If you change
*main show_output=0
to
*main show_output=1
in the demo-yuv.ppml, also a X11 window will be displayed, this is
terribly slow however, but nice for some debugging.

This is what I am doing, and I can only speak for that:

I am recording from digital satellite with the Technisat SkyStar 1
PC card, in Linux.
Then I extract a mp2 sound file with for example transcode, or any
demuxer.
Convert this with mpg123 -w sound.wav -r 44100 in.mp2 to a wave file,
add (edit) subtitles with xste from:
http://www.home.zonnet.nl/panteltje/subtitles/
This creates a yourproject.ppml file.

OK, so much for now.
Jan
