[x265] hevc_vaapi, jerky encode

Mani Vannan M. vannan.mani at gmail.com
Fri Oct 21 16:35:57 CEST 2016


Hi

Not sure if this is the place to post regarding an issue with hevc_vaapi,
but since i have absolutely no other headway anywhere and this is driving
me crazy, posting it here.

There is a abnormal behavior when encoding using hevc_vaapi, and has been
posted on https://trac.ffmpeg.org/ticket/5821, i have been trying to look
for an answer for the same all over the net and have not been able to
understand it.

Can somebody please have a look at this and point me in the right direction
please.

The summary of the bug from trac is


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

vainfo

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'.

Thanks

Mani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20161021/9db6993c/attachment.html>


More information about the x265-devel mailing list