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.
shrikant.tillu
Blank Cone
Blank Cone
Posts: 20
Joined: 14 Sep 2008 15:16

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

Postby shrikant.tillu » 28 Jan 2010 03:21

why in AVIDumux H264 file is not properly played? Also it ask whether' indexing ' is required when H264 file is to be imported.The playback and audio mismatches when replayed the H264 file imported in safe mode.Or let me know whether H264 format not supported by AVIdemux.

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 » 28 Jan 2010 11:49

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?

ffmpeg-mt regression compared to ffmpeg.
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 » 28 Jan 2010 17:46

ffmpeg-mt regression compared to ffmpeg.
One moe question: Which of the one is true: a) that the regression also appears in other players, like Mplayer? or b) the regression appears only in VLC? If it's the first, then kudos for the videolan team for keeping it safe.

moviemaniac
Blank Cone
Blank Cone
Posts: 19
Joined: 10 May 2009 10:19
Operating System: Linux
Location: Austria
Contact:

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

Postby moviemaniac » 16 Feb 2010 13:43

Could anyone tell me how to enable ffmpeg-multithread-decoding in VLC?

Is it enough to build vlc against ffmpeg-mt or do I have to hack something (if so, what?)
I'd love to test this to keep track of ffmpeg-mt's progress.

thanks!
Greetings from Austria!

Image

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 » 18 Feb 2010 17:30

Could anyone tell me how to enable ffmpeg-multithread-decoding in VLC?

Is it enough to build vlc against ffmpeg-mt or do I have to hack something (if so, what?)
I'd love to test this to keep track of ffmpeg-mt's progress.

thanks!
Agreed, a handy guide on how to compile VLC with ffmpeg-mt would be nice for people like me that don't bother risking.

Can someone just compile VLC with ffmpeg-mt, or we have to change something?

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 » 18 Feb 2010 17:54

You have to patch both.
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.

jocamero
New Cone
New Cone
Posts: 4
Joined: 22 Feb 2010 21:53

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

Postby jocamero » 22 Feb 2010 22:15

You have to patch both.
Are there any instructions on how to accomplish this?

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 » 23 Feb 2010 14:18

You have to patch both.
Are there any instructions on how to accomplish this?
From j-b's sayings, I suppose you can't just click on a checkbox or add a flag to the compiler and magically make VLC compile with ffmpeg-mt instead of ffmpeg. You may need to do some actual programing to make VLC and ffmpeg-mt bond together. Is that correct?

Anyway, I still can't understand how the guys at Mplayer delivered their player with ffmpeg-mt, since ffmpeg-mt has regressions on H.264 playback. I guess bundling bleeding edge stuff in consumer-oriented packages is the way linux rolls.

PS: Does the 1.0.5 version add any speed to H.264 playback? People say it's faster than 1.0.3 (how much faster?)

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 » 23 Feb 2010 14:27

PS: Does the 1.0.5 version add any speed to H.264 playback? People say it's faster than 1.0.3 (how much faster?)
Yes. Between 5% and 20% faster depending on the sample.
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.

mrbeanz
New Cone
New Cone
Posts: 1
Joined: 02 Mar 2010 23:20

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

Postby mrbeanz » 02 Mar 2010 23:39

I wanted to simply voice my support for making multithreading the top priority for the VLC Player.

Simply put, when a high definition video reaches a high enough bitrate, a single core simply cannot handle the load. It's not so much that 1080p is a problem, it's when a video is encoded at a high enough bitrate that multithreading becomes a necessity.

I have some clips available which make for a perfect example.

http://mirror05.x264.nl/Dark/x264clips/

lowbitrate*.mkv is obviously a low bit rate video file.
ironman.mkv and vforvendetta.mkv are 720p files and should be playable on a single core smoothly on any recent CPU.

However, BigBuckBunny.mkv and PlanetEarthBirds.mkv make for a very interesting comparison. They are both in 1080p, however due to the scenes in the videos, they end up being VERY different.

BigBuckBunny ends up being able to stay at a relatively low bitrate, usually peaking around 5kbps to 6kbps. On my dual core laptop, this doesn't push the single core in use by VLC to 100%, of course the other core is completely idle at 0%.

