hybrid-dump for VDPAU accelerated video playing on Ubuntu 11.10 with bumblebee 3.0?

This is how I got vdpau:

  1. Edited /etc/bumblebee/xorg.conf.nvidia to have

    Section "Screen"
        Identifier "Screen0"
        DefaultDepth 24
        SubSection "Display"
            Depth    24
            Virtual  1920 1080
        EndSubSection
    EndSection
    
  2. Run

    LD_LIBRARY_PATH=/usr/lib/nvidia-current:/usr/lib/nvidia-current/vdpau DISPLAY=:8 optirun mplayer -vo vdpau file.720p.mkv
    
  3. Run

    LD_LIBRARY_PATH=/usr/lib/nvidia-current DISPLAY=:8  compiz --replace &
    
  4. Downloaded https://github.com/gebart/hybrid-windump, removed xorg.conf from it, then compiled (just make command).

  5. Run ./windump :8 :0

Note: You don't need to edit /etc/bumblebee/bumblebee.conf and change KeepUnusedXServer to true as we run MPlayer directly with Optirun.