ffmpeg.exe -y -i "{input}" -f wav - | nae.exe -he -br 64000 -ignorelength -if - -of "{input}_temp.m4a" 
ffmpeg.exe -y -i "{input}" -c:v libx264 -preset veryslow -crf 24 -bf 6 -refs 6 -qcomp 0.5 -aq-mode 2 -aq-strength 0.8 -psy-rd 0.3:0 -deblock 1:1 -x264opts min-keyint=1 -vf "scale=1280:720" -an "{input}_temp.m4v"
ffmpeg.exe -y -i "{input}_temp.m4v" -i "{input}_temp.m4a" -map_chapters -1 -c copy "{output}_output.mp4"
