[FFmpeg-devel] [PATCH] libavcodec/qsvenc_hevc: correction for QSV HEVC default plugin selection on Windows

Landgraph me at landgraph.ru
Sat Oct 6 09:21:31 EEST 2018


1. Old logic meaned: everywhere, except Windows, ffmpeg has to use HW 
acceleration, but on Windows ffmpeg has to use (unavailable) software 
encode by default
2. Software encode is available only if you provide corresponding 
software MediaSDK library, which isn't provided with ffmpeg. More 
information could be found in 
https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/samples/readme-encode_linux.pdf
3. HW encode is available on Windows in the driver by default
---
  libavcodec/qsvenc_hevc.c | 4 ----
  1 file changed, 4 deletions(-)

diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
index 4339b316a3..e7ca27d49f 100644
--- a/libavcodec/qsvenc_hevc.c
+++ b/libavcodec/qsvenc_hevc.c
@@ -217,11 +217,7 @@ static av_cold int qsv_enc_close(AVCodecContext *avctx)
      return ff_qsv_enc_close(avctx, &q->qsv);
  }

-#if defined(_WIN32)
-#define LOAD_PLUGIN_DEFAULT LOAD_PLUGIN_HEVC_SW
-#else
  #define LOAD_PLUGIN_DEFAULT LOAD_PLUGIN_HEVC_HW
-#endif

  #define OFFSET(x) offsetof(QSVHEVCEncContext, x)
  #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
-- 
2.14.1.windows.1




More information about the ffmpeg-devel mailing list