Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: The AMF Decoder Flush method does not flush the decoder completely #522

Open
actus-reus opened this issue Dec 18, 2024 · 0 comments
Labels

Comments

@actus-reus
Copy link

Describe the bug
Decoding artefacts occur (randomly) at the beginning of a seek although the decoder has been drained and subsequently flushed. (When seeking to new position, a "Drain" is called followed by QueryOutputs until EOF. Then eventually a Flush is called.)

Output of the decoder have been dumped to files and artefacts are already present.

The first I-Frame does not present artefacts but subsequent pictures (Ps & Bs) are. Artefacts on Ps and Bs clearly shows portion of pictures/packets that had been pushed to the decoder BEFORE the drain/flush as if the decoder had retained some internal buffers despite the Flush.

IF the call to "Flush" is followed by a "ReInit" (everything else kept the same), the artefacts do not appear anymore. It therefore seems that the Flush is sometimes not complete.

To Reproduce
Occurs randomly but easy to reproduce with long GOP IBBP streams and rapid seek changes.

Setup (please complete the following information):
OS: Windows 10
Driver Version: 32.0.12019.1028 & 32.12033.1030
GPU: RX 7600
Which component has the issue: AMF Decoder

Debug Log (please upload or paste):

Expected behavior
No decoding artefacts.

Screenshots
In the attached archive file, img_39_xx and img_40_xx are decoder outputs before the seek while subsequent indices are decoder outputs after the seek (i.e. after a drain and a flush of the decoder). img_41_xx is the I-frame that is correctly decoded. Subsequent images are Ps and Bs that clearly show artefacts coming from pictures before the flush.
Archive.zip

Additional context
Add any other context about the problem here.

@actus-reus actus-reus added the bug label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant