VADecoder cannot preperly decode VAEncoder output

Open
#852 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Start with the D3D12HelloVAEncode and VADecode samples, then compare how VAEncode writes the bitstream with how VADecode loads VA_H264DEC_BUFFER_INDEX_COMPRESSED_BIT. Check Main.cpp, including the changed window resolution, and reproduce both the unreadable .h264 output and the gibberish decoder display. Done means the encoded output is readable by VLC and decodes correctly in VADecode.

Written by the indexing model from the issue text.

Description

samples

I'm playing around with D3D12HelloVAEncode/VADecode. Both seem to be working without crashes, but whenever I write the encoded bitstream to .h264 file, the VLC reader cannot seem to read it.
Also if I read this bitstream in VAEncode and load the data to the VA_H264DEC_BUFFER_INDEX_COMPRESSED_BIT buffer in VADecode, it just shows me some gibberish on the screen (I changed the window resolution resolution in Main.cpp).
@sivileri attached the image decoder produces on the screen for me.
image

Dominant language
C++
Stars
6.8k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/DirectX-Graphics-Samples

All issues in microsoft/DirectX-Graphics-Samples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.