[FFmpeg-trac] #5821(avcodec:new): jerky result when using hevc_vaapi encoding on Skylake cpu

FFmpeg trac at avcodec.org
Mon Sep 5 06:55:53 EEST 2016

#5821: jerky result when using hevc_vaapi encoding on Skylake cpu
             Reporter:  trivita      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avcodec      |                  Version:  git-
             Keywords:  h265, hevc,  |  master
  vaapi                              |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 Summary of the bug:
 How to reproduce:
 ffmpeg -vaapi_device /dev/dri/renderD128 -i x264-8bit-560K.mp4 -vf
 'format=nv12,hwupload' -c:v hevc_vaapi o.mp4

 ffmpeg built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609

 uname -a
 Linux trivita-ThinkPad-T460 4.8.0-040800rc3-generic #201608212032 SMP Mon
 Aug 22 00:34:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

 libva info: VA-API version 0.39.2
 libva info: va_getDriverName() returns 0
 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
 libva info: Found init function __vaDriverInit_0_39
 libva info: va_openDriver() returns 0
 vainfo: VA-API version: 0.39 (libva 1.7.1)
 vainfo: Driver version: Intel i965 driver for Intel(R) Skylake - 1.7.1
 vainfo: Supported profile and entrypoints
       VAProfileMPEG2Simple            : VAEntrypointVLD
       VAProfileMPEG2Simple            : VAEntrypointEncSlice
       VAProfileMPEG2Main              : VAEntrypointVLD
       VAProfileMPEG2Main              : VAEntrypointEncSlice
       VAProfileH264ConstrainedBaseline: VAEntrypointVLD
       VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
       VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
       VAProfileH264Main               : VAEntrypointVLD
       VAProfileH264Main               : VAEntrypointEncSlice
       VAProfileH264Main               : VAEntrypointEncSliceLP
       VAProfileH264High               : VAEntrypointVLD
       VAProfileH264High               : VAEntrypointEncSlice
       VAProfileH264High               : VAEntrypointEncSliceLP
       VAProfileH264MultiviewHigh      : VAEntrypointVLD
       VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
       VAProfileH264StereoHigh         : VAEntrypointVLD
       VAProfileH264StereoHigh         : VAEntrypointEncSlice
       VAProfileVC1Simple              : VAEntrypointVLD
       VAProfileVC1Main                : VAEntrypointVLD
       VAProfileVC1Advanced            : VAEntrypointVLD
       VAProfileNone                   : VAEntrypointVideoProc
       VAProfileJPEGBaseline           : VAEntrypointVLD
       VAProfileJPEGBaseline           : VAEntrypointEncPicture
       VAProfileVP8Version0_3          : VAEntrypointVLD
       VAProfileVP8Version0_3          : VAEntrypointEncSlice
       VAProfileHEVCMain               : VAEntrypointVLD
       VAProfileHEVCMain               : VAEntrypointEncSlice

 no problem using h264_vaapi
 no problem hardware decoding hevc
 no problem using software encoding libx265

 the whole encoding process runs perfectly smooth, no warnings or errors.
 but the resulting video has problem. like frames go back and forth from
 time to time. i call it 'jerky'.

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

More information about the FFmpeg-trac mailing list