[Multiposte] H.264 stream and 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.
Ludvig
Blank Cone
Blank Cone
Posts: 28
Joined: 08 Jun 2006 20:09
Location: France - European United Republics

[Multiposte] H.264 stream and high cpu usage

Postby Ludvig » 20 Jun 2007 17:01

j-b,

when I watch NRJ 12 HD (Channel 57),my cpu usage raises up to ...50 % !(x2 4200+).The stream bandwidth is about 5 Mb but I can't get any information on the resolution.Where's the pb ?
I usually have this kind of cpu usage with 1920*800p and with 10Mb bitrates (Ok,with Coreavc)...
Merci

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:

Postby Jean-Baptiste Kempf » 20 Jun 2007 18:17

Well, that may be normal... It means one of the CPU is full... HD decoders are not so good in VLC yet. It is going to improve soon :D
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.

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Postby CloudStalker » 20 Jun 2007 19:02

Did you try adjusting the 'loop filter' in the preferences? this sometimes helps with H.264 and high CPU usage.

Ludvig
Blank Cone
Blank Cone
Posts: 28
Joined: 08 Jun 2006 20:09
Location: France - European United Republics

Postby Ludvig » 21 Jun 2007 20:01

Well, that may be normal... It means one of the CPU is full... HD decoders are not so good in VLC yet. It is going to improve soon :D
Ok,then ! :D
But isn't the h.264 codec used for stream decoding the same than the one that is used to reed stand alone files ? Reading the last ones in 1280*720p,x.264,doesn't trigger such a high usage...
Did you try adjusting the 'loop filter' in the preferences? this sometimes helps with H.264 and high CPU usage.
:oops:
Errr,I heard of such a setting,CloudStalker,but,cough,cough,where is it and which values should I choose ?

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Postby CloudStalker » 21 Jun 2007 20:17

:oops:
Errr,I heard of such a setting,CloudStalker,but,cough,cough,where is it and which values should I choose ?
Alright it's in: Preferences > (tab) Input / Codecs > (tab) Other codecs > FFmpeg > (check the "Advanced options" box at the bottom-right corner) and set the "Skip the loop filter for H.264 decoding" to "All" from the drop-list.

Ludvig
Blank Cone
Blank Cone
Posts: 28
Joined: 08 Jun 2006 20:09
Location: France - European United Republics

Postby Ludvig » 21 Jun 2007 21:37

:shock:
Ready,CloudStalker ? I followed your indications and the drop is simply massive:20 to 25% (Well,is possible? I can't measure it precisely)! This is truly remarquable.I noticed however that some blocking was generated (Slightly reduced by linear deinterlacing) but the image is still perfectly watchable.And the bl...dy fan stopped whirling like crazy.

Merci beaucoup,garçon ! :D

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Postby CloudStalker » 21 Jun 2007 21:51

Vous êtes bienvenu. :D

Ludvig
Blank Cone
Blank Cone
Posts: 28
Joined: 08 Jun 2006 20:09
Location: France - European United Republics

Postby Ludvig » 22 Jun 2007 00:26

:wink:

A blue message is displayed (In blue):

ffmpeg warning: MBAFF + spatial direct mode is not implemented
(h264@00C73E90)
ffmpeg warning: MBAFF + spatial direct mode is not implemented
(h264@00C73E90)
ffmpeg warning: MBAFF + spatial direct mode is not implemented
(h264@00C73E90)

etc,etc

DJ
Cone Master
Cone Master
Posts: 8206
Joined: 01 Jan 2006 04:30
Location: Koloa, Hawaii USA

Postby DJ » 22 Jun 2007 08:57

Spatial direct mode should only be used for Animation and isn't implemented for MBAFF Interlaced video. PAFF Interlaced video isn't supported at all yet.

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:

Postby Jean-Baptiste Kempf » 22 Jun 2007 13:23

Vous êtes bienvenu. :D
"De rien" is the correct translation in French.
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.

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Postby CloudStalker » 22 Jun 2007 17:16

Vous êtes bienvenu. :D
"De rien" is the correct translation in French.
Oops. :lol:

kmf31
Cone that earned his stripes
Cone that earned his stripes
Posts: 308
Joined: 11 Mar 2007 21:47

Postby kmf31 » 22 Jun 2007 17:51

:oops:
Errr,I heard of such a setting,CloudStalker,but,cough,cough,where is it and which values should I choose ?
Alright it's in: Preferences > (tab) Input / Codecs > (tab) Other codecs > FFmpeg > (check the "Advanced options" box at the bottom-right corner) and set the "Skip the loop filter for H.264 decoding" to "All" from the drop-list.
This is also what I am using and which works very effeciently. There are two further options: "hurry up" and "lowres" (values 0, 1 and 2 with 2 = strongest). They seem less effective but may also be useful since the full loop-filter skiping may considerably reduce qualite in some cases.

For those who are interested NOT to put these options permanently in the preferences: it is also possible to provide them in the command line such as:
vlc --ffmpeg-hurry-up --ffmpeg-lowres 2 --ffmpeg-skiploopfilter 4 rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=617
(for NRJ12 HD for french unbundled customers of Free). I use in Linux a shell script "vlc_ecocpu.sh" containing:
vlc --ffmpeg-hurry-up --ffmpeg-lowres 2 --ffmpeg-skiploopfilter 4 $@
which may be called instead of vlc. I think this should also work with bat-scripts in Windows.

Ludvig
Blank Cone
Blank Cone
Posts: 28
Joined: 08 Jun 2006 20:09
Location: France - European United Republics

Postby Ludvig » 22 Jun 2007 23:25

Vous êtes bienvenu. :D
"De rien" is the correct translation in French.
Oops. :lol:
Let him talk,Cloud,j-b is just being picky ! :wink:
Your intention was good and this is what counts.











PS:
now,if you want to translate accurately in french "You're welcome",you would have to write the sentence the following way:"Vous êtes le bienvenu"

MetalheadGautham
Big Cone-huna
Big Cone-huna
Posts: 720
Joined: 25 Apr 2007 23:11
VLC version: 0.9 series
Operating System: ArchLinux i686
Location: well....... there is a door in front of my house
Contact:

Postby MetalheadGautham » 22 Jun 2007 23:29

Well, if unknown and unused languages can be used as a methord of insulting, ask me to give you some words in distant languages :wink:
Visit: VLC and Other alternatives to Popular Media Players
Website: thesmallerbang.wordpress.com
On Linux, blindly use VLC, SMPlayer, Kaffeine, GXine, Totem and MPlayer
Image
PM requests to attend to problems will not be entertained
Please post your question in the RIGHT forum.
SEARCH before posting to see if your question's been already answered


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests