Skip to content

[BUG] H264 High 444 encode test produces wrong output #231

Description

@crmurillo

Describe the bug

The test encode_h264_high444_profile is reported as Not Supported using the main branch.
If the test is executed using #171, encoding finishes without errors but the output is corrupted (green artifacts at the bottom of each frame).

Additionally, in the setup were the tests are executed, vulkaninfo advertises the following only:

placeholder = H.264 Encode (4:4:4 8-bit) High 4:4:4 Predictive

There is no decode profile that can be used, which causes VVS to flag the test as failed when the decoder validation is enabled:

   --- Decoder validation output (last 10 lines) ---
   | status: NOT_SUPPORTED, exit code: 69
   | 	Codec        : AVC/H.264
   | 	Frame rate   : 30000/1001 = 29.97 fps
   | 	Sequence     : Progressive
   | 	Coded size   : [352, 288]
   | 	Display area : [0, 0, 352, 288]
   | 	Chroma       : YCbCr 444
   | 	Bit depth    : 8
   | Video Decoding Params:
   | 	Num Surfaces : 15
   | 	Resize       : 352 x 288
   | ERROR: Input is not supported. GetVideoCapabilities() result: 0xc464dc25
   | StartVideoSequence: could not get video capabilities (VkResult -1000023003)
   | Parser: end of Video Stream with status  -3
   | ERROR: decoder reported unsupported video configuration (VkResult -1000023003)
   --- End of decoder validation output ---

The validation error is misleading, the hardware can't decode the file because it doesn't have the capabilities, it does not mean there was an error decoding. Addressed in #232.

Setup

Expected Behavior

When the hardware has the required capabilities, the test encode_h264_high444_profile finishes successfully and the resulted video does not contain any artifacts.

Observed Behavior

Encoding finishes successfully but the generated video is corrupted (green artifacts at the bottom).

Steps to Reproduce

./tests/vvs_test_runner.py -t encode_h264_high444_profile

Screenshots

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions