← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: step-by-step instructions for mplayer and windump?

 

On 11/01/2011 10:52 AM, Albert Vilella wrote:
Hi,

Is there a place where I could find the step-by-step instructions to
have mplayer using
nvidia acceleration using windump? Ideally compatible with a bumblebee
or ironhide system.

Cheers

_______________________________________________
Mailing list:https://launchpad.net/~hybrid-graphics-linux
Post to     :hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
Unsubscribe :https://launchpad.net/~hybrid-graphics-linux
More help   :https://help.launchpad.net/ListHelp
Classic windump is really buggy and you can't turn off the Nvidia GPU without crashing X. Therefore, I'll refrain from talking about it and put forth a more sane approach that use Bumblebee X Server. All instructions assume an Ubuntu or Ubuntu-like system and multiple terminal tabs/windows. Please note that the solution I put forth has plenty of its own bugs like wonky mouse pointers and not always being able to fullscreen the Nvidia windows.

For Nouveau (assuming that you have a recent enough kernel and mesa), the process is pretty much the same. Skip the first 2 steps, install Bumblebee with the --driver=nouveau flag, and use xorg.conf.nouveau. VDPAU will not be available.

* Install nvidia blob from distro repos: sudo apt-get install nvidia-current

* Override mesa manually if installing the blob doesn't (assuming 64-bit, 32-bit is just gl_conf): sudo update-alternatives --config x86_64-linux-gnu_gl_conf

* Download and compile my branch of windump: https://github.com/LLStarks/hybrid-windump

* Download Bumblebee from git and checkout the common-debug-functions branch: https://github.com/Bumblebee-Project/Bumblebee/

* Install Bumblebee from git and replace /etc/bumblebee/xorg.conf.nvidia with the one from my windump tree. Change the resolution in said file to your native LCD resolution.

* Configure Bumblebee to use your ACPI calls if you so desire: https://github.com/Bumblebee-Project/Bumblebee/wiki/ACPI-Removed

* Start Bumblee X Server: sudo bumblebee --startx

* Start mplayer (I recommend SMPlayer for this since mplayer will respond to all terminal keypresses and go crazy): DISPLAY=:8 mplayer -vo vdpau filename

* Run windump in a window so it's easier to test. If you run without a window, you'll either need to use CTRL+C or killall windump to escape if it covers then entire screen: ./windump -w1 :8 :0

* Start the compositor last otherwise mplayer will bitch. We'll need it for VDPAU to render properly: xcompmgr -d :8

* When you're done: sudo bumblebee --stopx

- Eric Appleman, Bumblebee Project


Follow ups

References