Weird dxva2 behavior

For the developers that use FFmpeg in their software.
Post Reply
Posts: 1
Joined: Thu Jan 24, 2019 9:48 am

Weird dxva2 behavior

Post by ArnaudGallardo » Thu Jan 24, 2019 10:05 am

Hi all,

I'm trying to read this file using FFMPEG, with dxva2 ON I only get black frames but when I switch it OFF, the correct frame is displayed.

I've narrowed the scope of my problem to this part of dxva2_h264.c :

Code: Select all

if (start_code_size + size > end - current) {
    av_log(avctx, AV_LOG_ERROR, "Failed to build bitstream");
So the IDirectXVideoDecoder::GetBuffer function returns a buffer that is too small for my slice.

I have no idea if this problem is dxva2 related or due to some weird configurations of my h264 encoder.

Do you guys have any hints on how I can fix that so my file can be read with dxva2 ON ?

Best regards,

Post Reply