bugGnash - The GNU Flash player - Bugs: bug #21035, High CPU-usage while playing...


bug #21035: High CPU-usage while playing videos from youtube

Submitted by:  None
Submitted on:  Tue 11 Sep 2007 12:55:29 PM UTC  
Category:  None Severity:  3 - Normal
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  Tomas Groth <tgc>
Open/Closed:  Closed

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 15 Mar 2008 09:00:08 AM UTC, comment #3: 

YouTube is pretty good performance for me too with gstreamer and head (or 0.8.2).

Sandro Santilli <strk>
Project Member
Mon 29 Oct 2007 08:03:10 AM UTC, comment #2: 

I suspect the original youtube problem to do with ogl rendering, since I have no problems with agg and youtube. Ogl and youtube will be slow if hardware acceleration isn't working properly or is disabled (no idea if that's the case there or not).

As for the second report, I have no problems with:


but do notice 100% processor usage during the animation of:


This seems to involve moving several photo images. Another movie that causes high CPU usage is:


during the first scene; there are a lot of moving shapes, so I don't know if rendering or parsing is the problem.

Benjamin Wolsey <bwy>
Project Member
Sun 28 Oct 2007 11:54:29 PM UTC, comment #1: 

I am also noticing heavy CPU usage by Gnash when displaying certain Flash files.  If several sites are using Flash with a sizable Firefox session (5 windows with 7 tabs each), Firefox becomes virtually unusable.  The following files produce particularly high CPU usage with Gnash:


With the first link loaded, Gnash has about 25% CPU usage on my machine.  If I open up 5 windows with the link, then Firefox becomes very slow to respond (ie. it takes 5-10 seconds for it to switch between tabs).

Gnash on the second link gives 100% CPU usage while the file plays, but then drops to negligible usage once its animations are finished.

The CPU usage figures for the above are the same whether I am displaying the files in Firefox or whether I download them and use "gnash -v".  The results are also the same whether I use the Nvidia restricted graphics drivers or the open source drivers.

Additionally, on most YouTube videos, Gnash averages 70-80% CPU usage while playing the video.  That's fine if that's all I'm doing, but running any other CPU-intensive applications causes dropped frames and sound skipping.  An example of such a YouTube video is http://youtube.com/watch?v=Enau4SKqeZY.

My computer has the following specs:
- Pentium M 1.3 GHz
- 512 MB RAM
- Nvidia GeForce 4200 Go with 64 MB RAM (not shared)

I am using the following software:
- Ubuntu 7.10
- Firefox
- Gnash 0.8.1

"gnash --version" prints the following:

Gnash 0.8.1
Copyright (C) 2005-2007 Free Software Foundation, Inc.
Gnash comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of Gnash under the terms of the GNU General
Public License.  For more information, see the file named COPYING.
Build options 0.8.1
   Renderer: agg - GUI: GTK - Media handler: gst
   Configured with: CFLAGS=-Wall -g -Werror-implicit-function-declaration -O2 --host=i486-linux-gnu --build=i486-linux-gnu --prefix=/usr --mandir=/share/man --infodir=/share/info --enable-plugin --enable-gui=gtk,kde --enable-cygnal --enable-gstreamer --enable-media=gst --enable-renderer=agg --with-plugindir=/lib/gnash --enable-shared=yes --enable-sdk-install --disable-rpath --enable-lotsa-warnings --without-gcc-arch
Gstreamer version is: 0.10.14.

Denver Gingerich <denverg>
Tue 11 Sep 2007 12:55:29 PM UTC, original submission:  

I'm using Ubuntu Gutsy Gibbon and compiled Gnash 0.8.1 with "--enable-renderer=opengl --enable-media=GST CFLAGS=-march=prescott -O2 -pipe -fomit-frame-pointer".My videocard is an Intel GMA950 and I'm using the newest avaible videodriver, namely the xserver-xorg-video-intel package, which supports xrandr 1.2.

In the browser and following this wikipage[1] Gnash eats my CPU when it plays a video. After pausing the video with the button of the youtube-flashplayer the load is gone and resuming makes it use all of my cpu again.Here is what I get in console, when I start Gnash with a video. [2]

[1] http://wiki.gnashdev.org/index.php/YouTube
[2] http://ubuntuusers.de/paste/14837/



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bwy (Posted a comment)
  • -email is unavailable- added by denverg (Posted a comment)
  • -email is unavailable- added by strk (Updated the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-03-15 strk StatusNone => Fixed
        Open/ClosedOpen => Closed
    2007-09-12 strk Assigned toNone => tgc

    Back to the top

    Powered by Savane 3.5