How to get better performance when playing HD H.264

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
penguincentral
New Cone
New Cone
Posts: 6
Joined: 01 Jul 2008 17:23

Re: How to get better performance when playing HD H.264

Postby penguincentral » 07 Jul 2008 17:27

This works fantastic. My 1080i video performance is heaps better. Thanks :)

enkidu
New Cone
New Cone
Posts: 9
Joined: 05 Apr 2007 11:24

Re: How to get better performance when playing HD H.264

Postby enkidu » 15 Jul 2008 15:20

My graphics card has on board video decoding, does VideoLan support, or will it support this?
This post suggests it doesn't and isn't likely to in the foreseeable future viewtopic.php?f=14&t=44499&p=140451&hilit=Avivo#p140451

I found that VLC 0.8.6* does achieve hardware acceleration of x264-encoded streams on my Nvidia GeForce Go7300, in WindowsXP SP2.

Nvidia users will recall that series 6- and 7- GPUs provide partial H.264 acceleration, while series 8- and over provide acceleration of all H.264 functions (notice I explicitly avoid the highly confusing "PureVideo" term).

Well, I encode my SD videos with x264 and VLC plays it back with hardware acceleration.
How do I know ? I get near-zero CPU usage, as opposed to 10-30% CPU usage when not accelerated.
My statement needs some qualification however :
  • 1. VLC accelerates playback if the "Output Module" is explicitly set to "DirectX", not to "Default"
    2. I have found no acceleration if it is set to "Direct3D" (or any other module)
    3. hardware acceleration is sporadic :
    • 3.1 boot my laptom, play a video with VLC -- GPU-acceleration is ON (near-zero CPU)
      3.2 play it with another player (MPC-HC for instance) -- no GPU acceleration (CPU > 20%)
      3.3 close other player and play again with VLC -- no GPU acceleration (CPU > 20%)
      3.4 reboot or go to standby & back -- -- GPU-acceleration is ON
I have only tried this with SD (720x576/PAL) content because that's all I have.
I would like the community to confirm my findings :
  • 1. with 720p content or higher
    2. with NVidia 8-series CPUs
always using WinXP SP2 of course.
My guess is that when VLC is forced to use DirectX, then it accesses the DXVA function (v1 under XP does provide hardware acceleration).

To conclude, I think the PureVideo label (if not the technology) has contributed so much fudge to this topic that people have been thrown off-track. I've been trying to achieve x264 hardware acceleration ever since I got my laptop last year, have tested dozens of players, and VLC would systematically yield the best playback results.
I figure this is why.

Any & all comments are welcome.
enkidu

heffeque
Blank Cone
Blank Cone
Posts: 92
Joined: 13 Sep 2005 04:00
VLC version: 2.0.2
Operating System: Win7-64

Re: How to get better performance when playing HD H.264

Postby heffeque » 28 Jul 2008 22:41

I found that VLC 0.8.6* does achieve hardware acceleration of x264-encoded streams on my Nvidia GeForce Go7300, in WindowsXP SP2. [...]
Is there anything similar for Linux and/or MacOS X?
(.-=Kiwi=-.)

baileyrays
New Cone
New Cone
Posts: 5
Joined: 19 Jul 2008 14:29
Contact:

Re: How to get better performance when playing HD H.264

Postby baileyrays » 30 Jul 2008 11:31

This is new to me i would like to try it tonight.

Ux64
Blank Cone
Blank Cone
Posts: 42
Joined: 17 Nov 2007 18:00
Operating System: Ubuntu 64 bit

Re: How to get better performance when playing HD H.264

Postby Ux64 » 05 Aug 2008 09:51

Any real news to this problem? I'm (as many others) looking for multithreaded version. Any news about schedules or time tables when that kind of release would be out? - Thank you!

I won't buy new full hd tv, before this problem is fixed. Because I can't view Full HD stuff with Q6600 CPU, not enough punch.

stenc55
New Cone
New Cone
Posts: 5
Joined: 01 Aug 2007 10:09

Re: How to get better performance when playing HD H.264

Postby stenc55 » 27 Aug 2008 18:31

Weird :?:

