rendered paste bodyMain encode script:
#!/bin/bash
eval ~/repositories/jpcrr/streamtools/dumpconvert.exe --video-width=$2 --video-height=$3 --video-framerate=auto --output-x264=${1}.video.mkv,crf=22,fps=60,threads=3,keyint=300,ref=15,no-fast-pskip,bframes=6,b-adapt=2,mbtree,weightb,direct=auto,subme=10,trellis=2,partitions=all,me=esa,merange=64,8x8dct,no-dct-decimate --output-oggenc=${1}.sound.ogg,quality=3 --output-timecodev2=${1}.timings.txt /scratch/logo1.jmd ${1}.jmd $(gensubtitles $4 $5 $6) --video-max-dedup=29
mkvmerge --timecodes 1:${1}.timings.txt --aspect-ratio 1:4/3 -o ${1}.mkv ${1}.video.mkv ${1}.sound.ogg
rm -f ${1}.timings.txt
rm -f ${1}.video.mkv
rm -f ${1}.sound.ogg
gensubtitles:
#!/bin/bash
echo "--video-hardsub-font=/usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf"
echo "--video-hardsub-halo=2"
echo "--video-hardsub-size=24"
echo "--video-hardsub-ypos=${1}"
echo "--video-hardsub-text=${2},\\\\G\ in\ \\\\L\\\\nBy\ \\\\A\\\\nRerecords:\ \\\\\R"
echo "--video-hardsub-text=${3},This\ is\ tool-assisted\ recording.\\\\nFor\ details,\ visit\ http://TASVideos.org/"