MJPEG playback high CPU usage

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
xerces8
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 22 Aug 2005 15:12

MJPEG playback high CPU usage

Postby xerces8 » 22 Nov 2011 22:38

Hi!

Using VLC 1.1.11 on Windows 7 SP1 64 bit, I noticed it uses much more CPU than Windows Media Player when playing MJPEG movies (in AVI container).

VLC uses about 66%, while WMP 20% for the same file.

This is similar on two PCs.
One netbook with Atom N270 (1.6 GHz one core, two threads) and one HP Microserver (AMD N36L dual core at 1.30 GHz), both having Windows 7 (netbook 32 bit, server 64 bit).

On another older PC, it is the opposite. The VLC is using 2x less CPU than WMP (WMP 11 on Windows XP in this case. On Win7 it is WMP 12).

This all with the same test file: 640x480 30 FPS AVI file, made by a Sony DSC-W530 photo camera .

xerces8
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 22 Aug 2005 15:12

Re: MJPEG playback high CPU usage

Postby xerces8 » 23 Nov 2011 00:00

I tried another file (from another camera, this time 720p, again in MJPEG).

Now WMP 12 uses 30-35% CPU, while VLC is at 100% and is skipping frames.

On the third PC, both players are at 100% and skipping frames. (this one has an Athlon XP2200+ CPU)

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: MJPEG playback high CPU usage

Postby VLC_help » 23 Nov 2011 16:20

Is there some sample file you could share to us?

xerces8
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 22 Aug 2005 15:12

Re: MJPEG playback high CPU usage

Postby xerces8 » 23 Nov 2011 22:28

I put one 7 MB sample here: http://www.sendspace.com/file/iqoj84

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: MJPEG playback high CPU usage

Postby VLC_help » 24 Nov 2011 18:50

Thanks. I will check that during weekend.

xerces8
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 22 Aug 2005 15:12

Re: MJPEG playback high CPU usage

Postby xerces8 » 25 Nov 2011 20:41

I checked the test file on an HP nw8440 laptop (Core2 Duo T7200, Windows XP):
- VLC 1.1.11 : 13 % CPU
- WMP 11: 17 % CPU

And on a desktop PC with Pentium 4 530 CPU and Windows XP:
- VLC 1.1.11 : 15 % CPU
- WMP 9: 20 % CPU

xerces8
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 22 Aug 2005 15:12

Re: MJPEG playback high CPU usage

Postby xerces8 » 25 Nov 2011 21:27

And on another laptop with T6500 and Vista:
- VLC 1.1.11 : 27 %
- WMP 11 : 27 %

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: MJPEG playback high CPU usage

Postby Jean-Baptiste Kempf » 26 Nov 2011 18:00

Which are normal, no?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

xerces8
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 22 Aug 2005 15:12

Re: MJPEG playback high CPU usage

Postby xerces8 » 26 Nov 2011 19:12

Yes, the problem are the cases with a factor 3 difference.

xerces8
Cone that earned his stripes
Cone that earned his stripes
Posts: 131
Joined: 22 Aug 2005 15:12

Re: MJPEG playback high CPU usage

Postby xerces8 » 26 Nov 2011 19:53

It is already low when using WMP. This thread is not about that.

---

I tried under Ubuntu 11.10 64 bit "live boot" and VLC 1.1.12 on the HP server. The output of top is:

Code: Select all

top - 18:51:07 up 18 min, 9 users, load average: 0.21, 0.47, 0.41 Tasks: 153 total, 2 running, 151 sleeping, 0 stopped, 0 zombie Cpu(s): 47.2%us, 10.0%sy, 0.0%ni, 42.4%id, 0.0%wa, 0.3%hi, 0.0%si, 0.0%st Mem: 4962040k total, 1284960k used, 3677080k free, 63524k buffers Swap: 0k total, 0k used, 0k free, 432720k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7180 ubuntu 20 0 828m 56m 26m S 49 1.2 0:25.40 vlc 3500 ubuntu 9 -11 286m 4824 3008 S 29 0.1 0:12.77 pulseaudio 5199 ubuntu 20 0 566m 83m 21m S 15 1.7 0:54.00 compiz 5097 root 20 0 227m 51m 9.9m S 15 1.1 0:46.46 Xorg 6866 ubuntu 20 0 311m 20m 10m R 11 0.4 0:11.22 gnome-terminal 7091 root 20 0 0 0 0 S 1 0.0 0:00.74 kworker/1:0


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 36 guests