Compile mplayer with VDPAU support on Ubuntu . The VDPAU API allows video programs to offload portions of the video decoding process and video post- processing to the GPU video- hardware. I tried the patch compiz. Installing Mplayer patch. Home: Forums: Posting Rules: Linux Help & Resources. Resistance izkx GPF 0x5654 8820 Application. Patch -p 0 < mplayer-xv-compiz-video-1-0001.bin. Updates to AIGLX-ebuilds. I've committed some updates to my xgl/aiglx-overlay. Then I've added an experimental patch to compiz autodetecting AIGLX, which removes the need for indirect and strict-binding parameters. Ubuntu Jaunty + fglrx + aiglx + XVideo (xv). Ubuntu Jaunty + fglrx + aiglx + XVideo (xv) + Mplayer. If you're compiling mplayer then i suggest you compile mplayer with a compiz patch. Smthplayer is a cross-platform player for the smooth streaming format. Totem crashes with 'BadAlloc (insufficient resources for operation)' when using compiz and xserver-xorg-video-intel driver. Currently, the portions designed to be offloaded by VDPAU onto the GPU are motion compensation (mo comp) and inverse discrete cosine transform (i. DCT), and VLD (Variable- Length Decoding) for MPEG- 1, MPEG- 2, MPEG- 4 AVC (H. VC- 1, and WMV3/WMV9 encoded videos. Great! What does it mean? What it means that instead of using your processor is utilizes your graphics processor for certain decoding processes. This allows you to run other things when you are watching a video, the most known application that benefits from this is myth. TV, you can use a less powerful processor to watch videos. Why do I want it? Well like I said, if you have a less powerful processor and you want to watch a DVD, movie on your computer this implementation makes it possible. It says it is designed by n. Vidia, can I use it with other graphic cards? Short answer, No. The API is designed specifically for n. Vidia graphic card, and then only for the Ge. Force 8 and higher. First of all you’ll need to use the official n. Vidia graphics driver, not the one that comes with Ubuntu itself. To download the latest driver go to this site. At the time I’m writing this, the latest version is 1. You’ll need to download the pkg. Install n. Vidia driver. To compile mplayer with VDPAU support we need to run the n. Vidia driver. Install this driver follow the following steps. Log off from your computer. Not restart but Logoff. Press Ctrl- Alt- 1. Your on the console right now. Login like you normally would. Type. sudo su - And when asked for your password give your password. If you are running Gnome type. If you are running KDE type. In order to install the driver we’ll need to install some software. Go to the directory where you downloaded the driver. Type: sh NVIDIA- Linux- x. Accept the license, no need to search the FTP site and let the installer modify the X configuration. Personally I always reboot after this. Compiling mplayer. I download the software in /d. Vidia provides us with an easy script that will patch mplayer for VDPAU support. You can find the script here. Check the dates and download the newest version, again at the time I’m writing this, the latest version is mplayer- vdpau- 3. You will also need all the development files for mplayer, we can get those by using aptitude. In order to compile mplayer you’ll also need two extra files, n. Vidia does provide them but for your convenience I tarred them up. You can find the download link in the sidebar of this blog under Local Downloads. Prepare for configuration and compilation. Open a terminal. cd /d. I modify the script (checkout- patch- build. Vidia uses so when we run it, it only gets the source code. The configuring and building I do by hand that way mplayer will use the same settings as the Ubuntu or Medibuntu versions. Comment out the last two lines so the script looks like this: #!/usr/bin/env sh. In order to utilize VDPAU we need to add some extra parameters when starting mplayer. As most of us will use the menu, or the file browser to start mplayer we'll modify the menu entry. F/- vo vdpau - vc ffh. F/' etc/mplayer. desktop > /tmp/mplayer. Configuring, Compiling and Installing. I use the - -target in my configure script to force mplayer to use this that specific target. For some reason the configure script doesn't recognize I have a core. You can leave it out and mplayer will figure out what kind of processor you have./configure - -enable- gui - -disable- x. As mentioned earlier, mplayer doesn't recognize the core. I have, so in order for the compilation to use core. I modify the output created by the configuration script. Skip this if you don't have a core. Now for the compilation and installationmake. That's all, you should have mplayer with VDPAU capabilities. How do you know if you are using the VDPAU capabilities? Download a clip from here. Open mplayer from the menu. Open a terminal and type: top. Open the movie in mplayer and play it. Check top in the terminal, you should see gmplayer in the command column. This is the GUI version of mplayer. Check the %CPU column. Try to remember the approximate percentage. Close mplayer. Open another terminal. Type: gmplayer. Open the movie in mplayer and play it. Check top in the terminal, you should see gmplayer in the command column. This is the GUI version of mplayer. Check the %CPU column. If the percentages of CPU is lower while playing the movie started from the menu you are running VDPAU. Congrats. If the percentages are about the same something went wrong during the configuration/compilation steps I described.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |