Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- target = $(shell echo {0{1..9},{10..26}}.mkv)
- x264s = \
- --cabac --ref=4 --deblock=-2:-2 --partitions=all --me=umh --subme=9 \
- --psy --psy-rd=1.00:0.00 --mixed-ref --merange=24 \
- --trellis=2 --8x8dct --fast-pskip --direct=auto \
- --chroma-qp-offset=-2 --threads=12 --no-dct-decimate --no-sliced-threads --nr=0 \
- --no-interlaced --bframes=8 --chroma-qp-offset=0 \
- --b-pyramid=2 --b-adapt=2 --b-bias=0 --weightb --no-dct-decimate \
- --weightp=2 --keyint=250 --min-keyint=23 --scenecut=40 \
- --rc-lookahead=40 --no-mbtree --qcomp=0.60 \
- --qpmin=9 --qpmax=30 --crf-max=30 --qpstep=4 \
- --vbv-maxrate=40000 --vbv-bufsize=62500 --nal-hrd=none \
- --ipratio=1.40 --pbratio=1.30 --aq-strength=0.90
- all: $(target)
- $(target): %.mkv: enc\\%.264 aud\\%.ac3
- mkvmerge "$<" "aud\\$*.ac3" -o "$@"
- enc\\%.264: enc\%.l.264
- x264.64 "$<" --output "$@" --crf=16.5 $(x264s)
- enc\\%.l.264 : scripts\%.avs
- avs2yuv "$<" - | x264 - --demuxer y4m --qp 0 -o "$@"
- aud\\%.ac3: audio
- audio:
- aud\aenc.bat
- echo 1 > audio
Add Comment
Please, Sign In to add comment