[FFmpeg-trac] #7839(avcodec:new): QVBR breaks mpeg2_qsv

FFmpeg trac at avcodec.org
Thu Apr 25 11:00:10 EEST 2019


#7839: QVBR breaks mpeg2_qsv
-------------------------------------+-------------------------------------
             Reporter:  atorp        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  qsv          |               Blocked By:
  regression                         |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by lizhong1008):

 Replying to [comment:15 atorp]:
 > Hi lizhong1008,
 >
 > Thank you for your response!
 > The two questions:
 > 1) It's possible to do checks at runtime? Then is possible to execute
 the code without QVBR for mpeg2_qsv when runtime API is 1.11?
 It is possible to check MSDK library version at runtime. But firstly I
 need to root cause.
 It is still unclear to me what is the exact one need to be disable? CO3 or
 QVBR, or must disable all of the two?
 Could you please apply the patch and report back?

 {{{
 diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h
 index f2f4d38503..46db07728d 100644
 --- a/libavcodec/qsvenc.h
 +++ b/libavcodec/qsvenc.h
 @@ -53,13 +53,13 @@
  #define QSV_HAVE_AVBR   QSV_VERSION_ATLEAST(1, 3)
  #define QSV_HAVE_ICQ    QSV_VERSION_ATLEAST(1, 8)
  #define QSV_HAVE_VCM    QSV_VERSION_ATLEAST(1, 8)
 -#define QSV_HAVE_QVBR   QSV_VERSION_ATLEAST(1, 11)
 +#define QSV_HAVE_QVBR   0
  #define QSV_HAVE_MF     0
  #else
  #define QSV_HAVE_AVBR   0
  #define QSV_HAVE_ICQ    QSV_VERSION_ATLEAST(1, 28)
  #define QSV_HAVE_VCM    0
 -#define QSV_HAVE_QVBR   QSV_VERSION_ATLEAST(1, 28)
 +#define QSV_HAVE_QVBR   0
  #define QSV_HAVE_MF     QSV_VERSION_ATLEAST(1, 25)
  #endif
 }}}
 I believe it won't break compile.

 > 2) Wich version of drivers are you using? I use Windows 10 with last
 official driver versions from the Windows Update and the API prints 1.11.
 Which drivers I need to install?

 I think what you need to update is MSDK, not driver. You can get the
 latest version via https://software.intel.com/en-us/media-sdk

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


More information about the FFmpeg-trac mailing list