Log in

View Full Version : How to encode VDPAU-friendly video using x264 (or another free encoder)?


nonoitall
10th December 2009, 07:09
Topic pretty much says it all. What encoder/settings do I need to use to produce an H.264 video whose playback can be accelerated by VDPAU?

:thanks:

nurbs
10th December 2009, 08:02
Same as any other hardware acceleration I assume. Make sure you don't exceed high profile @ level 4.1 and it should work on most hardware decoders.

nonoitall
10th December 2009, 08:10
Tried high profile at level 3.1 with x264 and all I can see in XBMC with VDPAU enabled is a bunch of greenish, purplish lines flashing across the screen when I play back the video. Any other settings I should be on the look out for?

nurbs
10th December 2009, 09:11
Can you post your full commandline and the resolution and framerate of your file, please.

nonoitall
10th December 2009, 09:28
x264 --profile high --level 3.1 --preset fast --crf 19.0 --thread-input --output output input
(Borrowed the settings from one of MeGUI's DXVA modes.) The source is 640x480 @ 30 fps if that's pertinent.

nurbs
10th December 2009, 09:46
That looks alright. Maybe it's a problem with the drivers or something. I never bothered to get VDPAU working on my PC so I can't do any tests.

ronnylov
10th December 2009, 12:38
There are some limitations of the width when using a card that supports VDPAU feature set B:
http://en.wikipedia.org/wiki/VDPAU


Feature Set B
Complete acceleration for MPEG-1, MPEG-2, VC-1/WMV9 and H.264.
All feature set B hardware cannot decode H.264 for the following widths: 769-784, 849-864, 929-944, 1009-1024, 1793-1808, 1873-1888, 1953-1968, 2033-2048 pixels.

640x480 should work...