Major video lag whilst online?

I’ve tried so hard to try resolve this is issue myself, but for some reason I just can’t do it. I have a nVidia Ge-Force 9500M GS GFX Card, perfectly capable of playing 1080p HD videos, and it’s fine when watching movies in VLC, or offline altogether. However, whenever I go online, I can’t watch any videos. There is so much frame lag, that they are just unwatchable. Honestly I have no clue what’s causing this issue. From what I can tell, it has to be something to do with Chrome/Firefox/Flash or something.

I’m not sure what outputs are needed here, so I’ll just list the ones I’ve done so far.

 sudo lshw -C multimedia
*-multimedia            
       description: Audio device
       product: 82801H (ICH8 Family) HD Audio Controller
       vendor: Intel Corporation
       physical id: 1b
       bus info: pci@0000:00:1b.0
       version: 04
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=HDA Intel latency=0
       resources: irq:48 memory:fc300000-fc303fff


sudo lshw -C display
 *-display               
       description: VGA compatible controller
       product: G84 [GeForce 9500M GS]
       vendor: nVidia Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:16 memory:c6000000-c6ffffff memory:d0000000-dfffffff memory:c4000000-c5ffffff ioport:2000(size=128)


lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 04)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 04)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 04)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 04)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 04)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 04)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 04)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 04)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 04)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 04)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f4)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 04)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 04)
01:00.0 VGA compatible controller: nVidia Corporation G84 [GeForce 9500M GS] (rev a1)
02:00.0 Ethernet controller: Atheros Communications AR8121/AR8113/AR8114 Gigabit or Fast Ethernet (rev b0)
08:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)


about:plugins

(in Chrome)

Check attachments.


Currently my GFX card is running at 61*C. Graphics clock is at 475MHz, Memory clock is at 400MHz and Processor clock is at 950Mhz.

Are these all flash video’s you’re having problems with ?

How did you install flashplayer ?

What CPU do you have ?

Which distro/version/archhitecture ? … Ubuntu 11.04 64bit ?

It’s mainly Youtube & Vimeo… Videos on the likes of Adobe.com run perfectly smoothly. It’s weird, lol.

CPU is a Intel T8500 Core Duo 2 I believe. Running Natty 64-bit.

Flash came integrated with the latest Chrome.

Firstly I’m lost by this statement:

Videos on the likes of Adobe run perfectly smoothly

As video’s on Youtube and Vimeo use the Adobe Flash Plugin.


I’m convinced it’s a flashplayer issue, so lets try ruling it in/out…

Switch to Firefox rather than Chrome… In Firefox, go to Tools > Add-Ons . >Plugins and disable ALL Shockwave Flash plugins.

Close Firefox.

Open a terminal and run:

mkdir ~/.mozilla/plugins

(this command may fail if the directory already exists… this is normal… just move on to the next command)
then

cd ~/.mozilla/plugins

then

wget http://dl.dropbox.com/u/11876059/flashplayer11-64bit.tar.gz

then

tar -zxvf flashplayer11-64bit.tar.gz

Open Firefox, go back to Tools > Add-Ons . >Plugins and check there is now an active Shockwave Flash.

If so, test it in Youtube.

We may have too sort something out first… Just add “sudo” ?

bally@bally-laptop:~/.mozilla/plugins$ wget http://dl.dropbox.com/u/11876059/flashplayer11-64bit.tar.gz
--2011-10-10 14:20:00--  http://dl.dropbox.com/u/11876059/flashplayer11-64bit.tar.gz
Resolving dl.dropbox.com... 50.16.237.97
Connecting to dl.dropbox.com|50.16.237.97|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6729442 (6.4M) [application/x-tar]
flashplayer11-64bit.tar.gz: Permission denied

