Difference between revisions of "XvMC"

From ArchWiki
Jump to: navigation, search
(recategorize to avoid redirect (https://github.com/lahwaacz/wiki-scripts/blob/master/recategorize-over-redirect.py))
(flag for merge to new page)
Line 7: Line 7:
 
{{Related|VDPAU}}
 
{{Related|VDPAU}}
 
{{Related articles end}}
 
{{Related articles end}}
 
+
{{Merge|Hardware video acceleration}}
 
'''X-Video Motion Compensation (XvMC)''' is an extension for the X.Org Server. The XvMC API allows video programs to offload portions of the video decoding process to the GPU video-hardware. Particularly, features that have the tendency of heavily depending on the processor. Since XvMC acceleration takes the load off the CPU, thereby reducing processor requirements for video playback, it is an ideal solution for HDTV video playback scenarios.
 
'''X-Video Motion Compensation (XvMC)''' is an extension for the X.Org Server. The XvMC API allows video programs to offload portions of the video decoding process to the GPU video-hardware. Particularly, features that have the tendency of heavily depending on the processor. Since XvMC acceleration takes the load off the CPU, thereby reducing processor requirements for video playback, it is an ideal solution for HDTV video playback scenarios.
 
{{Note|XvMC is obsoleted by [[VA-API]] and [[VDPAU]] nowadays, which have better support for recent GPUs.}}
 
{{Note|XvMC is obsoleted by [[VA-API]] and [[VDPAU]] nowadays, which have better support for recent GPUs.}}

Revision as of 20:14, 6 May 2016

zh-CN:XvMC

Merge-arrows-2.pngThis article or section is a candidate for merging with Hardware video acceleration.Merge-arrows-2.png

Notes: please use the second argument of the template to provide more detailed indications. (Discuss in Talk:XvMC#)

X-Video Motion Compensation (XvMC) is an extension for the X.Org Server. The XvMC API allows video programs to offload portions of the video decoding process to the GPU video-hardware. Particularly, features that have the tendency of heavily depending on the processor. Since XvMC acceleration takes the load off the CPU, thereby reducing processor requirements for video playback, it is an ideal solution for HDTV video playback scenarios.

Note: XvMC is obsoleted by VA-API and VDPAU nowadays, which have better support for recent GPUs.

Supported hardware

Only MPEG-1 and MPEG-2 videos are supported by all driver.

Configuration

The open source drivers should work without any configuration. For the proprietary drivers create a new file /etc/X11/XvMCConfig and add:

  • For NVIDIA GPUs:
libXvMCNVIDIA_dynamic.so.1
  • For AMD GPUs:
libAMDXvBA.so.1

Supported software

Tip: Using full screen mode and disabling GUI elements may prevent flickering while playing the video.

MPlayer

Install mplayer package, available in the official repositories.

$ mplayer -vo xvmc -fs foobar.mpeg
  • -vo - Select xvmc video output driver
  • -fs - Fullscreen playback (optional)

MPlayer based players:

  • gnome-mplayer: open preferences and set the video output to "xvmc", and select "Enable Video Hardware Support".
  • smplayer: open preferences and set the video driver to "xvmc", and deselect "Enable screenshots".

xine

Install xine-ui package, available in the official repositories.

$ xine -V xvmc -f -g --no-splash foobar.mpeg

or

$ xine -V xxmc -f -g --no-splash foobar.mpeg
  • -V - Select the xvmc or xxmc video driver
  • -f - Start in fullscreen mode (optional)
  • -g - Hide GUI (optional)
  • --no-splash - Don't display the splash screen (optional)

References