PlanetEarthBirds is an entirely different story. Due to the detail of the scenes being represented, this video pushes EXTREMELY high bitrates. I see bitrates upwards of 20kpbs at times while playing this video, and obviously this completely pegs the single core that VLC will use and the video ends up being very choppy and unwatchable.

Actually, as I type this, and watching this high bitrate video, I am noticing that task manager states that VLC is using sometimes around 60% of the CPU. This means it must be using multithreading to a very minor degree, however it is obviously not enough.

I can play this same video in Media Player Classic, or heck, even Windows Media Player. With full multithreading support, this video plays back perfectly smooth.

I just wanted to bring this to the developers attention along with sample videos for them to test against. These are not my videos by the way, but make for great samples.

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 » 03 Mar 2010 12:04

Use VLC 1.1 and DxVA2
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.

jocamero
New Cone
New Cone
Posts: 4
Joined: 22 Feb 2010 21:53

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

Postby jocamero » 04 Mar 2010 05:38

Is there an OS X equivalent?
Use VLC 1.1 and DxVA2

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 » 04 Mar 2010 12:46

Any of you guys still having hopes that ffmpeg-mt will be on time for VLC 1.1? I still do.



Anyway, here is a question: if I use DXVA, will it use VLC's decoders, or something else? I want to use VLC's decoders, not some other decoder provided by the graphics card vendor. I recently read somewhere that DXVA doesn't use your players codecs, the player just submits the video for decoding and the graphics card drivers do the decoding.

mei2050133
New Cone
New Cone
Posts: 1
Joined: 09 Apr 2010 11:16

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

Postby mei2050133 » 09 Apr 2010 11:29

I don't often use H.264,so I do not much ahout his performance.Through reading the post,I understand more,it is very useful,thank you for sharing.

hostonmark
New Cone
New Cone
Posts: 3
Joined: 03 May 2010 15:15

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

Postby hostonmark » 10 May 2010 14:30

In order to increase the performance of HD H.264 while playing ,it consist of 3 basic parts a black USB dongle,an extension cable and a CD containing speedy conversion software and a plug-in that works with programs.]

(I)USB dongle now offers following

1.Direct-from-HD camcorder transfers.
2.Simplifying the process of locating the video clips on a connected camcorder.
3.Offering them up for conversion.

( II )Software
-> Itadds the option of higher-resolution H.264 hardware encoding assistance,enabling both 720p and 1080p transcoding with simple presets.
Mistakes are the portals of discovery

S.Bartfast
New Cone
New Cone
Posts: 3
Joined: 24 Jun 2010 12:20

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

Postby S.Bartfast » 24 Jun 2010 13:49

  • 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
I've just installed VLC 1.0.5 on a brand new Laptop and am trying to improve the H.264 playback but arn't able to work out how to
  • Put the "skip-filter for H264" to all
Has the setting changed in 1.0.5?


EDIT: Could it be the "Skip the loop filter for H.264 decoding"?
I have tried setting this to 'All' but it doesn't seem to change anything.

LuxZg
Blank Cone
Blank Cone
Posts: 17
Joined: 02 Jul 2010 12:26

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

Postby LuxZg » 03 Jul 2010 09:38

OK, time to shoot myself straight in the head :/ Thanks j-b ..

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 » 03 Jul 2010 17:24

  • 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
I've just installed VLC 1.0.5 on a brand new Laptop and am trying to improve the H.264 playback but arn't able to work out how to
  • Put the "skip-filter for H264" to all
Has the setting changed in 1.0.5?


EDIT: Could it be the "Skip the loop filter for H.264 decoding"?
I have tried setting this to 'All' but it doesn't seem to change anything.
1.1.0 has faster h264.
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.

cinderwolf
New Cone
New Cone
Posts: 9
Joined: 14 Jul 2010 02:38

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

Postby cinderwolf » 14 Jul 2010 02:51

This might go without saying - but I had originally tried this method on my laptop (1.66ghz dual core AMD chip - 256L2 cache) which was HORRIBLE with alot of 72- resolutioned h.264 encoded films. Enabling this option will allow for less "skipping", but drastically reduces the quality of the video.

