Closed Bug 462163 Opened 16 years ago Closed 16 years ago

OGG video/audio playback always choppy and consumes 100 % CPU regardless of video

Categories

(Core :: Audio/Video, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 462667

People

(Reporter: fehe, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081029 Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081029 Firefox/2.0.0.11

Firefox's OGG video playback is extremely inefficient (very slow and choppy) and consumes 100 % CPU regardless of the video.  For example, the video at http://commons.wikimedia.org/wiki/Image:Moving_Octopus_Vulgaris_2005-01-14.ogg is played with 100 % CPU compared to 38 % with VLC Player

Similarly, the video here: http://lachy.id.au/dev/markup/tests/html5/video/003.html, though very simple, plays with 100 % CPU and very choppy audio

Even though my system is a P3 933 MHz (GenuineIntel family 6 model 8 stepping 6), it is not the problem, as VLC Player achieves smooth playback with about a third of the CPU power that Firefox demands for its slow and choppy playback.


Reproducible: Always

Steps to Reproduce:
1. Open Windows Task Manager
2. Visit the linked URL
3. Start video playback
4. Monitor CPU utilization
Actual Results:  
100 % CPU utilization, choppy video, choppy audio with the second specified URL


Expected Results:  
First video show play smoothly with only about a third of the CPU utilization, much like VLC Player.
Are you using Firefox 2.0.0.11 to view these .ogg videos?  Asking because that is what your build ID says and built in <video> <audio> support is only in Firefox 3.1 nightlies/beta 1

Note:  You have to have flash/quicktime/vlc playes disabled in the add-ons manager in order to view the videos using the built in player.
If I file a report for Firefox trunk, it is because I am using the trunk build, my user agent string notwithstanding.  So no.  I was not using 2.0.0.11.

This is a report against Firefox's built-in OGG functionality.  No plugins involved.
Version: unspecified → Trunk
Component: General → Video/Audio
Product: Firefox → Core
Changed the product, so should be clearer now. :-)
(In reply to comment #2)
> If I file a report for Firefox trunk, it is because I am using the trunk build,
> my user agent string notwithstanding.  So no.  I was not using 2.0.0.11.
> 

As you noticed, the version was set as unspecified and you probably can't believe the amount of people that file bugs because something doesn't work when in fact they are not using the newest version of the browser that has that feature built in to it...so I had to verify your version.

http://commons.wikimedia.org/wiki/Image:Moving_Octopus_Vulgaris_2005-01-14.ogg
34% for me on Vista

http://lachy.id.au/dev/markup/tests/html5/video/003.html
48-, 63-, 42- then about 0% during then after the video stops.

No 100% cpu spikes here or choppy playback but that may be because my computer is a heck of a lot faster than yours though.

CC'ing Chris Double because he would be able to triage this better.
I'm running a P3 933MHz with 512 MB RAM and an AGP video card; Windows XP.

My system cannot handle Vista, yet on XP with a standalone VLC player (i.e. not a browser plugin), I get CPU utilization similar to what you are getting, playing the video through Firefox, on a system powerful enough to run Vista!  That should give you an indication of just how bad this is.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081029 Minefield/3.1b2pre

Athlon 64 3000+ (1.8 Ghz)
1 GB RAM (shared with video)
Onboard video (nVidia GeForce 6100)

Windows XP SP3, all patches.

File: http://commons.wikimedia.org/wiki/Image:Moving_Octopus_Vulgaris_2005-01-14.ogg
CPU: 30-40%
Playback: the file stopped several times. Was this because it i streaming/buffering or something? I don't know since the current UI is quite limited in that it does not present a progress indicator of any sort.

File: http://lachy.id.au/dev/markup/tests/html5/video/003.html
CPU: peaked at 90% intially then drops away immediately. Average initially was about 70%
Unfortunately, I made an major error when posting the URL to the first video.  The URL should have been http://upload.wikimedia.org/wikipedia/common/2/23/Moving_Octopus_Vulgaris_2005-01-14.ogg

The video at the http://comons... URL is played via a Java applet.  It is only if you click the URL below that that it takes you to the raw OGG video file that plays purely within Firefox.

It doesn't change my numbers, because I had it right when I was testing.  However, your numbers should be better.

Sorry everyone.  I didn't realize that I had hit the back button before copying the URL.  Too bad I can't fix comment #1.  Maybe I have to mark this invalid and refile?
Sooner or later I'll get this right.  The URL is: http://upload.wikimedia.org/wikipedia/commons/2/23/Moving_Octopus_Vulgaris_2005-01-14.ogg
Because I messed this one up so badly, I have filed Bug 462667 and I'm marking this as a dupe to that bug.

Sorry
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
QA Contact: general → video.audio
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.