See https://trac.ffmpeg.org/wiki/Encode/H.264 and https://trac.ffmpeg.org/ wiki/Encode/H.265 Fixes #1455