Black Screen - openglvaapi - HD5500 Broadwell

For discussion of topics specific to MythTV on linux
Post Reply
martyg
Newcomer
Posts: 13
Joined: Fri Mar 13, 2015 2:13 pm
United States of America

Black Screen - openglvaapi - HD5500 Broadwell

Post by martyg » Sun Apr 05, 2015 4:26 pm

I am trying to turn up VAAPI playback on my new laptop with Intel Broadwell GPU.

Everything works fine when I set up Decoder/Renderer to ffmpeg/opengl (Standard/opengl/openlg2)
When I go to vaapi/openglvaapi (vaapi/openglvaapi/opengl2) video playback is blacked out.

I have double-checked "Paint Engine" == OpenGL

This is on a Arch Linux system.
I have double-checked my drivers are OK, but here they are anyway:

Code: Select all

linux 3.19.2-1
mesa 10.5.2-1
xf86-video-intel 2.99.917-4
libdrm 2.4.60-2
cairo 1.14.2-1
intel-gpu-tools 1.10-2
libva 1.5.0-1
libva-intel-driver 1.5.0-1
libva-mesa-driver 10.5.2-1
libva-vdpau-driver 0.7.4-2
Here is my vainfo:

Code: Select all

$ vainfo
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.37 (libva 1.5.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Broadwell - 1.5.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
When I start VAAPI playback, I get the following logs:

Code: Select all

2015-04-05 08:37:32.754889 I  TV: Creating TV object
2015-04-05 08:37:33.002841 N  Suspending idle timer
2015-04-05 08:37:33.056893 I  TV: Created TvPlayWindow.
2015-04-05 08:37:33.130595 I  TV: Attempting to change from None to WatchingPreRecorded
2015-04-05 08:37:33.555936 N  AudioPlayer: Enabling Audio
2015-04-05 08:37:34.079501 I  AFD: codec AC3 has 6 channels
2015-04-05 08:37:34.080072 I  AFD: Opened codec 0x154c3080, id(AC3) type(Audio)
2015-04-05 08:37:34.080488 I  AFD: codec AC3 has 2 channels
2015-04-05 08:37:34.080954 I  AFD: Opened codec 0x154bd940, id(AC3) type(Audio)
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva info: va_openDriver() returns 0
2015-04-05 08:37:34.105056 I  VAAPI: Version: 0.37
2015-04-05 08:37:34.105063 I  VAAPI: Driver : Intel i965 driver for Intel(R) Broadwell - 1.5.0
2015-04-05 08:37:34.105078 I  VAAPI: Profile: MPEG2Simple Entrypoints: VLD EncSlice (UNSUPPORTED) 
2015-04-05 08:37:34.105082 I  VAAPI: Profile: MPEG2Main Entrypoints: VLD EncSlice (UNSUPPORTED) 
2015-04-05 08:37:34.105085 I  VAAPI: Profile: Unknown Entrypoints: VLD EncSlice (UNSUPPORTED) 
2015-04-05 08:37:34.105088 I  VAAPI: Profile: H264Main Entrypoints: VLD EncSlice (UNSUPPORTED) 
2015-04-05 08:37:34.105092 I  VAAPI: Profile: H264High Entrypoints: VLD EncSlice (UNSUPPORTED) 
2015-04-05 08:37:34.105095 I  VAAPI: Profile: Unknown Entrypoints: VLD EncSlice (UNSUPPORTED) 
2015-04-05 08:37:34.105098 I  VAAPI: Profile: Unknown Entrypoints: VLD EncSlice (UNSUPPORTED) 
2015-04-05 08:37:34.105101 I  VAAPI: Profile: VC1Simple Entrypoints: VLD 
2015-04-05 08:37:34.105104 I  VAAPI: Profile: VC1Main Entrypoints: VLD 
2015-04-05 08:37:34.105107 I  VAAPI: Profile: VC1Advanced Entrypoints: VLD 
2015-04-05 08:37:34.105110 I  VAAPI: Profile: Unknown Entrypoints: Unknown
2015-04-05 08:37:34.105113 I  VAAPI: Profile: Unknown Entrypoints: VLD 
2015-04-05 08:37:34.105116 I  VAAPI: Profile: Unknown Entrypoints: VLD 
2015-04-05 08:37:34.105119 I  VAAPI: Profile: Unknown Entrypoints: VLD EncSlice (UNSUPPORTED) 
2015-04-05 08:37:34.105122 I  VAAPI: Profile: Unknown Entrypoints: VLD EncSlice (UNSUPPORTED) 
2015-04-05 08:37:34.105480 I  AFD: Opened codec 0x154c28c0, id(MPEG2VIDEO) type(Video)
2015-04-05 08:37:34.114677 I  AOBase: Opening audio device 'front:CARD=PCH,DEV=0' ch 2(6) sr 48000 sf signed 32 bit reenc 0
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_37
libva info: va_openDriver() returns 0
2015-04-05 08:37:34.586881 I  GLVid: Using raw RGBA input textures.
2015-04-05 08:37:34.879661 I  Player(0): Video timing method: DRM
2015-04-05 08:37:34.896771 I  TV: Created player.
2015-04-05 08:37:34.896828 I  TV: Changing from None to WatchingPreRecorded
2015-04-05 08:37:34.914652 I  TV: Main UI disabled.
2015-04-05 08:37:34.914711 I  TV: Entering main playback loop.
2015-04-05 08:37:35.062548 I  ScreenSaverX11Private: DPMS Deactivated 1
Am I missing something? Anyone else have this working? Thanks!

User avatar
stuartm
Developer
Posts: 129
Joined: Wed Feb 05, 2014 5:17 pm
Great Britain

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by stuartm » Sun Apr 05, 2015 8:10 pm

This was a known bug that was fixed just over a week ago in the development version, the fix should be backported to 0.27-fixes soon.

martyg
Newcomer
Posts: 13
Joined: Fri Mar 13, 2015 2:13 pm
United States of America

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by martyg » Sun Apr 05, 2015 8:26 pm

Splendid! I'll keep an eye on the commits into git. Thanks for the quick response.

fphillips
Junior
Posts: 23
Joined: Mon Mar 03, 2014 3:17 am
Location: Austin, TX
United States of America

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by fphillips » Mon Apr 06, 2015 4:40 pm

I believe these are the fixes Stuart was talking about: https://code.mythtv.org/trac/ticket/12421
They are in devel/vaapifix and haven't been merged to master yet.
https://github.com/MythTV/mythtv/compar ... l/vaapifix

User avatar
stuarta
Developer
Posts: 217
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by stuarta » Thu Apr 09, 2015 7:22 pm

Correct, they haven't been merged into master yet. No reason not to so i'll get onto that.

Cheers
Stuart

barryq
Newcomer
Posts: 2
Joined: Thu Apr 30, 2015 5:14 pm
United States of America

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by barryq » Thu Apr 30, 2015 5:17 pm

Did this get merged in to master or fixes branch?

Does anybody know if there are any packagers building the fixes branch. ATRPMs used to but hasn't been updated in quite some time.

User avatar
stuarta
Developer
Posts: 217
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by stuarta » Sat May 02, 2015 7:34 pm

Only into master. Do you need this in fixes/0.27 as well?

martyg
Newcomer
Posts: 13
Joined: Fri Mar 13, 2015 2:13 pm
United States of America

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by martyg » Sun May 03, 2015 12:03 am

Yes, 0.27 would be best. Thank you.

User avatar
stuarta
Developer
Posts: 217
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by stuarta » Mon May 04, 2015 9:06 pm

I have merged them to devel/027candidates. Are you able to build and test that branch from git?

Regards
Stuart

martyg
Newcomer
Posts: 13
Joined: Fri Mar 13, 2015 2:13 pm
United States of America

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by martyg » Tue May 05, 2015 2:58 am

I was able to build and test origin/devel/027candidates on Arch linux x64.

Everything looks good with vaapi playback on my end.
Suggest this be merged into fixes/0.27 so the distro maintainers pick up this fix.

Enclosing my MAKEPKG file in case another Arch user wants to have a go at it.
Attachments
PKGBUILD.txt
(2.47 KiB) Downloaded 48 times

User avatar
stuarta
Developer
Posts: 217
Joined: Wed Feb 05, 2014 5:13 pm
Great Britain

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by stuarta » Tue May 05, 2015 9:31 am

It's been pushed to fxies/0.27

Regards
Stuart

barryq
Newcomer
Posts: 2
Joined: Thu Apr 30, 2015 5:14 pm
United States of America

Re: Black Screen - openglvaapi - HD5500 Broadwell

Post by barryq » Fri May 08, 2015 9:54 pm

Looks like RPM fusion builds from fixes, and is updated about once a month. Should be due for a new set of RPMs any day now.

Post Reply