Video_Codec_SDK_11.0.10 sample program AppEncD3D11

when i try to encode sample video (https://www.demolandia.net/downloads.html?id=5750575) in hevc the appencd3d11 encode only 23 frame and the output is corrupt

What configuration should I use?
Do you have any advice?
thank you