if [ "$1" = "" ]
then
	echo "Usage ./test movie-720x576.mpv"
	echo "You need mjpegtools and its yuv version of mpeg2dec installed too."
	exit
fi

cat $1 | \
mpeg2dec -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 ./test1.mpg

