[FFmpeg-trac] #7650(avcodec:new): FFmpeg MPEG-2 encode fails to "invalid RC mode" when iHD driver is used through VA-API instead of QSV

FFmpeg trac at avcodec.org
Fri Jan 18 03:32:22 EET 2019


#7650: FFmpeg MPEG-2 encode fails to "invalid RC mode" when iHD driver is used
through VA-API instead of QSV
-------------------------------------+-----------------------------------
             Reporter:  eero-t       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avcodec
              Version:  unspecified  |               Resolution:
             Keywords:  vaapi        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-----------------------------------

Comment (by fulinjie):

 Replying to [comment:6 eero-t]:
 > After building latest FFmpeg from git with the above bitrate patch, and
 this:
 > > ​https://patchwork.ffmpeg.org/patch/11770/
 >
 > I get similar SSIM & PSNR values as with QSV, so this looks good.
 >
 > Still get the same warnings, but I guess they can be ignored:
 > {{{
 > [mpeg2_vaapi @ 0x56458668d9c0] Driver does not support some wanted
 packed headers (wanted 0x3, found 0x10).

 Driver only supports VA_ENC_PACKED_HEADER_RAW_DATA for mpeg2 profile
 https://github.com/intel/media-
 driver/blob/2d4ae991d359389b594f6e67080909029640b690/media_driver/linux/common/ddi/media_libva_caps.cpp#L540
 But desired was set to VA_ENC_PACKED_HEADER_SEQUENCE |
 VA_ENC_PACKED_HEADER_SEQUENCE
 I think a patch can be sent to avoid this warning.

 > [mpeg2_vaapi @ 0x56458668d9c0] Sample aspect ratio 10:11 is not
 representable, signalling square pixels instead.
 This is due to unprovided aspected ratio. Maybe could define a new ration
 if not provided like h264 does.

 > [mpeg @ 0x564586689e80] VBV buffer size not set, using default size of
 230KB
 > }}}

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


More information about the FFmpeg-trac mailing list