#!/bin/sh # def_interlace=1 def_rescale=1 def_subq=1 help(){ cat </dev/null | yuvdeinterlace | yuvcorrect -T PROGRESSIVE | y4mscaler -O size=1280x720 | y4mtoyuv | x264 --fps 30000/1001 --sar 1:1 --pass 1 --bitrate 8000 --stats ".stats" --level 4.1 --keyint 14 --min-keyint 2 --ref 2 --mixed-refs --bframes 2 --weightb --direct auto --deblock -1:-1 --subme 5 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct $xint_g --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 14475 --vbv-maxrate 24000 --qcomp 0.5 --merange 12 --threads 1 --progress --no-psnr --no-ssim --output $base.264 /dev/stdin 1280x720 --mvrange 511 --aud #mencoder /dev/stdin -nosound $int_f \ # -aspect 16:9 $scale_f \ # -ovc x264 -x264encopts $encopts \ # -of rawvideo -o $base.264