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.
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:VLC media player can play sound in a HD H.264 file

Postby jeroensky » 20 Apr 2009 18:39

the sound codec is mp4a.
I can play it with sound using Dvix player but cannot play it using VLC player :(
i don't get it. (maybe it's more handy to make a new audio related topic)
H264 is video coding. Mp4a is audio that is supported by vlc (i have it in a avi container in a music video with h264 as video coding(made by avidemux), and in mp4 container as audio only *.m4a(made by foobar2000)).
This topic is about HD right?
In most HD (High Definition) media their is no compressed audio like mp4a/AAC. (correct me if i'm wrong)
http://en.wikipedia.org/wiki/Comparison ... al_details
4 example Blu Ray-> Video is H.264 audio is 5.1 multichannel LPCM or Dolby TrueHD or DTS-HD Master audio.

By the way, AAC is supported by VLC. My RSS2.0 feed is the evidence. :lol:
But I've to say, AAC can be encoded in many different kinda rates/values.
Bit rate/bit depth/sample rate/channels must be supported by audio hardware. For example a PSP, can go up to:"320Kbps,16bit,48KHz,2channels, (or lower).
More info about AAC can be found here, http://en.wikipedia.org/wiki/Advanced_Audio_Coding then you discover that mp3/wma is so outdated :geek: .
(Ogg-Vorbis/Flac rules too 8) )
My mobile {PSP} linksite. .:: http://sites.google.com/site/jeroenskyterritory/ ::.

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

H.264 vlc multicore multithreading performance 1.0 pre

Postby Ux64 » 07 May 2009 19:05

Problem solved. I updated to VLC 1.0 prerelease, and i works perfectly with H.264 files.

Only problems are high bitrate files, which do take up whole system memory bandwidth with Q6600 even core loads are managable. But that's hardware issue, as far as I know.

- Thanks!

Lotesdelere
Cone Master
Cone Master
Posts: 9974
Joined: 08 Sep 2006 04:39
Location: Europe

Re: H.264 vlc multicore multithreading performance 1.0 pre

Postby Lotesdelere » 07 May 2009 23:30

Only problems are high bitrate files, which do take up whole system memory bandwidth with Q6600 even core loads are managable. But that's hardware issue, as far as I know.
Not only a hardware issue. VLC 1.0.0 is still having some problems with some files.

Here is a high bitrate sample which is playing fine in MPlayer but VLC has troubles to play it properly:
http://rapidshare.com/files/82525583/ki ... 4.mkv.html

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

Re: H.264 vlc multicore multithreading performance 1.0 pre

Postby Ux64 » 08 May 2009 05:38

Not only a hardware issue. VLC 1.0.0 is still having some problems with some files.
Ok good to know. I have encountered not problems but performance issues with tasks when all cores access main memory very agressively. I'm taking about files with more than 4 gigabytes / hour and scenes with very much moving stuff toward differrent directions. Full hd 1080p. Like huge bird flock with thousands of birds and forest as background for that flock. So absolutely every pixel changes for every frame, and there are high contrast differences no "flat" surfaces and all image blocks move and change and partly to opposing directions. I know it's the worst possible scenario for compressing data.
Here is a high bitrate sample which is playing fine in MPlayer but VLC has troubles to play it properly:
http://rapidshare.com/files/82525583/ki ... 4.mkv.html
Download just finished... Btw. Laugh, it was JUST the clip what I were talking about. Ha ha... ;)

But when it plays without problems I'm very happy.

... Michael Palins New Europe and Planet Earth 2006 ... I have been saving those for years while waiting that playback would be working. Total playback time about 19 hours and about 80 gigs of data.

rarspace01
New Cone
New Cone
Posts: 1
Joined: 16 May 2009 12:23
VLC version: 0.9.9
Operating System: Win66/ubuntu32/64
Location: 127.0.0.1

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

Postby rarspace01 » 16 May 2009 12:37

Is there any link to the h264 decoder src of the VLC, or any thread where the multithreaded code is discussed?
I have some C/C++ expierence and i would like to help to improve playback on multi core cpus.

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 » 16 May 2009 23:28

Is there any link to the h264 decoder src of the VLC, or any thread where the multithreaded code is discussed?
I have some C/C++ expierence and i would like to help to improve playback on multi core cpus.
We use ffmpeg for h264 decoding.
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.

Florin64x
New Cone
New Cone
Posts: 2
Joined: 21 May 2009 19:15

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

Postby Florin64x » 21 May 2009 19:17

will vlc 1.0 support multicore? for all video formats..? or only for H264

omodecarton
Blank Cone
Blank Cone
Posts: 11
Joined: 07 Apr 2008 21:46
Operating System: Windows XP SP3

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

Postby omodecarton » 23 May 2009 21:31

I prefer GPU support than multi CPU!

visagoo
New Cone
New Cone
Posts: 1
Joined: 28 May 2009 10:18

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

Postby visagoo » 28 May 2009 10:26

oh thanks God I tried it and my problem were solved.

flymann
New Cone
New Cone
Posts: 1
Joined: 28 May 2009 19:43

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