Cannot write to `flashplayer11-64bit.tar.gz' (Permission denied).
bally@bally-laptop:~/.mozilla/plugins$ tar -zxvf flashplayer11-32bit.tar.gz
tar (child): flashplayer11-32bit.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

NO, do NOT add sudo…

Send the output from:

ls -la ~/.mozilla

and

ls -la ~/.mozilla/plugins
ls -l ~/.mozilla
bally@bally-laptop:~/.mozilla/plugins$ tar -zxvf flashplayer11-32bit.tar.gz
tar (child): flashplayer11-32bit.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
bally@bally-laptop:~/.mozilla/plugins$ ls -l ~/.mozilla
total 16
drwx------ 2 bally bally 4096 2011-09-11 06:34 extensions
drwx------ 4 bally bally 4096 2011-09-11 06:34 firefox
-rw-r--r-- 1 bally bally    3 2011-09-11 06:43 firefox.last-version
drwxr-xr-x 2 root  root  4096 2011-09-22 23:18 plugins

ls -l ~/.mozilla/plugins
bally@bally-laptop:~/.mozilla/plugins$ ls -l ~/.mozilla/plugins
total 18420
-rw-rw-r-- 1 root root 18859016 2011-08-31 10:10 libflashplayer.so

Ok, somehow the ~/.mozilla/plugins directory has become owned by root… run:

sudo chown -R bally:bally /home/bally/.mozilla

Then go back to this posting, and try again.
http://linuxforums.org.uk/ubuntu/major-video-lag-whilst-online/msg68441/#msg68441
(be aware, I changed the last command because I had made a mistake the first time)

Just tried it. The videos are still major lagging. At 30-40 frames behind.

How is flash video if you login with the Ubuntu Classic (no effects) desktop option ?

Yeah, it still lags and drops frames.

EDIT: Things actually seem to be smoother than they are on Gnome with no effects.

Has flash ever worked properly ?

Yeah was working fine, when I was using 32-bit Natty, mind you that was Flash 10, could it possibly be that because Flash 11 has only just started supporting x64 architecture that there are still some bugs to squash?

Could be the possibility that I’ve got about 2Gb of space left? Remember I split the drive into 2 partitions, where “/” was mounted on one and “/home” was mounted on the other, to avoid file system corruption, or at least a less likely chance. :-\

It’s not a problem with 64bit Flash 11, it works perfectly on mine.

HDD space… maybe, try freeing up some space and check.

Well I’m currently movie 38+ GB of movies onto a spare partition just now, might move some other things on there as well. See if it makes any difference, probably not.

Nope didn’t make a difference whatsoever. This is gash. :frowning: I free’d up somewhere around 40ish GB of space. :frowning:

Have you tried the latest graphics drivers directly from nVidia ?

http://www.nvidia.co.uk/object/linux-display-amd64-285.05.09-driver-uk.html

Nope, but I will now. Hopefully this sorts it out, it’s really starting to bug me not being able to watch videos on youtube or vimeo anymore.

EDIT: How do I install the .run file?

To execute a .run binary executable…

Make it executable with -
chmod +x /path/to/filename.run

to run it -
cd /path/to/directory/that/contains/the/file
then
./filename.run
or if it needs root permission
sudo ./filename.run

Obviously you need to change the paths and the filename

so if the file was called nvidia.run and was in your Downloads directory.

chmod +x ~/Downloads/nvidia.run
cd ~/Downloads
sudo ./nvidia.run

It may be a good idea to remove the nvidia drivers Ubuntu installed for you first.

Worth trying a different (older) version of flashplayer ??

[EDIT]

SEE NEXT POSTING FIRST

From what I gather flash 11 has hardware acceleration built in, maybe it’s getting the settings for your GPU wrong… here’s an idea, maybe it needs the VDPAU libraries installing:

sudo apt-get install libvdpau1 vdpau-va-driver

[END EDIT]

Have you tried booting from a 64bit LiveUSB (with persistence), updating, then trying youtube ? … to check if it’s something to do with your setup.

Talking of flashplayer now having hardware acceleration … there’s an easy way to disable it in the flashplayer settings, to see if that’s causing the problem.

See here:
http://www.alaskavrtours.com/flash-bug.php