I've actually found that the quality being reduced as much as it is, it's simpler to either use a non-h.264 version of the film, or obtain an HD Media Player of sorts. I'm not trying to deterr, just simply stating a fact is all. I still attempt to run them myself from time to time on the laptop though!

garlantinapple
New Cone
New Cone
Posts: 9
Joined: 14 Jul 2010 06:02
VLC version: windows
Operating System: windows
Location: USA
Contact:

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

Postby garlantinapple » 19 Jul 2010 11:53

You would have a better performance with a high power per core CPU like C2D E8400.

Michele
Blank Cone
Blank Cone
Posts: 89
Joined: 23 May 2010 20:23

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

Postby Michele » 01 Aug 2010 20:14

Put the "skip-filter for H264" to all
Thank you very much for this trick. Now my 1080p videos go very well!

I just wanted to ask you what this option does. Sorry if you have told it before in this topic but it is very long and I have not time to read it completely.

Thanks.

EDIT: Ok, I have understood what this option is about.

Now, I would be grateful if you can tell me what the other options mean: non-ref, bidir, non-key

wang888
New Cone
New Cone
Posts: 3
Joined: 25 Aug 2010 07:40

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

Postby wang888 » 27 Aug 2010 10:45

This solved my problem with choppy h264 videos.

mstale
New Cone
New Cone
Posts: 2
Joined: 09 Aug 2010 20:17

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

Postby mstale » 14 Sep 2010 13:20

Hello,

I am trying to transcode one HD MPEG4 1080i video in SD MPEG2 video.
But transcoded video has motion blur effect on faster movements.
Because this video is football game, there are a lot of faster movements, so video is bad.
I am tray to play original video (HD MPEG) and I see motions blur effect too. So a suppose problem is decoding.
I tried with differences OS (Linux Centos, Windows HP, Windows 7 64 bit )
I used differences versions of VLC (1.1.2, 1.1.4).
Processor is I7 930, 8 MB RAM, processor does not exceed 30%
I’m attach part of a video(100MB):
http://rapidshare.com/files/418977511/arena1_hd.ts

Have anyone idea where problem can be???
A spend a lot of time to find problem, but a can’t find it 

JohanPirlouit
New Cone
New Cone
Posts: 1
Joined: 26 Sep 2010 01:25

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

Postby JohanPirlouit » 26 Sep 2010 01:53

Hello,

I am trying to transcode one HD MPEG4 1080i video in SD MPEG2 video.
But transcoded video has motion blur effect on faster movements.
Because this video is football game, there are a lot of faster movements, so video is bad.
I am tray to play original video (HD MPEG) and I see motions blur effect too. So a suppose problem is decoding.
I tried with differences OS (Linux Centos, Windows HP, Windows 7 64 bit )
I used differences versions of VLC (1.1.2, 1.1.4).
Processor is I7 930, 8 MB RAM, processor does not exceed 30%
I’m attach part of a video(100MB):
http://rapidshare.com/files/418977511/arena1_hd.ts

Have anyone idea where problem can be???
A spend a lot of time to find problem, but a can’t find it
Hi,

VLC is NOT multi-threaded at this time for those kind on jobs. And I don't think multi-threading would be on the developers' roadmap until VLC's sub-components (such as the MPEG encoder module you want to use) will be multi-threaded AND bug-free! Try using other softwares, but it is a bit hard to find any that are free and that does the job fine... I've got sames difficulties to convert H264 videos (MPEG-TS 1080i files!) to other formats and VirtualDub without hacks not so easy to use (use of AviSynth for VD to read the video and demuxing the audio to import it as an external audio file!) can't do it.

(And you've got 8 GB of RAM, not 8 MB :wink: )

AirenBunte
New Cone
New Cone
Posts: 3
Joined: 26 Feb 2011 14:35

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

Postby AirenBunte » 26 Feb 2011 14:38

I think I have some problem with the video. I was using media player and the screen size was ok but when I am using VLC, the screen size become small and tried several time to enlarge it but failed. Can anyone tell me what to do? Oh, for your kind information, I have just started using VLC and it is only 15 days.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 46 guests