VLC 0.72 and subtitles = 100 % CPU usage

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
mironicus

VLC 0.72 and subtitles = 100 % CPU usage

Postby mironicus » 23 May 2004 11:11

I am using Windows XP and installed VLC 0.72 today.

If I playback just an XVID or DIVX-avi the CPU usage is low as ever: 0-2%

But if I turn subtitles on (OGM/MKV) the cpu usage goes up to 100% every time a subtitle is displayed and the video begins to stutter. If no subtitle is displayed the cpu usage is back to normal (0-2%). In my experience I had this problem since I began to use VLC (0.70 was the first version I used).

A little tip: The subtitle routine in FFDSHOW is very fine und good looking - and it don't use any cpu power. Could the programmer include this routine in VLC? :wink:

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 23 May 2004 11:38

I've personally never seen this behaviour. I'm certain the subtitle code does not require that much cpu, so you must have triggered some obscure bug. Any furter info you may give will be welcome.

Guest

Same problem but random

Postby Guest » 23 May 2004 15:28

Hi all,

I have the same problem related to the CPU 100% but it is random.

The process that drives nuts is not vcl.exe but explorer.exe

I use a WinXP SP1.

Regards,
Irene

Sigmund
Big Cone-huna
Big Cone-huna
Posts: 893
Joined: 26 Nov 2003 09:38

Postby Sigmund » 23 May 2004 15:28

hahaha

Guest

Is it that funny?

Postby Guest » 23 May 2004 15:32

Is it that funny?

maxxxp
Blank Cone
Blank Cone
Posts: 15
Joined: 23 May 2004 20:12

Postby maxxxp » 23 May 2004 20:25

I've the same problem of mironicus, with mkv and ogm i've 100% cpu and video begins to stutter when the subtitles are displayed only, the process is vlc.exe (not explorer, to me).
I've a notebook with winxp sp1, 512 mb ram, geforce4 go and athlon xp 2000+ mobile.
I've tried the 0.7.1 and the 0.7.2 final with the same problem.

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 23 May 2004 20:38

Unfortunately, I have to agree with Sigmund, that XP is a joke. My work PC is an 800 MHz P4 laptop, 512 MB, Win2K Pro, no problems ever with VLC, even with a bunch of office apps running.

My home PC is a 2.6 GHz P4, WinXP home edition.

In both cases the machines are fully patched, latest drivers, but periodically the XP machine just plain goes bats&^t on CPU use. I've had several driver-related issues under XP, things I haven't seen with Win2K. If you hit an application problem once or twice under XP, it seems like all hope is gone, need to reboot -- there's residual garbage/corruption. This is totally unacceptable in an OS -- apps are NOT supposed to be able to mess with core services in ways that toast the machine.

I can't believe MS is dropping support for Win2K, with a piece of junk OS like XP the "better" replacement for it.

Enough of a rant -- I actually do like Win2K, just REALLY loathe XP.

maxxxp
Blank Cone
Blank Cone
Posts: 15
Joined: 23 May 2004 20:12

Postby maxxxp » 23 May 2004 22:04