I have e4300 (overclocked to 2,7GHz) with Vista64, 8800GT and 2GB RAM.
When I tried to play Transformers.2007.1080p.HDDVD.x264-hV.mkv on beginning scene (with cube spinning from space) movie transformed to slideshow and sound was 10 sec behind picture.
I tried warious codecs, players, nothing worked. From sidebar I saw movie always used only one core.

Then I reinstalled Vista and installed ONLY VLC from 0.86. series. No tweaks, no default changes and movie played perfectly. CPU load was 30-50%, both cores used. I don't know if GPU kicked in, but movie was perfect.

Now I'm using Dell Inspirion 1520 with XP SP3 (fresh instalation). Just for test I played this movie again from USB drive and again I have absolutely no problem. Both cores used, CPU load form 20-70%, even in beginning scene. I'm using 0.9.0 on laptop.

I tried one another laptop (HP with around 14" monitor) and celeron 1,7GHz processor. Fresh installed XP SP2. I tried several 720p movies (from 4,5 to 8 GB in size) and they all played ok, CPU load from 60-90%, picture almost never freezed. I used portable VLC from 0.86 series, I don,t remember version.

Looks like using other players with load of codecs spammed into system corrupts VLC.

I'm not using ANY other player, not even PowerDVD, since 0.9.0 handles even DVD well. If anyone have issue with playing HD movies in VLC, try to clean system first, throw all other codec packs to garbage with good uninstaller and try to get rid of all codec settings left from other players.

Ux64
Blank Cone
Blank Cone
Posts: 42
Joined: 17 Nov 2007 18:00
Operating System: Ubuntu 64 bit

Re: How to get better performance when playing HD H.264

Postby Ux64 » 18 Sep 2008 13:59

I'm very curious if 0.9.2 version fixes these performance problems. It would be so great.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: How to get better performance when playing HD H.264

Postby dionoea » 18 Sep 2008 18:16

ffmpeg doesn't implement multithreaded video decoding yet. So you might get some slight performance changes due to optimizations but nothing fancy.

They're currently experimenting a multithreaded implementation of their H264 decoder ... so it should be merged in the official SVN in the near/middle future.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

colt45
Blank Cone
Blank Cone
Posts: 64
Joined: 28 Jan 2007 10:41

Re: How to get better performance when playing HD H.264

Postby colt45 » 09 Oct 2008 10:05

ffmpeg doesn't implement multithreaded video decoding yet. So you might get some slight performance changes due to optimizations but nothing fancy.

They're currently experimenting a multithreaded implementation of their H264 decoder ... so it should be merged in the official SVN in the near/middle future.
I haven't seen an announcement at http://ffmpeg.mplayerhq.hu/

However, the SoC 2008 project was completed and has been available since September 4, 2008.

Alexander_Strange.tar.gz Frame-based multithreading patch Sep 04 27.0 KB 118

http://code.google.com/p/google-summer- ... loads/list

prune
New Cone
New Cone
Posts: 6
Joined: 28 Jun 2007 15:14
Operating System: Mac OSX / Solaris
Location: Paris, France
Contact:

Re: Not quite enough...

Postby prune » 09 Oct 2008 15:49

VLC lag out on H.264 quite often myself. It's decent.
Unfortunately it isn't. In case there is some heavy h.264 stuff coming in. Like direct Blu-ray / HD-DVD rip. -> 45 gigabytes of data for 1.5 hour of stuff. It got pretty hefty bitrate so it totally kills my Q6600 CPU. And everything turns to very slow slide show.

Those settings are barely adequate for ~4 Gbytes / 1.5 hour rips.
Maybe you will run into harddrive bandwidth problems too...

Ux64
Blank Cone
Blank Cone
Posts: 42
Joined: 17 Nov 2007 18:00
Operating System: Ubuntu 64 bit

Re: Not quite enough...

Postby Ux64 » 09 Oct 2008 16:40

Those settings are barely adequate for ~4 Gbytes / 1.5 hour rips.
Maybe you will run into harddrive bandwidth problems too...
Most probably not. Harddrives easily transfer 80-100 megabytes / second.

4 Gigabytes / 1.5 hours means only 740 kilobytes / second. Which is even streamable over internet connection, nothing to do with hard drive speeds.

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

Re: How to get better performance when playing HD H.264

Postby Jean-Baptiste Kempf » 15 Oct 2008 10:58

ffmpeg doesn't implement multithreaded video decoding yet. So you might get some slight performance changes due to optimizations but nothing fancy.

They're currently experimenting a multithreaded implementation of their H264 decoder ... so it should be merged in the official SVN in the near/middle future.
I haven't seen an announcement at http://ffmpeg.mplayerhq.hu/

However, the SoC 2008 project was completed and has been available since September 4, 2008.

Alexander_Strange.tar.gz Frame-based multithreading patch Sep 04 27.0 KB 118

http://code.google.com/p/google-summer- ... loads/list

It is not finished yet, so not officially in FFmpeg, we try to avoid that.
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.

Ohajiki
New Cone
New Cone
Posts: 4
Joined: 22 Oct 2008 20:05

Re: How to get better performance when playing HD H.264

Postby Ohajiki » 22 Oct 2008 20:43

I've done as said but stilll having issues with an mp4 h.264 file

fixeon
New Cone
New Cone
Posts: 1
Joined: 11 Nov 2008 12:42

Re: How to get better performance when playing HD H.264

Postby fixeon » 11 Nov 2008 12:45

H.264 codecs are pretty CPU intensive and VLC can't use multi-cores to decode it yet.

So if your computer is dying when decoding 1080p samples from H264, do the following.
  • Open the preferences
  • Tick advanced in the lower right corner
  • Go to "Input/Codec"
  • Go to "other codecs" subcategory
  • Go to "FFmpeg"
  • Put the "skip-filter for H264" to all
  • Restart VLC
DON'T ASK help about this on IRC or I may kill you :o

Edited on public intrest by MetalheadGautham:

to the guys complaining that C2Q Q6600 and AMD Phenom can't run HD H.264:

Only ONE CORE among their 4 cores is used. Their indivudual core power is quite average. You would have a better performance with a high power per core CPU like C2D E8400.

...Thats UNLTIL multicore support appears on H264 decoder
Thx you saved my life!

this should be a sticky

traktion
New Cone
New Cone
Posts: 2
Joined: 15 Nov 2008 08:54

Re: How to get better performance when playing HD H.264

Postby traktion » 15 Nov 2008 10:18

H.264 codecs are pretty CPU intensive and VLC can't use multi-cores to decode it yet.

So if your computer is dying when decoding 1080p samples from H264, do the following.
  • Open the preferences
  • Tick advanced in the lower right corner
  • Go to "Input/Codec"
  • Go to "other codecs" subcategory
  • Go to "FFmpeg"
  • Put the "skip-filter for H264" to all
  • Restart VLC

Thanks this has given some improvement in non-1080p sources, but still any 1080p MKV file with x264/h.264 thats over 8 gigs for a movie chops constantly.

Ultimately after reading this whole thread I've learned the reasons for skipping are:

1. VLC doesnt support multithreading yet.
2. 3D video card accleration for h.264/x.264 is only partial on older video cards.
3. 3D accleration may not be enabled sometimes (reasons unknown? Using directx selection under output modules ensures acceleration?)

This should definetely be a sticky, I may have to upgrade my video card and use media player in the mean time.

I'm curious to know why my CPU is not running more than 50% capacity. Is it a CPU or GPU type of scenario where one or the other but not both working together?

traktion
New Cone
New Cone
Posts: 2
Joined: 15 Nov 2008 08:54

Re: How to get better performance when playing HD H.264

Postby traktion » 15 Nov 2008 14:06

I found a list of geforce cards with the purevideo acceleration, shows a chart of different features with hidef vs standard h264/x264 support.
http://www.nvidia.com/docs/CP/11036/Pur ... arison.pdf


Checkout this amazing h264 article over at anandtech, basically they are saying unless you get atleast a 8600 GT (strangely 8800 doesnt do full h264 support) you may still have chop on high bitrate files.

http://www.anandtech.com/video/showdoc.aspx?i=2977

gionnico
New Cone
New Cone
Posts: 2
Joined: 26 Jan 2009 00:42

Re: How to get better performance when playing HD H.264

Postby gionnico » 26 Jan 2009 00:48

I found higher bitrate H.264 videos which still won't run on with Q6600 CPU.
Hey you Q6600 guys, why don't you overclock it?

I also have Q6600 .. (stepping G0 is better) and I did 2.4 -> 3.2 GHz ..

I'll try x264 high-ratio video, but performances should be really better.

at-traktion: well do vlc need to worry about how gpu compute a video stream? isn't it a low-level operation? or PureVideo needs specific vlc support to exploit the full capabilities of our video cards?


PS: and what about 8800GT? It isn't "full-hd" accelerated?

Shakama
Blank Cone
Blank Cone
Posts: 53
Joined: 05 Aug 2008 02:18

Re: How to get better performance when playing HD H.264

Postby Shakama » 07 Feb 2009 11:10

Weird :?:

I have e4300 (overclocked to 2,7GHz) with Vista64, 8800GT and 2GB RAM.
When I tried to play Transformers.2007.1080p.HDDVD.x264-hV.mkv on beginning scene (with cube spinning from space) movie transformed to slideshow and sound was 10 sec behind picture.
I tried warious codecs, players, nothing worked. From sidebar I saw movie always used only one core.

Then I reinstalled Vista and installed ONLY VLC from 0.86. series. No tweaks, no default changes and movie played perfectly. CPU load was 30-50%, both cores used. I don't know if GPU kicked in, but movie was perfect...

Looks like using other players with load of codecs spammed into system corrupts VLC.

I'm not using ANY other player, not even PowerDVD, since 0.9.0 handles even DVD well. If anyone have issue with playing HD movies in VLC, try to clean system first, throw all other codec packs to garbage with good uninstaller and try to get rid of all codec settings left from other players.

does this mean I shouldnt install K-lite codec pack because it causes problems in VLC?

bdforbes
New Cone
New Cone
Posts: 1
Joined: 20 Feb 2009 23:44

Re: How to get better performance when playing HD H.264

Postby bdforbes » 20 Feb 2009 23:47

I got a HQ video off Youtube, it's h264 and according to ffmpeg is 2129 kb/s. It plays fine in mplayer but it's choppy in VLC, even with this fix. Aren't the two players both using ffmpeg though? Why should there be a difference?

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

Re: How to get better performance when playing HD H.264

Postby Jean-Baptiste Kempf » 21 Feb 2009 09:24

Give us the samples, please.
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.

Username2324
New Cone
New Cone
Posts: 7
Joined: 15 Dec 2008 06:53

Re: How to get better performance when playing HD H.264

Postby Username2324 » 22 Feb 2009 00:09

Doesn't this lower the quality of your video?

AOD_WMD
New Cone
New Cone
Posts: 1
Joined: 25 Feb 2009 02:06

Re: How to get better performance when playing HD H.264

Postby AOD_WMD » 25 Feb 2009 02:10

This fixed my problem. Thank you so much for providing a quick fix.







q9500w/8gb/2.5TB0+1-6hdd/9800gx2

jeroensky
Cone that earned his stripes
Cone that earned his stripes
Posts: 129
Joined: 22 Aug 2005 19:07
VLC version: 0.9.8a
Operating System: Windows & Linux
Location: EU, NL, Amsterdam.
Contact:

Re: How to get better performance when playing HD H.264

Postby jeroensky » 11 Mar 2009 19:31

Just a question.
VLC uses as much gpu power as possible with default configuratiuon right?
So if you got a say nvidia graphics card, with hardware h.264 decoder in it, then i suppose vlc is using that instead by doing it the software/cpu way right?
My mobile {PSP} linksite. .:: http://sites.google.com/site/jeroenskyterritory/ ::.

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

Re: How to get better performance when playing HD H.264

Postby Jean-Baptiste Kempf » 11 Mar 2009 23:11

Just a question.
VLC uses as much gpu power as possible with default configuratiuon right?
So if you got a say nvidia graphics card, with hardware h.264 decoder in it, then i suppose vlc is using that instead by doing it the software/cpu way right?
No, it cannot (yet)
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.

Darren32
New Cone
New Cone
Posts: 2
Joined: 20 Apr 2009 09:44

Re:VLC media player can't play sound in a HD H.264 file

Postby Darren32 » 20 Apr 2009 10:10

the sound codec is mp4a.
I can play it with sound using Dvix player but cannot play it using VLC player :(


Return to “General VLC media player Troubleshooting”

Who is online

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