openshot uses CPU for no reason

Bug #665878 reported by Alexandru Băluț
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 10.10 64
OpenShot 1.2.2 installed using the Ubuntu Software Center

Steps to reproduce:
- Open OpenShot, notice the openshot process uses x% CPU for no reason (no video processing, no clip added to the Project Files, ..). x=14 in my case.

(This might be a different bug, but still very similar:)
- Add an mp4 to the Project Files.
- Drag the clip to Track 2.
- Click the Ruler so the Play-head is inside the clip, notice the Video Preview shows an image from the video at that point, notice the openshot process uses y% CPU for no reason. y = 103, 67 (depending on the clip)

Tags: cpu
Revision history for this message
Andy Finch (fincha) wrote :

It may appear to be for no reason, but for instance moving the play-head involves re-drawing portions of the timeline, and generation of the xml file that MLT needs to process the video.

Revision history for this message
Alexandru Băluț (a13b) wrote :

I changed the (Edit -> Preferences -> General ->) Output Mode to "sdl_preview", whatever that is, and OpenShot works fine now. After I start the application it uses 0% CPU, and when I drag a clip to the timeline and click the Ruler it uses 100% CPU for a few seconds, but then it stops.

What is the difference between "sdl" and "sdl_preview"?

Revision history for this message
moimael (moimael) wrote :

sdl has a better quality but take much more ressources where sdl_preview has a lower quality but takes less ressources.

Revision history for this message
Alexandru Băluț (a13b) wrote :

What exactly does "lower quality" mean? This should be explained in Help.

Revision history for this message
Mario B. (boonekamp-deactivatedaccount-deactivatedaccount) wrote :

Ubuntu 10.10 (32-bit), OpenShot 1.2.2

OpenShot _does_ use CPU for no reason. After opening a sample project and resizing/moving some effects I noticed that the fan of my notebook got faster and faster. The reason was OpenShot which used about 60-100% on both cores. I add a screenshot. I took it while OpenShot was completely idle. No playback or something.

Revision history for this message
Zoubidoo (zoubidoo) wrote :

Confirmed for
openshot 1.4.0-1 (from PPA) on Ubuntu 10.04 LTS i686
and
openshot 1.3.0-1 on Ubuntu 11.04 i686

Revision history for this message
Zoubidoo (zoubidoo) wrote :

This bug has been confirmed and should be critical priority because it makes openshot almost unusable.

Going to try the workaround suggested by Alex.

Revision history for this message
Zoubidoo (zoubidoo) wrote :

I can confirm that CPU usage is much more reasonable with output mode sdl_preview.

openshot 1.4.0-1 from PPA
libmlt2 0.5.4-1
Ubuntu 10.04 LTS

Revision history for this message
Olivier Girard (eolinwen) wrote :

THis bug will be resolved with our library libopenshot and so all the audio problem (sync, shutter,........).
But good point to see that he is not marked like hight priority. At least that a bug in double............

Zoubidoo (zoubidoo)
Changed in openshot:
status: New → Confirmed
Revision history for this message
Olivier Girard (eolinwen) wrote :

Thanks for your participation in this shouting to find duplicate bugs.
Like there is another already marked, I mark it like duplicated.
Thx.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.