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

FFmpeg trac at avcodec.org
Fri Apr 12 23:24:26 EEST 2019


#7839: QVBR breaks mpeg2_qsv
-----------------------------------+--------------------------------------
             Reporter:  atorp      |                     Type:  defect
               Status:  new        |                 Priority:  normal
            Component:  avcodec    |                  Version:  git-master
             Keywords:  mpeg2_qsv  |               Blocked By:
             Blocking:             |  Reproduced by developer:  0
Analyzed by developer:  0          |
-----------------------------------+--------------------------------------
 Summary of the bug: "mpeg2_qsv" is unusable

 How to reproduce:
 {{{
 % ffmpeg.exe -y -loglevel debug -hwaccel qsv -i file.mpg \
  -c:v mpeg2_qsv test_qvbr.mp4

 OK:   ffmpeg-20190124-3224d66-win64-static-zeranoe.exe
 FAIL: ffmpeg-20190125-260f196-win64-static-zeranoe.exe
 }}}

 Up to the 2019-01-24 the encoder "mpeg2_qsv" works without troubles.
 From the 2019-01-25 it fails with this error:

 {{{
 [mpeg2_qsv @ 000001c07a8fcd00] Initialized an internal MFX session using
 hardware accelerated implementation
 [mpeg2_qsv @ 000001c07a8fcd00] Using the average variable bitrate (AVBR)
 ratecontrol method
 [mpeg2_qsv @ 000001c07a8fcd00] 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
 }}}

 I suspect the problem is with this patch: "lavc/qsvenc: enable QVBR mode"
 https://github.com/FFmpeg/FFmpeg/commit/74cf2dc3ac405c5e55b7ecd4d17b40e26d59eb84

 as it touches the ''generic'' "qsvenc" used by "h264_enc" (without
 troubles with it) and the "mpeg2_enc" (that fails).

 Please fix the bug!

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


More information about the FFmpeg-trac mailing list