microsoft / microsoft/DirectX-Graphics-Samples
VADecoder cannot preperly decode VAEncoder output
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 6.8k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100