CPU usage

On my pc (P4, windows 2K, 384Meg RAM), with JMF 2.1.1e, JDK 1.6, the CPU utilization is pegged at 100% when playing back movies. Interestingly, I can run many simultaneous videos without degradation in any of them (currently running 7 simultaneous). As soon as the video is stopped or paused, the cpu usage drops to an insignificanly low number.

Here's another interesting tid-bit: if the video window is actively displayed on the screen (i.e. not minimized), cpu usage is 100%. If the video is not actively displayed, cpu usage is around 50%.

Other applications seem to work ok too along side the jmf stuff even though the cpu is pegged.

Does anyone know if this is normal? If so, any plans from the developers to fix it?

thanks

gene

[772 byte] By [gearheadgenea] at [2007-11-27 11:34:21]
# 1

Hi.

I'm used a similar machine and JMF whit fobs4jmf.

I have a similar problem. In my proyect I have a class that extedns JInternarFrame and implements runnable.

In this run method I started a player white for all states and finally when it start's the thread sleep during the video duration.

In this process the cpu ussage increases a lot and when finished, and after closed it, the aplication gain 2 subprocces for every video that the program play.

I have try this solution because in other posts people say that the player have to be in a separated thread, but the result is the same; more CPU usage an finally the JVM crass.

Excuse me for mi English, this is my first post

almarco_esa at 2007-7-29 16:56:46 > top of Java-index,Security,Cryptography...
# 2

My setup uses pure JMF 2.1.1e , no extra threads setup at all. The main GUI contains a JFrame, then a JDesktopPane, and then a bunch of JInternalFrames. Within the JInternalFrame is the player. Works fine even when running many video simultaneously. Two issues though:

1. CPU usage very high (as previously stated)

2. Player is rendered heavy weight (even though I request light weight), so there are issues when players overlap swing components.

I don't know anything about fobs4jmf - so I won't comment on it.

gearheadgenea at 2007-7-29 16:56:46 > top of Java-index,Security,Cryptography...