Call for testing: Video playback in 18.04

I realized that afterwards… vainfo is failing so early that no player will even be using VA-API.

@tien-hing, please log a bug if you continue to have problems with video applications. You can do so by running:

ubuntu-bug totem

lubuntu 18.04 in a REALLY cheap exo notebook (the first in YEARS to have problems with linux).

Not sure how to know if using X or Wayland.
Oh, and no sound neither.

mpv not working (black display)
gnome-mpv (as expected) not working
vlc working
firefox keeps showing wait spin
chromium plays few seconds and then the wait spin

inxi:
CPU~Quad core Intel Atom x5-Z8350 (-MCP-) speed/max~480/1920 MHz Kernel~4.15.0-21-generic x86_64 Up~29 min Mem~1075.9/1891.8MB HDD~NA(-) Procs~165 Client~Shell inxi~2.3.56

inxi -G:
Graphics: Card: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers
Display Server: X.Org 1.19.6 drivers: modesetting (unloaded: fbdev,vesa) Resolution: 1366x768@60.00hz
OpenGL: renderer: Mesa DRI Intel HD Graphics (Cherrytrail) version: 4.5 Mesa 18.0.0-rc5

vainfo:
libva info: VA-API version 1.1.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_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel® CherryView - 2.1.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
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD

hey hello i have same gpu with you but only have
Screenshot from 2018-05-20 00-38-43
how can i have VAProfileH264 encoder
i spend days about it every help is important :frowning:

CPU: AMD® Phenom™ ii x6 1100t processor × 6
GPU: AMD Radeon R7 370

my vdpauinfo output Screenshot from 2018-05-20 00-53-52

how can i enable h264 ? :frowning:

I install the pkgs with a little trouble: no change
Then I remove que gstreamer package: well… now the browsers show a little more seconds.
I suspect that after all I did before checking here (including upgrading with proposed repositories) this workarond was destined to fail.
I’ll install from scratch (sigh) and try again.
Oh, and still no sound.

I have answered your query in https://community.ubuntu.com/t/h264-main-encoder/6027

1 Like

Please log separate bugs for each of the problems you experience.

You can do that by running:

ubuntu-bug PACKAGENAME

or if that doesn’t work then go to: https://bugs.launchpad.net/ubuntu/+filebug

I’m using
"Intel® Core™ i7 CPU L 640 @ 2.13GHz × 4 "
Video playing perfectly in VLC or any other player but when I increase playing speed to x2 video stuttering … Voice quality remain OK.

Any help please??

Sounds like you should log a bug, by running:

ubuntu-bug vlc

We don’t recommend using VLC because it seems to lack usable hardware acceleration. But there is an active VLC community that can help you.

18.04 / Xorg / Totem / I7-2630

Having video lag in any video that I play from my local machine, doesn’t seem to matter what format video - lag is random (no noticable pattern to when it occurs in the video). Sound for the video I am playing continues normally. I have no problems playing video streamed from online (such as Youtube) regardless of whether in Firefox or Chrome.

Clean install of 18.04 (not an upgrade). Problem does not occur in 17.10 (installed in separate partition).

tracy@tracy-hp:~$ vainfo
libva info: VA-API version 1.1.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_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 2.1.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

tracy@tracy-hp:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 42
Model name: Intel(R) Core™ i7-2630QM CPU @ 2.00GHz
Stepping: 7
CPU MHz: 820.902
CPU max MHz: 2900.0000
CPU min MHz: 800.0000
BogoMIPS: 3990.94
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 6144K
NUMA node0 CPU(s): 0-7
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti tpr_shadow vnmi flexpriority ept vpid xsaveopt dtherm ida arat pln pts

Please try playing the video with mpv instead. Regardless of whether that improves the situation, please also log a bug by running:

ubuntu-bug totem

and include graphics hardware details with output from:

lspci -k

Also be sure to avoid other causes of lag like Bluetooth audio. Use wired audio instead.

I will file the bug report as requested.

It is worth noting that this problem has gotten somewhat better since I installed the synaptic driver for my touchpad (I have no idea why changing from libinput to synaptic would affect this problem - I simply note the fact). Prior to installing synaptic, I would get random lags and freezes when using any moderately graphic intensive website (such as ones based in Flash or with a lot of HTML5 content) in both Firefox and in Chrome. Now, however, I seldom (if ever) get lags in Firefox or Chrome (more likely in Chrome than Firefox).

As far as playing videos - I can watch a random YouTube video in either Firefox or Chrome and have no playback lags. But if I use Glipgrab and get a local copy of the same video, when I play it back using Totem it lags (video only, audio continues normally).

Noting here that mpv lags as well, but not as much as totem.

Playback is on an HP Pavillion DV7 (LM726AV) laptop computer, using integrated video (Intel) and integrated sound/speakers. No external components involved. The system does have a second graphics adapter built-in (AT Radeon), but the Intel graphics is the one active.

Sounds like it might be a general graphics problem (which you would only notice during video playback thanks to the audio) rather than a video-specific problem.

Still, please log a bug:

ubuntu-bug totem

In case the problem is in how your video files are constructed, please also try downloading this video:
http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4
Same problem?

Bug report filed:

Video lag when using totem (audio does not lag) Edit
Bug #1774915 reported by Tracy a moment ago

I tried your test video. Playing in Firefox played without any problems - no lag whatsoever. I then downloaded the video to a local drive, and played it in Totem - lag is present. Played in mpv - lag is present, but not as much as in Totem.

Video playback is quite jumpy. Longs lags of a single still image, while the sound plays on. Only happens with locally stored video files. .MP4 .MKV .AVI tested, all have the same issue

Xorg
Totem
Intel
Output from vainfo:

libva info: VA-API version 1.1.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_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel® Skylake - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileH264ConstrainedBaseline: VAEntrypointFEI
VAProfileH264ConstrainedBaseline: VAEntrypointStats
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264Main : VAEntrypointFEI
VAProfileH264Main : VAEntrypointStats
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointFEI
VAProfileH264High : VAEntrypointStats
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice

Please see https://launchpad.net/bugs/1774915 for that issue.

I get slight stuttering with the Full HD (1920x1080) 60 fps4.2 Big Buck Bunny video. It is most apparent in the end credits of the bunny video when the text is scrolling up. It looks as if the text is vibrating up and down a few millimeters.

Ubuntu 18.04, Xorg, Intel, Both in Totem and MPV.

libva info: VA-API version 1.1.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_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Kaby Lake - 2.1.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointEncSlice
      VAProfileVP9Profile2            :	VAEntrypointVLD

I would recommend subscribing to https://launchpad.net/bugs/1698270 about that. However if a similar problem persists in mpv then please keep an eye here instead: https://trello.com/c/Q6JYXPPs

The stuttering happens both in Totem and mpv. It is worse in Totem.

However, VLC performs A LOT better. It rarely stutters and it uses 1/2 to 1/4 of the cpu usage of Totem and mpv.

Anyway, thanks for this amazing work! Looking through the bug reports, what a rabbit hole! I’m glad you’re so dedicated to this!

1 Like

Hi,

Vlc and mpv have hardware acceleration on Xorg and playback of graphics is smooth. Totem seems to have micro pauses every so often.

Output from vainfo for my Inspiron-5558 i3-4005 CPU @ 1.7GHz x4 Intel Haswell Mobile laptop

libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel® Haswell Mobile - 2.1.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