Random HEVC to x264 transcoding

Searching and doing some tests again in my free time I found this post which is exactly the behaviour i get right now