Page 1 of 2

Very high cpu usage for HLS streams

Posted: 20 Apr 2014 04:18
by vel_tins
The CPU load, when playing streams from "Wilmaa" like this one:

Code: Select all

http://pebbles112-lh.akamaihd.net/i/daserste_1@97481/index_400_av-p.m3u8?sd=6&b=0-1000&rebase=on
goes up to 50%, even if the stream is paused.
The m3u8 files looks like this:

Code: Select all

#EXT-X-TARGETDURATION:10 #EXT-X-ALLOW-CACHE:YES #EXT-X-VERSION:3 #EXT-X-MEDIA-SEQUENCE:139795994 #EXTINF:10.000, http://pebbles112-lh.akamaihd.net/i/daserste_1@97481/segment139795994_400_av-p.ts?sd=10&b=0-1000&rebase=on #EXTINF:10.000, http://pebbles112-lh.akamaihd.net/i/daserste_1@97481/segment139795995_400_av-p.ts?sd=10&b=0-1000&rebase=on #EXTINF:10.000, http://pebbles112-lh.akamaihd.net/i/daserste_1@97481/segment139795996_400_av-p.ts?sd=10&b=0-1000&rebase=on #EXTINF:10.000, http://pebbles112-lh.akamaihd.net/i/daserste_1@97481/segment139795997_400_av-p.ts?sd=10&b=0-1000&rebase=on
This applies to VLC 2.0.7 and 2.1.x. and only on Windows!
No problems with Linux/Ubuntu
The debug log doesn't show any errors.
I tried different Video outputs (gl, directx, direct3d, etc.), but that made no difference.
En/disabled Hardware acceleration (DXVA2)...no difference
If I save the stream to disk and play from there, everything is fine.
So it seems to be some kind of a problem, how VLC "handles" or "interpretes" this specific hls stream/m3u8 list(?)

Re: Very high cpu usage for HLS streams

Posted: 22 Apr 2014 10:38
by Jean-Baptiste Kempf
PLease share your logs.

Re: Very high cpu usage for HLS streams

Posted: 22 Apr 2014 12:39
by vel_tins
As requested..
Windows 7/64 (high cpu ~54%)
http://pastebin.com/rHgE5dG4

Linux (Mint16 in VMWware ~8-12% cpu)
http://pastebin.com/eWx92pkZ

Re: Very high cpu usage for HLS streams

Posted: 02 May 2014 19:03
by zecarlosalmeida
Hi @vel_tins, do you could resolve the problem with the high cpu usage?

Re: Very high cpu usage for HLS streams

Posted: 31 May 2014 17:01
by rocky
same here using xbmc and vlc as alt player. xbmc cpu on a same stream 5% versus vlc 60%....

Re: Very high cpu usage for HLS streams

Posted: 01 Jul 2014 12:56
by vel_tins
This behaviour is still present in the 3.0 nightlies.
CPU load goes up to ~60% on VLC for Windows
And as mentioned above: XBMC uses around 10% on my machine.

Re: Very high cpu usage for HLS streams

Posted: 02 Jul 2014 01:09
by Rémi Denis-Courmont
And your CPU has two physical threads? If so, that seems like a live loop. Get a symbolic stack trace with a debugger and file a bug with it.

Re: Very high cpu usage for HLS streams

Posted: 28 Feb 2015 03:12
by vel_tins
Still not fixed in 2.2... :cry:
I give up.

Re: Very high cpu usage for HLS streams

Posted: 28 Feb 2015 13:13
by Lotesdelere
Still not fixed in 2.2... :cry:
I give up.
And still not fixed in v3.0 nighty builds as well.
This is getting very worrying.

Posted: 28 Feb 2015 14:46
by Rémi Denis-Courmont
Almost 8 months since my previous post in this thread, and still waiting for symbolic stack trace...

Re:

Posted: 01 Mar 2015 06:10
by vel_tins
Almost 8 months since my previous post in this thread, and still waiting for symbolic stack trace...
I'm not a developer or programmer, so I don't know how to meet your request!
I've tested this example stream (freely available, not geoblocked):

Code: Select all

http://wdr_fs-lh.akamaihd.net/i/wdrfs_weltweit@112033/index_608_av-p.m3u8?sd=10&rebase=on
on a:
AMD CPU PC Windows7/64
VMWARE with Windows 8.1 and Windows 10 Preview
Intel CPU Laptop Windows 8.1/64

and the problem occurs under all environments!
So please just play the stream and check whats happen
Thanks

