#!/bin/sh # def_interlace=1 def_ratio=2 def_tools=1 help(){ cat </dev/null | yuvdeinterlace -d | yuvcorrect -T PROGRESSIVE | y4mscaler -O size=1280x720 | yuvfps -s 60000:1001 -r 60000:1001 | ffmpeg -f yuv4mpegpipe -i /dev/stdin -i $base.wav \ $iflag_f -acodec ac3 -vcodec mpeg2video \ -target dvd -muxrate 23000000 -bufsize 3997696 -maxrate 20000000 $aflag_f -s 1280x720 \ -qmin 2 -b 18000000 -ab 224000 \ -f dvd -y $base.mpg ;; *) yuvcorrect -T $iflag_m 2>/dev/null | yuvdeinterlace -d | yuvcorrect -T PROGRESSIVE | y4mscaler -O size=1280x720 | yuvfps -s 60000:1001 -r 60000:1001 | mpeg2enc --no-constraints -f3 -nn $aflag_m -Ktmpgenc -lh \ -b18000 -V488 -r32 -G18 -q3 -s -o $base.m2v mp2enc -r48000 -b224 < $base.wav -o $base.m2a mplex -f8 -b488 -r23000 $base.m2v $base.m2a -o $base.mpg ;; esac