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

FFmpeg trac at avcodec.org
Wed Oct 11 22:07:22 EEST 2017


#5708: Intermittently, encoding video with h264 Quick Sync can fail with
'EncodeFrameAsync returned -17'
------------------------------------+------------------------------------
             Reporter:  mikes       |                    Owner:
                 Type:  defect      |                   Status:  reopened
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  qsv win     |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by tmm1):

 I did some googling to see how other mfx consumers deal with these errors.

 VLC calls MFXVideoENCODE_Reset() when it receives MFX_ERR_DEVICE_FAILED
 https://github.com/videolan/vlc/blob/d139d48a55fdf1d1a59d354d354f552a589efa25/modules/codec/qsv.c#L716-L718

 QSVEnc calls Close() and Init() again on MFX_ERR_DEVICE_{FAILED,LOST}
 https://github.com/rigaya/QSVEnc/blob/b3b998c81fd2c47fb1e3619e635d6296f29af849/QSVEncC/QSVEncC.cpp#L3511-L3518

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


More information about the FFmpeg-trac mailing list