But for my/our problem?
I not think that is a problem of conflicts, it's only vlc.exe that use full cpu.
I reboot winxp also but nothing.
All the others players (i've a lot...) works great.

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 23 May 2004 22:21

Is there a sample file, one that pegs your CPU?

maxxxp
Blank Cone
Blank Cone
Posts: 15
Joined: 23 May 2004 20:12

Postby maxxxp » 23 May 2004 22:51

I've cut the original mkv with vdub and removed the audio, the problem remains.

pernas

High CPU-usage when displaying subs (.srt) confirmed

Postby pernas » 23 May 2004 23:32

Hi !

I just wanted to confirm that i also noted high CPU-usage while text (.srt) is visible.
Measured this with both 0.71 and 0.72 but i don't have any stuttering problems during playback.

Using a Pentium M @ 1.4G wih XP SP 1.
CPU-usage raised from <5% to apprx. 40% for one line of text
Up to 80% for two lines of text.

Regards,
Per
Sweden

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 24 May 2004 00:15

Max --
I downloaded your sample onto my PC, WinXP.
Using perfmon to check CPU use.
Running the file, nothing on but video, is maximum 4.7% CPU, average < 1%.
Then I turned subtitles on.
Short subtitles (looks like under, say, 15 characters) don't seem to have much impact, if any. Middle subtitles, about 36 characters, use about 33% of CPU. A big subtitle, looks like 75 characters or so, is using about 78% of CPU, peak.

So, it looks like it's using up almost 1% of CPU on a 2.6GHz machine for each subtitle character being generated -- kind of hefty.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 24 May 2004 01:11

I second this behaviour.
It's weird and should be investigated......
Don't use PMs for support questions.

Paul Bludov

Postby Paul Bludov » 24 May 2004 04:54

I bet you have a DirectX/Driver problem.

I can repro this bug, but only in overlay-less mode (add to vlcrc)

[vout_directx] # DirectX video output
overlay=0

In this mode, the CPU got 100%.

-Paul[/b]

maxxxp
Blank Cone
Blank Cone
Posts: 15
Joined: 23 May 2004 20:12

Postby maxxxp » 24 May 2004 19:05

Thanks for the tests, to all.
I think i've some problems with the registry of window, the mkv without subtitle use the 60% of cpu!
I'll try to reinstall windows.
But the overlay is activated, without it the cpu is 100% for all the time of video, with and without subtitle.
Now the question is : why the subtitule use all that cpu?
It's not right.

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 24 May 2004 19:57

I agree, Max -- the numbers I posted yesterday were with overlay active. It looks like there is something which uses a lot of CPU, and is proportional to the length of the subtitle.

Goner
Blank Cone
Blank Cone
Posts: 28
Joined: 30 May 2004 15:33
Operating System: WindowsLinuxAndroid
Location: Rotterdam, Netherlands

Postby Goner » 02 Jun 2004 00:24

what would be normal CPU usage for vlc, without subtitles ??

i'm using 0.7.2 and it averages 60 - 70% and regularly takes >90% on an Athlon XP 1700+ with 512Mb memory running Windows 2000 Pro SP4, DirectX 9.0b, streaming a DVD (wired & wireless).

just curious ...

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 02 Jun 2004 18:19

I optimised this a bit in the development version but subtitles rendering is still very CPU hungry because of how the black outlining is done.

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 03 Jun 2004 01:28

Perhaps a silly idea, but maybe put the subtitles into an independent text window, analogous to the way the main video window is/was separate from the control window?

That would remove the processing overhead of shoveling the subtitles into the individual display frames (I assume, probably incorrectly, that the CPU overhead is related to actually filling in the pixels in the video with the black background + text).

The subtitle window could have the bare minimum frame, not even a close box if that is possible (close it based on whatever event triggers closing the actual video display window)

If people wanted to drag the subtitle window on top of the video window, fine, else it could just be located below the main window (similar to the control window normally being above the video display frame)

Is it hard to generate a standard text window, selecting white font color with a black window background color?

Guest

Postby Guest » 04 Jun 2004 01:53

I can only repeat what others have noticed, using subtitles with this version is impossible, it's too heavy on the cpu so the video and sound doesn't play smoothly anymore. I had to downgrade to previous version (0.7.1) which plays subs without probs.

Goner
Blank Cone
Blank Cone
Posts: 28
Joined: 30 May 2004 15:33
Operating System: WindowsLinuxAndroid
Location: Rotterdam, Netherlands

Postby Goner » 04 Jun 2004 09:57

just watched a DVD, "Return of the King" with english subtitles and it played very smooth ...

0.7.2 on Windows 2000 SP4 and Athlon XP1700+, 32Mb GeForce2 MX, 512 Mb memory.

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 04 Jun 2004 10:48

DVD uses a diffent kind of subtitles.
Don't use PMs for support questions.

Guest

Postby Guest » 04 Jun 2004 11:12

Yeah, I would presume that DVDs are different. The files I have major problems with are ogm and mkv files with embedded subs.

Muele

Postby Muele » 21 Jun 2004 15:52

Perhaps a silly idea, but maybe put the subtitles into an independent text window, analogous to the way the main video window is/was separate from the control window?
I strongly second that suggestion.

It would solve several of my problems in one go:
-Performance.

-Subs being hard to read on white background when displayed on my tv (even though there is that little black border around each letter).

-Sub-textsize. When viewed on my 21" tv from a distance of 4 metres, its really hard to read those small subs. In a pure text-window, I guess it would be quite easy to enable some scaling of the size.

BR Muele

Frater Kork
Blank Cone
Blank Cone
Posts: 41
Joined: 20 Feb 2004 00:52

Postby Frater Kork » 01 Jul 2004 17:35

Has there been any developers on this issue?
I am seeing the same probs with subs causing jerky video because the CPU goes smack in the roof...

Win2kPro-sp4 P4@2Ghz 512 Ram Dx9.0b and overlay enabled

Cheers!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 31 guests