Re: Very high cpu usage for HLS streams

Posted: 01 Mar 2015 09:01
by Rémi Denis-Courmont
I am not a Windows user, so I don´t know how to meet your request!

Re: Very high cpu usage for HLS streams

Posted: 01 Mar 2015 09:59
by Lotesdelere
Almost 8 months since my previous post in this thread, and still waiting for symbolic stack trace...
Yep, it must be the users' fault if, since this major bug has been reported ten months ago, no one at VideoLAN has been able to run VLC on a Windows machine for checking it.
Bloody users.


I am not a Windows user, so I don´t know how to meet your request!
However you are making changes for the Windows version, for instance about sound among other ones, so are you suggesting you can't test the changes you are making ?

Re: Very high cpu usage for HLS streams

Posted: 01 Mar 2015 10:24
by Rémi Denis-Courmont
Obvious troll is obvious.

Re: Very high cpu usage for HLS streams

Posted: 01 Mar 2015 10:25
by vel_tins
I am not a Windows user, so I don´t know how to meet your request!
well, if you don't want to help, why do you waste your time, posting in this thread?
Nice attitude anyway...

Re: Very high cpu usage for HLS streams

Posted: 01 Mar 2015 10:31
by Lotesdelere
Obvious troll is obvious.
Indeed, so obvious.

Posted: 01 Mar 2015 10:32
by Rémi Denis-Courmont
well, if you don't want to help, why do you waste your time, posting in this thread?
Nice attitude anyway...
And this is a reflection on the person that refuses to provide the technical debugging infos requested by developers, i.e. yourself, right?

Re: Very high cpu usage for HLS streams

Posted: 01 Mar 2015 10:36
by Lotesdelere
well, if you don't want to help, why do you waste your time, posting in this thread?
Nice attitude anyway...
And this is a reflection on the person that refuses to provide the technical debugging infos requested by developers, i.e. yourself, right?
He explained he doesn't know how to do it but you took it as a personal offence, for some reason, rather than giving the details to obtain what you're waiting for, for eight months.

Posted: 01 Mar 2015 10:46
by Rémi Denis-Courmont
He explained he doesn't know how to do it
And? Do you think the developers have time to hold the hands of every bug reporters, especially the volunteers? Did you consider that knowing that the procedure exists (in this cases, tracing on Windows) does not imply knowing the details of the procedure?
but you took it as a personal offence,
No. I do not care if a bug reporter or a forum poster refuses to provide requested infos. It is not just a convenient excuse but also a very valid reason to ignore the problem, and do more interesting things with my free time.

I do take offense at your later trolling and then his though.
rather than giving the details to obtain what you're waiting for, for eight months.
I am not waiting for anything, the OP is waiting for the bug to be fixed.

If the OP does not care enough to figure out how to produce the requested debugging data, and supply it, then why anybody else should? Clearly the bug is not so major if it could wait for 8 months passively.

Re: Very high cpu usage for HLS streams

Posted: 01 Mar 2015 10:48
by Lotesdelere
bla
Just explain how to do it.

Re: Very high cpu usage for HLS streams

Posted: 01 Mar 2015 11:30
by Jean-Baptiste Kempf
François will have a look about that this week.

Re: Very high cpu usage for HLS streams

Posted: 01 Mar 2015 12:19
by vel_tins
^^
Edit:
@Jean-Baptiste Kempf
sorry, I didn't recognize your reply before posting

as expected: no useful reply
@Lotesdelere
thanks for your support.
I'm out at this point because VLC isn't that important for me, to waste my time quarreling around with this person on that level.
I hope, any serious Developer will have a look at this issue.
Just open the provided link on a Windows machine.
thanks.

Posted: 01 Mar 2015 17:03
by Rémi Denis-Courmont
Just explain how to do it.
Just read the documentation.

Re: Very high cpu usage for HLS streams

Posted: 03 Mar 2015 13:51
by Ludrax
in wiki we can see how to in case of crash, but "live" is different?

Code: Select all

[Switching to thread 15 (Thread 363328.0x59394)] #0 EsOutProgramFind (p_out=p_out@entry=0x4b7a3c0, i_group=1) at ../../extras/package/win32/../../../src/input/es_out.c:1118 1118 ../../extras/package/win32/../../../src/input/es_out.c: No such file or directory.

Re: Very high cpu usage for HLS streams

Posted: 04 Mar 2015 10:41
by Jean-Baptiste Kempf
You need 'bt'