[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-06 Thread Daniel van Vugt
*** This bug is a duplicate of bug 1698270 ***
https://bugs.launchpad.net/bugs/1698270

Charlie, yes I would recommend using mpv instead of totem. mpv will
perform better and is the only other video player that will take
advantage of Intel hardware acceleration properly [2]. I do _not_
recommend gnome-mpv [1] and also do _not_ recommend vlc because it seems
to be lacking in hardware acceleration. I have no experience with
SMPlayer, but please see also [2].

Tracy, the mpv close issue is bug 1720835.

I think we should merge this into bug 1698270 now.

[1] https://community.ubuntu.com/t/hardware-accelerated-video-playback/304/4
[2] https://wiki.ubuntu.com/IntelQuickSyncVideo

** This bug has been marked a duplicate of bug 1698270
   Totem pauses and stutters during video playback even when CPU usage is low

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-06 Thread Charlie Bravo
In response to my previous comment, switching to SMPlayer improves the
symptom, but does not seem to resolve it.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-06 Thread Tracy
BTW, the following shows up in the terminal output for mpv under Wayland
(I don't recall seeing this under Xorg)

[vo/opengl] retrieving framebuffer depth: OpenGL error
INVALID_OPERATION.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-06 Thread Charlie Bravo
If I am reading this commentary, and that in
https://bugs.launchpad.net/ubuntu/+source/clutter-1.0/+bug/1698270  it's
looking like uninstalling totem and changing to another player might be
the best answer, am I correct?

Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-06 Thread Tracy
Sorry for the long delay in responding - had to wait for some other
things to finish so I could switch from Xorg to Wayland. The same types
of pauses/lags/freezes happen to me under Wayland using mpv as were
happening under Xorg. They may be slightly less frequent (subjective
judgment, no actual counts done), but they still occur.

Also, I find that I am unable to close mpv under Wayland. Alt-F4 does
nothing, nor does going to the Window menu and choosing Quit. The video
continues, and I am not sure exactly what else to use to close it (other
than just waiting for it to finish running) - I don't know much about
mpv. Closing wasn't a problem under Xorg - either of the two methods
mentioned above worked there. Just throwing that out there for
consideration.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-06 Thread Daniel van Vugt
Before we merge this bug into bug 1698270 I would like to hear Tracy's
response to comment #25.

Then I expect we will need/want to get more of the above lists of gnome-
shell performance issues fixed before we can confidently say this issue
exists purely within video playback.

P.S. If the problem is purely a video playback issue then my suspicion
is that some component is implementing frame dropping incorrectly. If it
is implemented using double buffers then you can easily starve the
screen of new frames while repeatedly (racily) replacing the backbuffer.
The right approach then is to use 3 buffers and the mailbox algorithm.
The mailbox algorithm is nothing new, but that's what Vulkan calls it
anyway: https://software.intel.com/en-us/articles/api-without-secrets-
introduction-to-vulkan-part-2

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-06 Thread Daniel van Vugt
Sergei, "performance" is a general category of problems that includes dropped 
frames. For example, in gnome-shell I have separated those issues:
  https://trello.com/c/Q6JYXPPs
from the ones that incur measurably high hardware usage:
  https://trello.com/c/pe5mRmx7

A low frame rate is still a performance problem even if it's not
stressing the hardware.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-06 Thread Sergei
Also when I was on 17.10 beta, there was an update that broke totem
(black screen instead of video). Problem appeared after the issue was
fixed.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-06 Thread Sergei
I've checked iowait using iotop during lags and revealed no spikes or something 
like that. So it's not a performance  problem at all. I believe gstreamer is 
just dropping frames due to some bugs.
I had 17.10 installed and had no issue that time.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-06 Thread Daniel van Vugt
One more thing:

Wayland sessions might perform better, so please try mpv in a Wayland
session. Unfortunately Totem probably won't work there (bug 1770725).

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Tracy
The pauses are very brief using mpv - using totem I still get pauses in
excess of 5 seconds at random points during playback. However I am
willing to accept that this would constitute a duplicate of 1698270, and
will wait for any updates there.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Daniel van Vugt
Thanks.

If the pauses are now very brief with your BIOS in "fixed" mode, and if
mpv is performing slightly better than totem, then I suggest this is now
a duplicate of bug 1698270. Bug 1698270 is not fully resolved and
requires more investigation.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Tracy
Totem and gnome-shell both are running between 10% and 30% each (they
bounce back and forth during playback). The next highest usage
(according to top) is 8% and under. Is there a way to capture CPU usage
during playback that will be representative of actual usage?

My video resolution is 1920 x 1080 - it is the default resolution for
this screen (17" laptop LCD - no touchscreen capabilities).

I should note that I get this problem regardless of whether I run totem
full screen or in a small (320 x 200) window... (I realize that the size
of the window isn't the determining factor, but I would think that a
smaller window would be less likely to show the problem than a full
screen - but that doesn't seem to be the case here.)

tracy@tracy-hp:~$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
LVDS-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y 
axis) 381mm x 214mm
   1920x1080 60.06*+  60.0159.9759.9659.93  
   1680x1050 59.9559.88  
   1600x1024 60.17  
   1400x1050 59.98  
   1600x900  59.9959.9459.9559.82  
   1280x1024 60.02  
   1440x900  59.89  
   1400x900  59.9659.88  
   1280x960  60.00  
   1440x810  60.0059.97  
   1368x768  59.8859.85  
   1360x768  59.8059.96  
   1280x800  59.9959.9759.8159.91  
   1152x864  60.00  
   1280x720  60.0059.9959.8659.74  
   1024x768  60.0460.00  
   960x720   60.00  
   928x696   60.05  
   896x672   60.01  
   1024x576  59.9559.9659.9059.82  
   960x600   59.9360.00  
   960x540   59.9659.9959.6359.82  
   800x600   60.0060.3256.25  
   840x525   60.0159.88  
   864x486   59.9259.57  
   800x512   60.17  
   700x525   59.98  
   800x450   59.9559.82  
   640x512   60.02  
   720x450   59.89  
   700x450   59.9659.88  
   640x480   60.0059.94  
   720x405   59.5158.99  
   684x384   59.8859.85  
   680x384   59.8059.96  
   640x400   59.8859.98  
   576x432   60.06  
   640x360   59.8659.8359.8459.32  
   512x384   60.00  
   512x288   60.0059.92  
   480x270   59.6359.82  
   400x300   60.3256.34  
   432x243   59.9259.57  
   320x240   60.05  
   360x202   59.5159.13  
   320x180   59.8459.32  
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
tracy@tracy-hp:~$

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Tracy
tracy@tracy-hp:~$ glmark2
===
glmark2 2014.03+git20150611.fa71af2d
===
OpenGL Information
GL_VENDOR: Intel Open Source Technology Center
GL_RENDERER:   Mesa DRI Intel(R) Sandybridge Mobile 
GL_VERSION:3.0 Mesa 18.0.0-rc5
===
[build] use-vbo=false: FPS: 1893 FrameTime: 0.528 ms
[build] use-vbo=true: FPS: 1793 FrameTime: 0.558 ms
[texture] texture-filter=nearest: FPS: 1735 FrameTime: 0.576 ms
[texture] texture-filter=linear: FPS: 1720 FrameTime: 0.581 ms
[texture] texture-filter=mipmap: FPS: 1772 FrameTime: 0.564 ms
[shading] shading=gouraud: FPS: 1576 FrameTime: 0.635 ms
[shading] shading=blinn-phong-inf: FPS: 1570 FrameTime: 0.637 ms
[shading] shading=phong: FPS: 1400 FrameTime: 0.714 ms
[shading] shading=cel: FPS: 1341 FrameTime: 0.746 ms
[bump] bump-render=high-poly: FPS: 882 FrameTime: 1.134 ms
[bump] bump-render=normals: FPS: 1796 FrameTime: 0.557 ms
[bump] bump-render=height: FPS: 1670 FrameTime: 0.599 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 857 FrameTime: 1.167 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 370 FrameTime: 2.703 ms
[pulsar] light=false:quads=5:texture=false: FPS: 1580 FrameTime: 0.633 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 416 
FrameTime: 2.404 ms
[desktop] effect=shadow:windows=4: FPS: 835 FrameTime: 1.198 ms
[buffer] 
columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map:
 FPS: 658 FrameTime: 1.520 ms
[buffer] 
columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata:
 FPS: 676 FrameTime: 1.479 ms
[buffer] 
columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map:
 FPS: 719 FrameTime: 1.391 ms
[ideas] speed=duration: FPS: 1014 FrameTime: 0.986 ms
[jellyfish] : FPS: 881 FrameTime: 1.135 ms
[terrain] : FPS: 95 FrameTime: 10.526 ms
[shadow] : FPS: 674 FrameTime: 1.484 ms
[refract] : FPS: 238 FrameTime: 4.202 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 1663 FrameTime: 0.601 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 1473 FrameTime: 0.679 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 1654 FrameTime: 0.605 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 1644 FrameTime: 0.608 
ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 1435 FrameTime: 
0.697 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 1368 
FrameTime: 0.731 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 1621 
FrameTime: 0.617 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 1465 
FrameTime: 0.683 ms
===
  glmark2 Score: 1226 
===
tracy@tracy-hp:~$

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Daniel van Vugt
Thanks, but there's no need to benchmark the CPU itself. We already know
the CPU model. What does concern me about CPU usage is whether gnome-
shell or some other process is using considerable CPU during playback.
Do you find that?

Also, please run 'xrandr' and send us the output. Gnome Shell is
unfortunately not very efficient at drawing high resolution yet (using
standard GPUs like that in the i7-2630QM). So if your screen is greater
than 1920x1080 then that could also be a problem.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Tracy
Most of that info doesn't mean much to me, but hopefully it will help
narrow things down and at least let you point me in the right
direction

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Tracy
CPU benchmarking

tracy@tracy-hp:~$ sysbench --test=cpu run
WARNING: the --test option is deprecated. You can pass a script name or path on 
the command line without any options.
sysbench 1.0.11 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Prime numbers limit: 1

Initializing worker threads...

Threads started!

CPU speed:
events per second:   861.57

General statistics:
total time:  10.0012s
total number of events:  8620

Latency (ms):
 min:  1.14
 avg:  1.16
 max:  3.55
 95th percentile:  1.21
 sum:   .07

Threads fairness:
events (avg/stddev):   8620./0.00
execution time (avg/stddev):   9.9991/0.00

tracy@tracy-hp:~$ sysbench --test=cpu --num-threads=16 run
WARNING: the --test option is deprecated. You can pass a script name or path on 
the command line without any options.
WARNING: --num-threads is deprecated, use --threads instead
sysbench 1.0.11 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 16
Initializing random number generator from current time


Prime numbers limit: 1

Initializing worker threads...

Threads started!

CPU speed:
events per second:  4668.70

General statistics:
total time:  10.0023s
total number of events:  46707

Latency (ms):
 min:  1.55
 avg:  3.42
 max: 49.71
 95th percentile: 17.63
 sum: 159900.51

Threads fairness:
events (avg/stddev):   2919.1875/110.55
execution time (avg/stddev):   9.9938/0.01

tracy@tracy-hp:~$ sysbench --test=cpu --num-threads=16 --cpu-max-prime=10 
run
WARNING: the --test option is deprecated. You can pass a script name or path on 
the command line without any options.
WARNING: --num-threads is deprecated, use --threads instead
sysbench 1.0.11 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 16
Initializing random number generator from current time


Prime numbers limit: 10

Initializing worker threads...

Threads started!

CPU speed:
events per second:   199.77

General statistics:
total time:  10.0494s
total number of events:  2008

Latency (ms):
 min: 39.76
 avg: 79.86
 max:156.43
 95th percentile: 92.42
 sum: 160358.07

Threads fairness:
events (avg/stddev):   125.5000/1.94
execution time (avg/stddev):   10.0224/0.01

tracy@tracy-hp:~$

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Tracy
I reinstalled the i965-va-driver.

Here is the output of the hdparm command for the drive that currently
houses the video file:

tracy@tracy-hp:~$ sudo hdparm -t /dev/sdb
[sudo] password for tracy: 

/dev/sdb:
 Timing buffered disk reads: 352 MB in  3.01 seconds = 117.06 MB/sec

I moved the video file to a different drive, and tried it in totem
again. Same problem. Here's the hdparm output for that drive:

tracy@tracy-hp:~$ sudo hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 1198 MB in  3.00 seconds = 399.32 MB/sec

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Daniel van Vugt
Yes, please do reinstall:
  sudo apt install i965-va-driver
That will restore hardware-accelerated video decoding, and keep the system 
cooler :)

It now sounds like you have a general graphics/CPU/disk performance
problem and this bug is not really specific to video playback. I assume
this is a real and not virtual machine...

Next please benchmark the disk you are playing from. You can do that in
the 'Disks' app, or on the command line by running:

  sudo hdparm -t /dev/sda   # or whatever the device is

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Tracy
OK, so I tested the removal of the items requested (still with BIOS set
to fixed). After

> sudo apt remove mesa-va-drivers

I tried running the video in totem. Same problem as before - random
lags/stutters/freezes, usually < 1 second, but a few that were longer
(longest was about 2.5 seconds this time around).

So then I tried

> sudo apt remove i965-va-driver

then ran the video in totem. If anything, the problem became worse - the
lags were more prevalent, and the longest was > 3 seconds.

So I went back to mpv and ran the video there. There were minor stutters
(not long enough to call them lags - I would estimate they were mostly <
0.25 seconds) scattered through the video at random, but none long
enough to really cause me to say "this is unwatchable". However, I did
notice increased CPU usage - the system became noticably warmer to the
touch while the video was playing, and the fan kicked on high to cool it
(previous instances I didn't notice the fan kicking on - perhaps it did,
and I just didn't notice it. I have copied below the terminal output for
mpv, in case any of it is relevant (I didn't notice much different than
the past - just a warning about a decoder not supporting hardware). I
can re-run and see if I can catch a lag long enough for me to start
dmesg if you like. Just let me know what would help you most from this
point.

tracy@tracy-hp:/mnt/VM$ mpv bbb_sunflower_1080p_60fps_normal.mp4
Playing: bbb_sunflower_1080p_60fps_normal.mp4
 (+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
 (+) Audio --aid=1 --alang=und (*) (mp3 2ch 48000Hz)
 Audio --aid=2 --alang=und (*) (ac3 6ch 48000Hz)
File tags:
 Artist: Blender Foundation 2008, Janus Bager Kristensen 2013
 Comment: Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
 Composer: Sacha Goedegebure
 Genre: Animation
 Title: Big Buck Bunny, Sunflower version
VO does not support requested hardware decoder, or loading it failed.
AO: [pulse] 48000Hz stereo 2ch s16
VO: [opengl] 1920x1080 yuv420p
AV: 00:10:34 / 00:10:34 (100%) A-V:  0.000


Exiting... (End of file)

Also, should I reinstall the i965 and mesa drivers, or leave them
uninstalled for further testing? (I will definitely leave them
uninstalled until I hear otherwise, or for a day or so at any rate...)

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Tracy
I don't see any changes in vainfo from before the change to the BIOS to
after. I have posted both versions here, in case I missed something.

I haven't yet tried removing the mesa drivers or the i965 driver - I
will try that later today, as time permits.

vainfo from before any changes (as posted under the "call for testing")

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Ā® 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

vainfo after changing BIOS setting:

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

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Daniel van Vugt
** Also affects: mesa (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: mesa (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-05 Thread Daniel van Vugt
Ah! Your kernel log mentions the AMD video decoder here:

[ 1223.799908] [drm] UVD initialized successfully.

So it's possible that's the cause of the main problem. Can you please
reintroduce the bug and run 'vainfo'? Does 'vainfo' report different
information after you switch your BIOS?

If that is the problem then the workaround should be:

  sudo apt remove mesa-va-drivers

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-04 Thread Daniel van Vugt
By the way, I also set up Ubuntu 18.04 on a very similar HP machine last
night (Intel Sandy Bridge + Radeon graphics) and can not reproduce any
problems.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 1774915] Re: Video freezes and stutters when using totem (audio continues fine)

2018-06-04 Thread Daniel van Vugt
Thanks.

What you are experiencing is worse than I have ever seen. We do have a
catch-all bug 1698270 to cover similar issues, but I am not aware of it
ever being as bad as you describe.

Maybe this problem is specific to the VAAPI decoding that is common to
both totem and mpv... Does the problem go away after running this?;

  sudo apt remove mesa-va-drivers

If the problem then continues, how about after also running this?;

  sudo apt remove i965-va-driver


  

** Summary changed:

- Video lag when using totem (audio does not lag)
+ Video freezes and stutters when using totem (audio continues fine)

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/1774915

Title:
  Video freezes and stutters when using totem (audio continues fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1774915/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs