#!/bin/bash # vim: set expandtab tabstop=4 shiftwidth=4: # Create silence for the menus to use dd if=/dev/zero bs=4 count=1920 | toolame -b 128 -s 48 /dev/stdin menu_silence.ac3 # Build the menus for MENU in main audio1 audio2 scene1 scene2 scene3 scene4 do pcxtoppm < menu_${MENU}_background.pcx | ppmtoy4m -n 60 -I p -F 30000:1001 -r -A 10:11 -S 420mpeg2 | mpeg2enc -n p -f 8 -o menu_${MENU}_background.m2v mplex -f 8 -o menu_${MENU}.mpg menu_${MENU}_background.m2v menu_silence.ac3 spumux menu_${MENU}_spumux.xml < menu_${MENU}.mpg > menu_${MENU}_final.mpg done