Bug 88856 - Corrupt video when playing back with vaapi
Summary: Corrupt video when playing back with vaapi
Status: RESOLVED NOTOURBUG
Alias: None
Product: libva
Classification: Unclassified
Component: intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: haihao
QA Contact: Sean V Kelley
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-28 22:23 UTC by roberth
Modified: 2015-02-06 01:27 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description roberth 2015-01-28 22:23:32 UTC
When playing back this video- http://kernel.ubuntu.com/~sarvatt/fixed-elementary-plymouth.mkv with vaapi, the video is corrupt. It works fine if vaapi isn't used. The corruptions are the same on ivybridge, baytrail and broadwell machines that i've tested.

Here is a demonstration video of it working, switching to vaapi, then the corruptions. http://youtu.be/0nGBZIc4ohE

System environment:
-- chipset: IVB, BYT, BDW
-- system architecture: 64-bit
-- xf86-video-intel: 2.99.917+git20150127.4bbd1023
-- xserver: 1.15.1
-- mesa: 10.5.0~git20150127.5c83a0d2
-- libdrm: 2.59
-- libva: 1.5.0
-- intel-va-driver: 1.5.0, 1.3.2
-- kernel: 3.19-rc6
-- Linux distribution: Ubuntu 14.04
-- Machine or mobo model: Thinkpad X1 Carbon
-- Display connector: LVDS

Reproducing steps: Play http://kernel.ubuntu.com/~sarvatt/fixed-elementary-plymouth.mkv in vlc with vaapi acceleration enabled
Comment 1 Sean V Kelley 2015-01-29 02:41:52 UTC
Hi,

What Broadwell hardware are you using?

Sean
Comment 2 haihao 2015-01-29 02:46:57 UTC
The profile of the sample video is  High 4:4:4 Predictive and qpprime_y_zero_transform_bypass_flag is 1. However the driver only exports the support for constrained baseline/main/high profile. It would be better to disable vaapi acceleration for such videos in VLC.
Comment 3 Sean V Kelley 2015-01-29 02:53:19 UTC
Yep, the profile is not supported in vaapi...


[seanvk@ashland Downloads] $ mediainfo fixed-elementary-plymouth.mkv 
General
Unique ID                                : 320904362964798927435604263813327211725 (0xF16BEEA41FE1814508F3E8272A49CCCD)
Complete name                            : fixed-elementary-plymouth.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 13.2 MiB
Duration                                 : 20s 266ms
Overall bit rate                         : 5 473 Kbps
Writing application                      : Lavf52.64.2
Writing library                          : Lavf52.64.2

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 4:4:4 Predictive@L3.2
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Codec ID                                 : V_MPEG4/ISO/AVC
Bit rate                                 : 5 364 Kbps
Width                                    : 1 280 pixels
Height                                   : 1 024 pixels
Display aspect ratio                     : 5:4
Frame rate mode                          : Variable
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Writing library                          : x264 core 98 Ubuntu_2:0.98.1653+git88b90d9-3ubuntu1
Encoding settings                        : cabac=0 / ref=1 / deblock=1:0:0 / analyse=0x1:0 / me=dia / subme=0 / psy=0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=0 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc=cqp / mbtree=0 / qp=0
Default                                  : Yes
Forced                                   : No


[seanvk@ashland Downloads] $ mpv fixed-elementary-plymouth.mkv 
Auto-loading profile 'vo.vaapi'
Playing: fixed-elementary-plymouth.mkv
[stream] Video (+) --vid=1 (h264)
.40652.7f86a4219020RACE is on, save log into /tmp/tracelog
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_36
libva info: va_openDriver() returns 0
Trying to use hardware decoding.
[vaapi] Unsupported codec or profile.
[vaapi] Unsupported codec or profile.
[ffmpeg/video] h264: decode_slice_header error
[ffmpeg/video] h264: no frame!
Error while decoding frame!
Error using hardware decoding, falling back to software decoding.
VO: [vaapi] 1280x1024 yuv420p
V: 00:00:20 / 00:00:20 (99%) Dropped: 2


Exiting... (End of file)
[seanvk@ashland Downloads] $
Comment 4 haihao 2015-02-06 01:27:14 UTC
The driver has advertised the capability, and player needs to check the capability first. If the video isn't supported by driver, player can fall back to software decoding.


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.