Postby flymann » 28 May 2009 20:52

Hi,

First thanks for developing this software, it's really a good solution for a all-in-one player.

Then, the trouble...

I'm trying to play a 1080p video that seem to be encoded with AVC1 codec.

My hardware configuration is "Core 2 Duo E8400" but running at 4Ghz, and with 4GB RAM.

The task manager says that CPU resources required for playing the video are around 20 an 30 percent (take a look on the screenshot).

But video still have some periodic latency when I play it.

Image

I've tried your "trick" but I think it is just to "relax" the system in order to unload it from to much work (with this high bitrate), and of course, it doesn't work.


Do you have any idea to fix this "issue" ?

EDIT : Played on WMP (Windows Media Player) with Haali codec and AC3filter 1.60b, there is no lag.

Alexsource
Cone that earned his stripes
Cone that earned his stripes
Posts: 102
Joined: 22 Nov 2006 15:45

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

Postby Alexsource » 29 May 2009 21:26

Hi,

First thanks for developing this software, it's really a good solution for a all-in-one player.

Then, the trouble...

I'm trying to play a 1080p video that seem to be encoded with AVC1 codec.

My hardware configuration is "Core 2 Duo E8400" but running at 4Ghz, and with 4GB RAM.

The task manager says that CPU resources required for playing the video are around 20 an 30 percent (take a look on the screenshot).

But video still have some periodic latency when I play it.
I've tried your "trick" but I think it is just to "relax" the system in order to unload it from to much work (with this high bitrate), and of course, it doesn't work.


Do you have any idea to fix this "issue" ?

EDIT : Played on WMP (Windows Media Player) with Haali codec and AC3filter 1.60b, there is no lag.
This sounds similar to my problem -> viewtopic.php?f=14&t=59824
Do you get video freezes with audio still running and "main warning: late picture skipped " in the messages window? (verbosity set to 2)

Lotesdelere
Cone Master
Cone Master
Posts: 9974
Joined: 08 Sep 2006 04:39
Location: Europe

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

Postby Lotesdelere » 29 May 2009 22:24

I'm trying to play a 1080p video that seem to be encoded with AVC1 codec.
My hardware configuration is "Core 2 Duo E8400" but running at 4Ghz, and with 4GB RAM.
Please post a sample of the video.
Use DGsplit and read here how to do it:
viewtopic.php?f=14&t=57724&p=193335#p193335

Lotesdelere
Cone Master
Cone Master
Posts: 9974
Joined: 08 Sep 2006 04:39
Location: Europe

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

Postby Lotesdelere » 29 May 2009 22:28

Will my old cpu (Pentium D 2.8ghz duel core) in my dell xps 400 work with my new computer?
I'm afraid this CPU will be a bit short for some 1080p videos. It should be OK for 720p though.
But nowadays you need at the very least a Core2Duo at 2.6 GHz to be able to play 1080p smoothly in software mode. And also a good motherboard ;-)

highstrung667
New Cone
New Cone
Posts: 1
Joined: 16 Aug 2009 13:50

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

Postby highstrung667 » 16 Aug 2009 13:55

Hello,

I am having the same issue with stuttering and sometimes freezing of images. The strange thing is though that on exectly the same system the movie plays out smoothly using Zoom player. Don't they use the same codecs or what can be the difference. Can somebody help me understand?

kurkosdr
Cone that earned his stripes
Cone that earned his stripes
Posts: 101
Joined: 14 Jun 2009 00:36

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

Postby kurkosdr » 08 Nov 2009 00:35

Just do something about the multicore support, at least for H.264 vids only. You can always provide help to the ffmpeg team, so the codecs become threaded. If you are the devs that bought us x264, you could make an exellent threaded decoder if you cooperated with the ffmpeg team. After all, ffmpeg-mt is almost done.

It may look trivial, but i ve seen fairly powerfull pcs with core 2 duos been brought to their knees due to the single threaded codecs, while other threaded apps cope with less powerfull systems fairly well. Now that HD videos in open source formats like mkv's are everywhere, we need vlc to be able to handle them.

GPU decoding with openCL is also good, but people with multicores are much more, plus it's almost done project. What is preventing ffmpeg-mt going into vlc? i really hope to see threaded codecs on vlc someday soon.

hallelujahtalon
New Cone
New Cone
Posts: 1
Joined: 09 Oct 2009 06:52

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

Postby hallelujahtalon » 10 Nov 2009 06:43

Will my old cpu (Pentium D 2.8ghz duel core) in my dell xps 400 work with my new computer?
I'm afraid this CPU will be a bit short for some 1080p videos. It should be OK for 720p though.
But nowadays you need at the very least a Core2Duo at 2.6 GHz to be able to play 1080p smoothly in software mode. And also a good motherboard ;-)
Thanks for your info. How about vram? How much I need to paly 1080p?

Thanks again

kurkosdr
Cone that earned his stripes
Cone that earned his stripes
Posts: 101
Joined: 14 Jun 2009 00:36

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

Postby kurkosdr » 10 Nov 2009 11:22

