[FFmpeg-trac] #5742(avcodec:new): h264_vaapi encoding with distorded images in result

FFmpeg trac at avcodec.org
Thu Jul 28 02:51:14 EEST 2016

#5742: h264_vaapi encoding with distorded images in result
             Reporter:  lvml        |                     Type:  defect
               Status:  new         |                 Priority:  normal
            Component:  avcodec     |                  Version:  git-master
             Keywords:  h264_vaapi  |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
 Summary of the bug:

 When encoding high quality 4k video files (from raw camera material) I
 encounter image corruptions after the first few I-frames in the output.

 How to reproduce:

 ffmpeg -vaapi_device /dev/dri/renderD128 -i some_4k_video.mp4 -vf
 'format=nv12,hwupload' -f matroska -qp 12 -vcodec h264_vaapi output.mkv

 Applying the patch from
 to the current ffmpeg git master fixed the problem for me - please
 consider something like this for merging.

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

More information about the FFmpeg-trac mailing list