[FFmpeg-trac] #5708(avcodec:new): Intermittently, encoding video with h264 Quick Sync can fail with 'EncodeFrameAsync returned -17'

FFmpeg trac at avcodec.org
Wed Jul 13 18:25:46 EEST 2016


#5708: Intermittently, encoding video with h264 Quick Sync can fail with
'EncodeFrameAsync returned -17'
---------------------------------+---------------------------------------
             Reporter:  mikes    |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  avcodec  |                  Version:  unspecified
             Keywords:           |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+---------------------------------------
 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.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5708>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list