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

FFmpeg trac at avcodec.org
Wed Apr 24 19:09:22 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 atorp):

 Hi lizhong1008,

 Thank you for your response!

 I do these tests:

 {{{
 ffmpeg-24.exe -y -loglevel verbose -hwaccel qsv \
  -c:v h264_qsv -i "Day-Flight.mpg" \
  -c:v mpeg2_qsv -maxrate 2M test_qvbr-24.mp4

 ffmpeg-25.exe -y -loglevel verbose -hwaccel qsv \
  -c:v h264_qsv -i "Day-Flight.mpg" \
  -c:v mpeg2_qsv -maxrate 2M test_qvbr-25.mp4
 }}}

 Where:
  ffmpeg-24.exe = Zeranoe 2019-01-24 (version N-93020-g3224d6691c)
  ffmpeg-25.exe = Zeranoe 2019-01-25 (version N-93022-g260f1960e7)

 And the new parameter "-maxrate 2M" does nothing. 24 OK, and 25 ERROR!
 Remember that the error is:
 {{{
 [AVHWDeviceContext @ 00000229fab99980] Using D3D9Ex device.
 [AVHWDeviceContext @ 00000229fab99700] Initialize MFX session: API version
 is 1.27, implementation version is 1.11
 [AVHWDeviceContext @ 00000229fab99700] MFX compile/runtime API: 1.27/1.11
 [graph 0 input from stream 0:0 @ 00000229faf87d80] w:1280 h:720 pixfmt:qsv
 tb:1/90000 fr:60/1 sar:0/1 sws_param:flags=2
 [mpeg2_qsv @ 00000229fa9a00c0] Using the variable bitrate (VBR)
 ratecontrol method
 [mpeg2_qsv @ 00000229fa9a00c0] Error initializing the encoder: invalid
 video parameters (-15)
 Error initializing output stream 0:0 -- Error while opening encoder for
 output stream #0:0 - maybe incorrect parameters
 such as bit_rate, rate, width or height
 }}}

 So, the only diffence that I see is this: You use driver with
 implementation 1.27 and I use 1.11.

 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?
 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 hope we can solve this problem.
 Regards.

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


More information about the FFmpeg-trac mailing list