I am trying to run hybrid-dump for VDPAU accelerated video playing on Ubuntu 11.10 with Bumblebee 3.0 installed and running. But following the instructions in the URL below, I can't get mplayer with vdpau to work:
https://askubuntu.com/a/100812/17702
avilella@magneto:~/hybrid_graphics/hybrid-windump$ git pull
Already up-to-date.
avilella@magneto:~/hybrid_graphics/hybrid-windump$ make clean && make
optirun true
LD_LIBRARY_PATH=/usr/lib/nvidia-current DISPLAY=:8 metacity --replace &
LD_LIBRARY_PATH=/usr/lib/nvidia-current DISPLAY=:8 mplayer -vo vdpau file.720p.mkv
#(in the other gnome-terminal tab)
LD_LIBRARY_PATH=/usr/lib/nvidia-current ~/hybrid_graphics/hybrid-windump/windump :8 :0
Also tried:
LD_LIBRARY_PATH=/usr/lib/nvidia-current DISPLAY=:8 mplayer -vo vdpau -vc ffh264vdpau file.720p.mkv
I don't get any video from it, only audio. I do get video and audio if I remove the vdpau bit, but then windump is not needed:
LD_LIBRARY_PATH=/usr/lib/nvidia-current DISPLAY=:8 mplayer file.720p.mkv
If I try glxspheres, it works well, like this:
LD_LIBRARY_PATH=/usr/lib/nvidia-current DISPLAY=:8 glxspheres
#(in the other gnome-terminal tab)
LD_LIBRARY_PATH=/usr/lib/nvidia-current ~/hybrid_graphics/hybrid-windump/windump :8 :0
Polygons in scene: 62464
Visual ID of window: 0x27
Context is Direct
OpenGL Renderer: GeForce 310M/PCI/SSE2
Now video playing. Following the instructions below, I got it to work to some extend:
Edit /etc/bumblebee/xorg.conf.nvidia
and added:
Section "Screen"
Identifier "Screen0"
DefaultDepth 24
SubSection "Display"
Depth 24
Virtual 1280 720
EndSubSection
EndSection
Restarted bumblebeed
:
sudo restart bumblebeed
In one of the terminals, I call the mplayer
command:
LD_LIBRARY_PATH=/usr/lib/nvidia-current:/usr/lib/nvidia-current/vdpau DISPLAY=:8 optirun mplayer -vo vdpau -ao alsa file.720p.mkv
In another terminal, I then call the compiz
and then windump
commands:
LD_LIBRARY_PATH=/usr/lib/nvidia-current DISPLAY=:8 compiz --replace &
~/hybrid-windump/windump :8 :0
PROBLEMS: I am struggling with the size of the video window. In a 1366x768 screen, I set up for a 1280x720 video size, but the image is chopped by about 200 pixels on the right hand side, leaving the same size of black windump
area.
Any ideas?