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.

How to get better performance when playing HD H.264

Postby j-b on Mon Nov 26, 2007 7:53 pm

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
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer and Sites administrator
If you want an answer to your question, just be specific and verbose. Don't PM.
j-b
Site Admin
Site Admin
 
Posts: 12671
Joined: Fri Jul 22, 2005 3:29 pm
Location: Cone, France

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

Postby fred333 on Tue Nov 27, 2007 8:04 pm

Thanks for the advice and guidance. I will have to try it tonight.
fred333
New Cone
New Cone
 
Posts: 8
Joined: Wed Nov 21, 2007 12:19 am

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

Postby CloudStalker on Wed Nov 28, 2007 7:27 am

j-b wrote:DON'T ASK help about this on IRC or I will kill you :o


I'm asking on IRC right now. :)
User avatar
CloudStalker
Big Cone-huna
Big Cone-huna
 
Posts: 2540
Joined: Sun Jan 14, 2007 8:00 pm
Location: Wherever it is, it's far from peoplez

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

Postby j-b on Wed Nov 28, 2007 11:15 am

CloudStalker wrote:
j-b wrote:DON'T ASK help about this on IRC or I may kill you :o


I'm asking on IRC right now. :)


I don't care, I wasn't on IRC all day... SOme people have to work...
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer and Sites administrator
If you want an answer to your question, just be specific and verbose. Don't PM.
j-b
Site Admin
Site Admin
 
Posts: 12671
Joined: Fri Jul 22, 2005 3:29 pm
Location: Cone, France

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

Postby Ux64 on Sun Dec 16, 2007 5:46 pm

Thank you!

This solved my problem with choppy h264 videos.
User avatar
Ux64
Blank Cone
Blank Cone
 
Posts: 42
Joined: Sat Nov 17, 2007 7:00 pm

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

Postby Ux64 on Fri Dec 28, 2007 6:44 am

I found higher bitrate H.264 videos which still won't run on with Q6600 CPU. ;( (One core maxes out)

But I'm sure problem is being solved.
User avatar
Ux64
Blank Cone
Blank Cone
 
Posts: 42
Joined: Sat Nov 17, 2007 7:00 pm

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

Postby brass2themax on Tue Jan 08, 2008 4:38 am

I've had VLC lag out on H.264 quite often myself. It's decent when you change the settings like suggested above, but I still get better overall performance out of Media Player Classic with the 'proper' builds of ffdshow and even CAVC.

Things can only get better though, VLC is a great tool, lots of room for improvement.
brass2themax
New Cone
New Cone
 
Posts: 9
Joined: Tue Oct 10, 2006 9:52 pm

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

Postby thresh on Thu Jan 17, 2008 12:19 am

we all hope this would be "fixed" once there's a slice-based decoding implementation available in ffmpeg.
jid:thresh@altlinux.org
thresh
Blank Cone
Blank Cone
 
Posts: 56
Joined: Wed Mar 22, 2006 12:28 pm
Location: Korolev, Russian Federation

Not quite enough...

Postby Ux64 on Thu Jan 17, 2008 1:28 pm

brass2themax wrote: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.
User avatar
Ux64
Blank Cone
Blank Cone
 
Posts: 42
Joined: Sat Nov 17, 2007 7:00 pm

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

Postby revolunet on Thu Jan 17, 2008 2:12 pm

welcome back to the 80's when we needed the most up-to-date computer to play a single video...
VLC web stuff : http://vlc.revolunet.com
VLC & web IT consulting - http://www.revolunet.com
revolunet
Big Cone-huna
Big Cone-huna
 
Posts: 515
Joined: Wed Oct 17, 2007 1:16 pm
Location: Paris, France

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

Postby Ux64 on Thu Jan 17, 2008 4:55 pm

revolunet wrote:welcome back to the 80's when we needed the most up-to-date computer to play a single video...


I knew I had problem with my old AMD 4500+ CPU... But now I got Q6600 and it's not enough either. ;(

Off topic babbling.

I remember time when it was better to convert JPG images to GIF images before showing. It took so long time to show JPG images. ~20-30 seconds / image. (At that moment most hard drives got something like 40 megabytes of space and 286 cpu was hot!)

Also often palette was better optimized with proper conversion.

After that came MP3 it was so heavy compression. At first compressing CD to MP3 took several days. And also most of comps didn't play mp3 files directly. So it was better to convert those to wav for playing. Which wasn't either too bright idea, because most of hard drives got something like 120 megabytes of space.

When DivX came, it was quite nice. My 450 MHz Pentium just barely decoded it in time. ;) But yeah, since that though challenge for home comps have been video compression. It's nice to see what the challenge will be in future when we get 1000 more or even more. Now I got 1 terabyte of hard disk space and 4x 2400 MHz cores. But that's still not enough for pre-uncompression or realtime decoding with software which uses only one core. And having 4 gigabyte of memory won't help.
Last edited by Ux64 on Sat Jan 26, 2008 11:27 am, edited 5 times in total.
User avatar
Ux64
Blank Cone
Blank Cone
 
Posts: 42
Joined: Sat Nov 17, 2007 7:00 pm

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

Postby j-b on Thu Jan 17, 2008 7:46 pm

We are working on it, but this is complex stuff.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer and Sites administrator
If you want an answer to your question, just be specific and verbose. Don't PM.
j-b
Site Admin
Site Admin
 
Posts: 12671
Joined: Fri Jul 22, 2005 3:29 pm
Location: Cone, France

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

Postby native on Sat Jan 26, 2008 8:45 am

Really appreciate this - solved a very confusing problem for me

Works a treat with 1080p movie I grabbed earlier that just would not play correctly..

You are a Champ , Thanks
native
New Cone
New Cone
 
Posts: 2
Joined: Sat Jan 26, 2008 7:14 am

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

Postby Ux64 on Sat Jan 26, 2008 11:26 am

These are non-educated thoughts. Just a quick brainstorm without any deeper thoughts...

I wonder if it would be possible to allow longer buffering and if it would help pipelining decoding process? Even so that every core would work separately from different keyframe. Altough current video compressors place keyframes very sparsely. Having enough (?) memory would allow this kind of processing.

Did I get something wrong or does field decoding require also field compressed material? Or can any material easily be decoded with field decoding? Striping image in to different fields.
User avatar
Ux64
Blank Cone
Blank Cone
 
Posts: 42
Joined: Sat Nov 17, 2007 7:00 pm

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

Postby LudwigJ on Thu Jan 31, 2008 9:11 pm

Thanks for the info. It's running smoothly right now :D
LudwigJ
New Cone
New Cone
 
Posts: 1
Joined: Thu Jan 31, 2008 9:07 pm

Next

Return to General VLC media player Troubleshooting

Who is online

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