按照发布在
使用 bumblebee 3.0 在 Ubuntu 11.10 上播放 VDPAU 加速视频的混合转储?
我已经成功编译并运行了来自 gebart 和 harp1n 的 hybrid-windump。我在 Xubuntu 12.04 和 Nvidia GT 525M 下使用 Bumblebee 3.0.1 和 x-swat 驱动程序 304.64。
跑步
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/nvidia-current/vdpau:/usr/lib/nvidia_current
DISPLAY=:8 optirun mplayer -vo vdpau videofilename
在另一个窗口中
DISPLAY=:8 metacity --replace
在另一个窗口中
./windump :8 :0.0
无论我编译带有或不带有 xorg.conf 的 windump 源(分别使用 gcc 和 make),结果总是相同的。显示的 windump 屏幕完全是黑色的。
Mplayer 报告以下内容
MPlayer svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing [F2715AEE].mkv.
libavformat version 53.21.0 (external)
Mismatching header version 53.19.0
libavformat file format detected.
[matroska,webm @ 0x7f573df99940]max_analyze_duration reached
[matroska,webm @ 0x7f573df99940]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0, -alang jpn
[lavf] stream 2: subtitle (ass), -sid 0, -slang eng, gg
VIDEO: [H264] 704x480 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
Clip info:
title: 01
Load subtitles in ./
SUB: Added subtitle file (1): ./[F2715AEE].ass
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is 1.74:1 - prescaling to correct movie aspect.
VO: [vdpau] 704x480 => 834x480 Planar YV12
A: 22.0 V: 22.0 A-V: 0.000 ct: 0.042 0/ 0 11% 1% 0.6% 0 0
我得到以下图片https://i.stack.imgur.com/a0Z4p.png 该区域内似乎有一个窗口,但我无法移动、调整大小或关闭它。运行 glxspheres 时也会出现同样的情况,但不可见的窗口大小不同,占据了整个黑色区域。
有人能帮助我正确显示图像吗?