Will my old cpu (Pentium D 2.8ghz duel core) in my dell xps 400 work with my new computer?
I'm afraid this CPU will be a bit short for some 1080p videos. It should be OK for 720p though.
But nowadays you need at the very least a Core2Duo at 2.6 GHz to be able to play 1080p smoothly in software mode. And also a good motherboard ;-)
So, why not make VLC's codecs multicore, so than even the old Pentium D can handle 1080p. The reason you need Core2Duo at 2.6 GHz is because only the one core is actually in use by VLC. I have seen other software perform fine in lower spec computers, because they are multicore.

We want multicore in VLC!

lzrs21lz
New Cone
New Cone
Posts: 1
Joined: 27 Dec 2009 14:11

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

Postby lzrs21lz » 27 Dec 2009 14:16

Same probs here. 1080p freezing/ unable to watch. Do something please ! It's a shame for such a great player to lag behind others

napx
Blank Cone
Blank Cone
Posts: 30
Joined: 23 Aug 2009 18:49

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

Postby napx » 12 Jan 2010 21:10

I agree ffmpeg-mt will be VLC's performance salvation. IMHO It is even more straightforward for the user than trying to activate DXVA.
For example I have a 8400M GS and it is supposed to be able to do DXVA, but I've had no luck with other players that support that. On the other hand I am getting great results on 1080P from ffmpeg-mt through MPC-HC & ffdshow combination because I have a dual core CPU.
However I would like to have all that performance with VLC's excellent features.
Can we get ffmpeg-mt into VLC PLEASE ?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 12 Jan 2010 21:15

You will ffmpeg-mt into VLC when ffmpeg-mt gets into ffmpeg?

VLC cannot have two different ffmpeg's.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kurkosdr
Cone that earned his stripes
Cone that earned his stripes
Posts: 101
Joined: 14 Jun 2009 00:36

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

Postby kurkosdr » 20 Jan 2010 11:59

...Thats UNLTIL multicore support appears on H264 decoder
And... 2 years later, we are still in the dark about that issue.

I don't expect VLC's codecs to go multicore the next day, but a nice briefing about what needs to be done ("where are we now?") and when to expect it to come would be nice.

napx
Blank Cone
Blank Cone
Posts: 30
Joined: 23 Aug 2009 18:49

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

Postby napx » 23 Jan 2010 20:51

It looks like it basically boils down to waiting for the relevant ffmpeg release (current version is 0.5 released on 2009-03-10).
However their plans for the next version says nothing about what happens to ffmpeg-mt or multithread... http://ffmpeg.org/changelog.html
And then we would need a new VLC release after that.
Looks like a long wait... A pity because this is pretty much THE MOST NEEDED improvement...

kurkosdr
Cone that earned his stripes
Cone that earned his stripes
Posts: 101
Joined: 14 Jun 2009 00:36

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

Postby kurkosdr » 25 Jan 2010 22:10

It looks like it basically boils down to waiting for the relevant ffmpeg release (current version is 0.5 released on 2009-03-10).
However their plans for the next version says nothing about what happens to ffmpeg-mt or multithread... http://ffmpeg.org/changelog.html
And then we would need a new VLC release after that.
Looks like a long wait... A pity because this is pretty much THE MOST NEEDED improvement...
And why is it so goddamn difficult for the videolan team to compile the next version of VLC with ffmpeg-mt instead of ffmpeg?

Don't believe the fud people are saying on other forums, ffmpeg-mt is bug free. The guys at Mplayer have been using it for months, and with all the people using mplayer, no complaints where heard.

I 'll even go as far as to drop the idea of someone compiling VLC with ffmpeg-mt and make a fork if videolan's weird obsession with plain (non mt) ffmpeg continues...

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 » 27 Jan 2010 12:59

It looks like it basically boils down to waiting for the relevant ffmpeg release (current version is 0.5 released on 2009-03-10).
However their plans for the next version says nothing about what happens to ffmpeg-mt or multithread... http://ffmpeg.org/changelog.html
And then we would need a new VLC release after that.
Looks like a long wait... A pity because this is pretty much THE MOST NEEDED improvement...
And why is it so goddamn difficult for the videolan team to compile the next version of VLC with ffmpeg-mt instead of ffmpeg?

Don't believe the fud people are saying on other forums, ffmpeg-mt is bug free. The guys at Mplayer have been using it for months, and with all the people using mplayer, no complaints where heard.

I 'll even go as far as to drop the idea of someone compiling VLC with ffmpeg-mt and make a fork if videolan's weird obsession with plain (non mt) ffmpeg continues...
Patches for VLC and FFmpeg-mt already exist, but it is NOT bug-free. It has many timestamps problem.
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.

kurkosdr
Cone that earned his stripes
Cone that earned his stripes
Posts: 101
Joined: 14 Jun 2009 00:36

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

Postby kurkosdr » 27 Jan 2010 18:18

Patches for VLC and FFmpeg-mt already exist, but it is NOT bug-free. It has many timestamps problem.
And the timestamps problem is an ffmpeg-mt bug (aka ffmpeg-mt's problem) or a VLC-specific problem?

If it is VLC's problem, why isn't there a bug for that defect in trac?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests