cat $1 | \
mpeg2dec \
-o YUV \
$2 \
| \
./resizer-yuv \
-b 10 \
-x 360 \
-y 576 \
-f $3 \
-s $4 \
-g \
| \
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

