Bug 94978 - [SNB] Scaling in VLC 2.2.2 does not work with Linux 4.6-rc2
Summary: [SNB] Scaling in VLC 2.2.2 does not work with Linux 4.6-rc2
Status: RESOLVED WORKSFORME
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: 2016-04-17 09:52 UTC by Martin Steigerwald
Modified: 2016-05-21 15:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Martin Steigerwald 2016-04-17 09:52:43 UTC
Yesterday I took more than one hour to persuade my X86_64 Debian GNU/Linux Sid/Experimental system to play back a DVD. VLC 2.2.2 on that machine didn´t scale the video to the screen size. Also any manual zoom options did not have any effect.

After trying a bunch of other media players which have broken DVD menu support or other serious issues, I finally rebooted into a 4.5 kernel and there scaling in VLC 2.2.2 worked out of the box and we were finally able to watch the movie.

martin@merkaba:~> apt-show-versions | egrep "libva-|libva1|va-driver"
i965-va-driver:amd64/sid 1.7.0-1 uptodate
i965-va-driver:i386/sid 1.7.0-1 uptodate
libva-drm1:amd64/sid 1.7.0-1 uptodate
libva-drm1:i386 not installed
libva-glx1:amd64/sid 1.7.0-1 uptodate
libva-glx1:i386 not installed
libva-wayland1:amd64/sid 1.7.0-1 uptodate
libva-wayland1:i386 not installed
libva-x11-1:amd64/sid 1.7.0-1 uptodate
libva-x11-1:i386/sid 1.7.0-1 uptodate
libva1:amd64/sid 1.7.0-1 uptodate
libva1:i386/sid 1.7.0-1 uptodate
va-driver-all:amd64 not installed
va-driver-all:i386/sid 1.7.0-1 uptodate
vdpau-va-driver:amd64 not installed
vdpau-va-driver:i386/sid 0.7.4-4 uptodate

This happened on ThinkPad T520 on internal and external display.

martin@merkaba:~> phoronix-test-suite system-info

Phoronix Test Suite v5.2.1
System Information

Hardware:
Processor: Intel Core i5-2520M @ 3.20GHz (4 Cores), Motherboard: LENOVO 42433WG, Chipset: Intel 2nd Generation Core Family DRAM, Memory: 16384MB, Disk: 300GB INTEL SSDSA2CW30 + 480GB Crucial_CT480M50, Graphics: Intel HD 3000 (1300MHz), Audio: Conexant CX20590, Monitor: P24T-7 LED, Network: Intel 82579LM Gigabit Connection + Intel Centrino Advanced-N 6205

Software:
OS: Debian unstable, Kernel: 4.5.0-tp520-btrfstrim+ (x86_64), Desktop: KDE Frameworks 5, Display Server: X Server 1.18.3, Display Driver: intel 2.99.917, OpenGL: 3.3 Mesa 11.1.2, Compiler: GCC 5.3.1 20160409, File-System: btrfs, Screen Resolution: 3840x1080

Kernels are both self-compiled. I can attach config if needed.
Comment 1 Martin Steigerwald 2016-04-23 08:35:38 UTC
Any idea about this one? Thanks, Martin
Comment 2 Martin Steigerwald 2016-04-23 08:39:09 UTC
Hmmm, just found vainfo command, maybe the information in there help:

# vainfo
libva info: VA-API version 0.39.0
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.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 1.7.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
Comment 3 haihao 2016-04-27 02:00:43 UTC
Do you mean these scaling in your VLC work fine with a 4.5 kernel ? If so,  I don't think it is libva issue. It would be better to check what is changed in other components. 

BTW are you sure scaling in VLC is done by libva? I know some players just use libva for HW accelerated decoding.
Comment 4 Martin Steigerwald 2016-04-29 17:06:49 UTC
(In reply to haihao from comment #3)
> Do you mean these scaling in your VLC work fine with a 4.5 kernel ? If so, 
> I don't think it is libva issue. It would be better to check what is changed
> in other components.

Well it could be something in the 4.6-rc2 kernel.

> BTW are you sure scaling in VLC is done by libva? I know some players just
> use libva for HW accelerated decoding.

I am not sure. I wondered whether to report this on bugzilla.kernel.org or to LKML and intel-gfx-ml, but then I thought it likely would use hardware accelerated video and thus reported it here.

Where do you suggest to report it? Thank you, Martin
Comment 5 Martin Steigerwald 2016-05-21 15:44:15 UTC
With 4.6 kernel (as released by Linus), vlc 2.2.3-1 and libva 1.7.0-2 scaling to fullscreen works properly again.

I see nothing obvious in Debian changelogs of vlc and libva, so… it might have been the kernel. Anyway, closing. Thanks, Martin


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.