#
FFMPEG="${HOME}/ffmpeg-3.0.2/ffmpeg"
INPUT_FN="$1"
OUTPUT_FN="$2"
shift 2
time "$FFMPEG" -strict -2 -i "$INPUT_FN" "$@" -c:v nvenc_h264 -preset slow -b:v 2000k -ac 2 -c:a libmp3lame -b:a 128k -c:s copy "$OUTPUT_FN"
This is a gist of ideas, notes etc. Some of them will be used for more detailed articles in my other blog.