Bug 85262

Summary: [SNB|IVB|BYT|HSW|BDW|BSW][Media][Encode]garbage on screen when playing 4k video file that encoded by avcenc
Product: libva Reporter: zhixinx.liu <zhixinx.liu>
Component: intelAssignee: haihao <haihao.xiang>
Status: RESOLVED FIXED QA Contact: Sean V Kelley <seanvk>
Severity: normal    
Priority: medium CC: focus.luo, zhixinx.liu
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description zhixinx.liu 2014-10-21 01:30:16 UTC
playing 4k video file get garbage data on screen. and the 4k video file was generated by avcenc.
Not regression issue, even old version can reproduce this issue.

Reproduce Step:
1.run command "/opt/X11R7/bin/avcenc 3840 2160 /home/PnP_Stream/4k_2013.yuv 4k_2013_avc.h264 qp=30 mode=2" to get a 4k video h264 file.
2.run command "mplayer -vo vaapi -va vaapi ./4k_2013_avc.h264 -fps 30" to play video file.
3.you can see garbage on screen

using gst-launch-1.0 cannot find this issue. command:
gst-launch-1.0 -v filesrc location=/home/PnP_Stream/4k_2013.yuv ! videoparse format=i420 width=3840 height=2160 !  vaapiencode_h264 rate-control=cqp keyframe-period=30 max-bframes=2 init-qp=30 cabac=true ! qtmux faststart=true ! filesink location=./4k_2013.264
Comment 1 zhixinx.liu 2014-10-28 05:58:26 UTC
using libyami encode tool also cannot reproduce this issue.

test command:
yamiencode -i /home/PnP_Stream/4k_2013.yuv -W 3840 -H 2160 -o 4k.264 -s i420
Comment 2 haihao 2015-11-23 17:03:30 UTC
cases issue. The issue was fixed on staging branch years ago and was cherry-picked to master branch this yes. 

commit 6712547f112e008335e637d009d714bc7debab79
Author: Xiang, Haihao <haihao.xiang@intel.com>
Date:   Tue Sep 10 12:22:39 2013 +0800

    avcenc: support large source file

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.