Opened 6 months ago

Closed 3 months ago

#6990 closed defect (fixed)

Encoding with h264_amf is corrupted when using d3d11va hwaccel and d3d11 as hardware output format

Reported by: jamrial Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: d3d11 amf
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

http://samples.ffmpeg.org/benchmark/testsuite1/matrixbench_mpeg2.mpg

./ffmpeg -hwaccel d3d11va -hwaccel_output_format d3d11 -i matrixbench_mpeg2.mpg -an -c:v h264_amf out.mkv

The above produces a stream with tons of stutter, and a different result each time (varying checksum).
Using nv12 instead as output format fixes it.

I'm using an HD7950 on Windows 10 x64 (version 1709, Fall Creators build), driver version 17.12.1
I don't know if this also happens with other GPU vendors as i can't test, and of course software encoders will not accept d3d11 pixfmt as input.

Change History (3)

comment:1 Changed 6 months ago by jamrial

  • Keywords amf added
  • Summary changed from Encoding is corrupted when using d3d11va hwaccel and d3d11 as hardware output format to Encoding with h264_amf is corrupted when using d3d11va hwaccel and d3d11 as hardware output format

h264_nvenc seems to work fine, so changing this into an AMF bug.

comment:2 Changed 6 months ago by jamrial

  • Reproduced by developer set
  • Status changed from new to open

comment:3 Changed 3 months ago by jamrial

  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.