-
Notifications
You must be signed in to change notification settings - Fork 156
[Bug]: At some point transcoding some corrupted sources started to cause encode to fail. #553
Description
Describe the bug
Not sure if it is bug, but... Some old corrupted sources i had (for testing purposes), stopped encoding at some point. 2 of these sources just have some corrupted frames and one source have extremely weird "flicker" between interlaced and non-interlaced frames. They came from same source, even if from different files.
Tbh, i was not much interested in sources corrupted frames, as original issue related to those was fixed at some point
AMF: #446
But i still tested third source transcode of which with HW decoder in use produces output that skips encode of about 20 minutes of video track. Just in case something has changed with time (sadly, it did not same as corruption on seek/timeskip with HW decode on source that only containes non-IDR keyframes).
AMF: #458
...
Anyways, different issue related to these sources came up recently (presumably with 25.5.1 driver, aka AMF Runtime 1.4.37?)
Now instead of just affecting output they cause encode to completely fail.
Moreover, while VCEEnc throws out some weird error, TranscodeHW suddenly starts to load CPU until terminal window is closed, despite having no progress.
To Reproduce
Steps to reproduce the behavior:
- Use TranscodeHW (even though issue is not limited to it)
- Most basic command line is enough
%~dp0\TranscodeHW.exe -input %1 -output "%~n1_TranscodeHW_1%~x1" - Use one of these sources.
https://drive.google.com/file/d/1pmUASEYTY-5Xm_Vbp8k9OretFHWsPyzw/view?usp=drive_link
https://drive.google.com/file/d/1wqV-5G8kf9CvgMtuXyjg8p9l8QRnOt58/view?usp=drive_link
Third file (with switching interlaced frames) is bit too large, so i won't apply it as unnecessary for this particular issue.
Setup (please complete the following information):
- OS: Windows 11, 23H2, build 22631.5262
- Driver Version: 25.5.1
- GPU: RX 9070 XT
- Which component has the issue: Decoder? Encoder? Both?
Debug Log (please upload or paste):
2025-05-11 04:01:31.837 3434 [h264_hevc_util] Error: C:\constructicon\builds\gfx\six\25.10\drivers\amf\stable\runtime\src\components\VideoStreamParser\parsers\common\h264_hevc_util.cpp(369):Assertion failed:element=pCurrSlice->start_mb_nr val =4080 out of range(0,4079)
2025-05-11 04:01:31.837 3434 [H264Parser] Error: C:\constructicon\builds\gfx\six\25.10\drivers\amf\stable\runtime\src\components\VideoStreamParser\parsers\h264\H264Parser.cpp(2656):AMF_ERROR 5 : AMF_OUT_OF_RANGE: FirstPartOfSliceHeader() failed
2025-05-11 04:01:31.837 3434 [H264Parser] Error: C:\constructicon\builds\gfx\six\25.10\drivers\amf\stable\runtime\src\components\VideoStreamParser\parsers\h264\H264Parser.cpp(1890):Assertion failed:ProcessSlice() failed
2025-05-11 04:01:31.837 3434 [H264Parser] Error: C:\constructicon\builds\gfx\six\25.10\drivers\amf\stable\runtime\src\components\VideoStreamParser\parsers\h264\H264Parser.cpp(2137):Assertion failed:ret != READ_ERROR
2025-05-11 04:01:31.837 3434 [AMFVideoStreamParserImpl] Error: C:\constructicon\builds\gfx\six\25.10\drivers\amf\stable\runtime\src\components\VideoStreamParser\VideoStreamParserImpl.cpp(201):AMF_ERROR 1 : AMF_FAIL: SubmitInput : m_pVideoParser->ParseBuffer
2025-05-11 04:01:31.838 3434 [AMFDecoderUVDImpl] Error: C:\constructicon\builds\gfx\six\25.10\drivers\amf\stable\runtime\src\components\DecoderUVD\DecoderUVDImpl.cpp(666):AMF_ERROR 1 : AMF_FAIL: SubmitInput() - Parser SubmitInput Failed
SubmitInput() returned error: AMF_FAIL
Expected behavior
I would assume for it to be normal that encode should finish for these sources. (Until it started to fail just some frames were skipped, or distortion was transcoded at corruption locus)