Page 1 of 1
[Multiposte] H.264 stream and high cpu usage
Posted: 20 Jun 2007 17:01
by Ludvig
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
Posted: 20 Jun 2007 18:17
by Jean-Baptiste Kempf
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
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Posted: 20 Jun 2007 19:02
by CloudStalker
Did you try adjusting the 'loop filter' in the preferences? this sometimes helps with H.264 and high CPU usage.
Posted: 21 Jun 2007 20:01
by Ludvig
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
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Ok,then !
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.
Errr,I heard of such a setting,CloudStalker,but,cough,cough,where is it and which values should I choose ?
Posted: 21 Jun 2007 20:17
by CloudStalker
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.
Posted: 21 Jun 2007 21:37
by Ludvig
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 !
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Posted: 21 Jun 2007 21:51
by CloudStalker
Vous êtes bienvenu.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Posted: 22 Jun 2007 00:26
by Ludvig
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
Posted: 22 Jun 2007 08:57
by DJ
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.
Posted: 22 Jun 2007 13:23
by Jean-Baptiste Kempf
Vous êtes bienvenu.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
"De rien" is the correct translation in French.
Posted: 22 Jun 2007 17:16
by CloudStalker
Vous êtes bienvenu.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
"De rien" is the correct translation in French.
Oops.
![Laughing :lol:](./images/smilies/icon_lol.gif)
Posted: 22 Jun 2007 17:51
by kmf31
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.
Posted: 22 Jun 2007 23:25
by Ludvig
Vous êtes bienvenu.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
"De rien" is the correct translation in French.
Oops.
![Laughing :lol:](./images/smilies/icon_lol.gif)
Let him talk,Cloud,j-b is just being picky !
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"
Posted: 22 Jun 2007 23:29
by MetalheadGautham
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 :wink:](./images/smilies/icon_wink.gif)