GPUOpen-LibrariesAndSDKs / AMF

The Advanced Media Framework (AMF) SDK provides developers with optimal access to AMD devices for multimedia processing
Other
596 stars 148 forks source link

[Bug]: Encoder crashes when `MOTION_HALF_PIXEL` is set to false #414

Open RFCArrow opened 11 months ago

RFCArrow commented 11 months ago

Describe the bug When encoding a video while MOTION_HALF_PIXEL is set to false, if MOTION_QUARTERPIXEL is default a crash occurs. This effect has been replicated on both Linux/Vulkan and Windows/DX11. On Linux, this configuration caused X to crash and logs the user out. On Windows, the executable crashes, causes visual artefacts in the GUI, and AMD Bug Report Tool popup appears. Note that if MOTION_QUARTERPIXEL is also set to false, then the crash does not occur.

To Reproduce Steps to reproduce the behavior:

  1. Build the AMF TranscodeHW sample.
  2. Run with -WIDTH 1920 -HEIGHT 1080 -INPUT input_1920x1080_8bit_420p.yuv -OUTPUT output.h264 -HalfPixel false -TRACE_LEVEL 4
  3. Observe the crash

Setup

Debug Log Attached here: amf_half_pixel_trace.log

Expected behavior No crash occurs. Encode completes successfully

rhutsAMD commented 3 months ago

If MOTION_HALF_PIXEL is disabled, then MOTION_QUARTERPIXEL must also be disabled. A guard will be added against this condition in a future driver release.

For now, please disable MOTION_QUARTERPIXEL by adding “-QuarterPixel false” to your command line arguments.

TranscodeHW.exe -WIDTH 1920 -HEIGHT 1080 -INPUT input_1920x1080_8bit420p.yuv -OUTPUT output.h264 -HalfPixel false **–QuarterPixel false_** -TRACE_LEVEL 4

rhutsAMD commented 1 month ago

The new check for the invalid setting combination has been added and will catch the invalid combination starting in a future driver release.

We will notify you once the driver containing the fix has been publicly released.