Intermittently, encoding video with h264 Quick Sync can fail with 'EncodeFrameAsync returned -17'
|Reported by:||mikes||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
When encoding video with the h264 Quick Sync encoder, sometimes an error gets returned that reads "EncodeFrameAsync returned -17".
I believe that -17 is the Intel error code "MFX_ERR_DEVICE_FAILED". I've reproduced the error with many different images sizes, but it was easy enough to reproduce the problem with a 256x256 image size.
The input data is irrelevant, so the test.avi just has green images. I've attached it anyway, so the test can be repeated exactly as I have performed it.
This test was run on my Windows 7 64-bit machine with Quick Sync Hardware Version 5 (Skylake). My Windows 10 64-bit machine with Quick Sync Hardware Version 3 (Haswell) will also fail running this test, but instead of returning the -17 error, it simply hangs.
My test.avi has 1000 frames, and many times the encoding will be successful. You may need to run the test several times before seeing this error.
How to reproduce:
% ffmpeg -i test.avi -pix_fmt nv12 -g 0 -r 30 -b:v 400k -vcodec h264_qsv test_out.avi -report ffmpeg version [From ffmpeg Snapshot last modified time 2016-07-12 19:22] built on July 13, 2016
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Change History (24)
comment:4 by , 7 years ago
|Priority:||normal → important|
|Version:||unspecified → 3.2.1|
comment:6 by , 7 years ago
|Status:||new → closed|
|Version:||3.2.1 → git-master|