Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumblebee + Vdpau + Gentoo #169

Closed
Vylaern opened this issue May 28, 2012 · 5 comments
Closed

Bumblebee + Vdpau + Gentoo #169

Vylaern opened this issue May 28, 2012 · 5 comments

Comments

@Vylaern
Copy link

Vylaern commented May 28, 2012

Hi

I use bumblebee 3.0-r1 on my Gentoo system and simple application like glxspheres works fine. The problem is when I am trying to use programs with compiled vdpau flag - eg. mplayer2 or mlt (part of kdenlive). Doesn't matter i use $ melt or $ optirun melt or mplayer2 - error message is the same:

$ melt DSC_4387.MOV 
  Xlib: extension "NV-GLX" missing on display ":0". 
  Xlib: extension "NV-GLX" missing on display ":0". 
  Segmentation fault

$ optirun melt DSC_4387.MOV 
  xauth: (argv):1: unable to read any entries from file "/etc/VirtualGL/vgl_xauth_key" 
  Xlib: extension "NV-GLX" missing on display ":0". 
  Xlib: extension "NV-GLX" missing on display ":0".

mplayer
...
Xlib:  extension "NV-GLX" missing on display ":0". 
 Xlib:  extension "NV-GLX" missing on display ":0". 
 [vdpau] Error when calling vdp_device_create_x11: 1
...

What to do? I could not find any solution for my problem.

@starks
Copy link
Member

starks commented May 29, 2012

VDPAU doesn't work since the Intel card displays everything and VirtualGL can only handle OpenGL calls, not driver features.

@Vylaern
Copy link
Author

Vylaern commented May 29, 2012

But someone said it is possible to have vdpau with bumblebee:
https://lists.launchpad.net/hybrid-graphics-linux/msg01800.html

or here:
http://www.youtube.com/watch?v=pxziIAPFIFY

Someone else told me to do:
...
$ export DISPLAY=:8
...

and after this looks like it works (Bumblebee + Vdpau), but I can not see a screen - eg. Mplayer2 bellow:
...
$ optirun mplayer2 -vo vdpau /mnt/video/kdenlive/robocze/DSC_4387.MOV
xauth: (argv):1: unable to read any entries from file "/etc/VirtualGL/vgl_xauth_key"
MPlayer2 2.0-467-ga816810 (C) 2000-2012 MPlayer Team

Playing /mnt/video/kdenlive/robocze/DSC_4387.MOV.
Detected file format: QuickTime/MPEG-4/Motion JPEG 2000 format (libavformat)
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (pcm_s16le), -aid 0, -alang eng
VIDEO: [H264] 1920x1080 24bpp 25.000 fps 19393.6 kbps (2367.4 kbyte/s)
Clip info:
major_brand: qt
minor_version: 537331968
compatible_brands: qt niko
creation_time: 2012-05-19 08:31:49
Load subtitles in /mnt/video/kdenlive/robocze/

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Asking decoder to use 2 threads if supported.
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)

Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)

AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: -9.0 V: 0.0 A-V: 0.000 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 Planar YV12
[vdpau] Got display refresh rate 60.004 Hz.
[vdpau] If that value looks wrong give the -vo vdpau:fps=X suboption manually.
A: 15.2 V: 15.2 A-V: -0.000 ct: -0.000 0/ 0 90% 9% 0.1% 182 0

@Vylaern
Copy link
Author

Vylaern commented May 29, 2012

To sumarize - we have 2 options on 2 DISPLAY's = 4 options
As you can see Option 4 works - but eg. in Mplyer we can not see the video, after switching into Dispaly 8.

OPTION 1 (Display 0)
$ vdpauinfo
display: :0 screen: 0
NVIDIA: could not open the device file /dev/nvidiactl (No such file or directory).
Error creating VDPAU device: 1

OPTION 2 (Display 0)
$ optirun vdpauinfo
xauth: (argv):1: unable to read any entries from file "/etc/VirtualGL/vgl_xauth_key"
display: :0 screen: 0
Xlib: extension "NV-GLX" missing on display ":0".
Xlib: extension "NV-GLX" missing on display ":0".
Error creating VDPAU device: 1

And 2 others OPTIONS after:
$ export DISPLAY=:8

OPTION 3 (Display 8)
$ vdpauinfo
vdpauinfo: cannot connect to X server :8

OPTION 4 (Display 8) - Its WORKS!
$ optirun vdpauinfo
xauth: (argv):1: unable to read any entries from file "/etc/VirtualGL/vgl_xauth_key"
display: :8 screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library 295.53 Fri May 11 23:53:42 PDT 2012

Video surface:

name width height types

420 4096 4096 NV12 YV12
422 4096 4096 UYVY YUYV

Decoder capabilities:

name level macbs width height

MPEG1 0 8192 2048 2048
MPEG2_SIMPLE 3 8192 2048 2048
MPEG2_MAIN 3 8192 2048 2048
H264_MAIN 41 8192 2048 2048
H264_HIGH 41 8192 2048 2048
VC1_SIMPLE 1 8190 2048 2048
VC1_MAIN 2 8190 2048 2048
VC1_ADVANCED 4 8190 2048 2048
MPEG4_PART2_SP 3 8192 2048 2048
MPEG4_PART2_ASP 5 8192 2048 2048
DIVX4_QMOBILE 0 8192 2048 2048
DIVX4_MOBILE 0 8192 2048 2048
DIVX4_HOME_THEATER 0 8192 2048 2048
DIVX4_HD_1080P 0 8192 2048 2048
DIVX5_QMOBILE 0 8192 2048 2048
DIVX5_MOBILE 0 8192 2048 2048
DIVX5_HOME_THEATER 0 8192 2048 2048
DIVX5_HD_1080P 0 8192 2048 2048

Output surface:

name width height nat types

B8G8R8A8 16384 16384 y Y8U8V8A8 V8U8Y8A8
R10G10B10A2 16384 16384 y Y8U8V8A8 V8U8Y8A8

Bitmap surface:

name width height

B8G8R8A8 16384 16384
R8G8B8A8 16384 16384
R10G10B10A2 16384 16384
B10G10R10A2 16384 16384
A8 16384 16384

Video mixer:

feature name sup

DEINTERLACE_TEMPORAL y
DEINTERLACE_TEMPORAL_SPATIAL y
INVERSE_TELECINE y
NOISE_REDUCTION y
SHARPNESS y
LUMA_KEY y
HIGH QUALITY SCALING - L1 y
HIGH QUALITY SCALING - L2 -
HIGH QUALITY SCALING - L3 -
HIGH QUALITY SCALING - L4 -
HIGH QUALITY SCALING - L5 -
HIGH QUALITY SCALING - L6 -
HIGH QUALITY SCALING - L7 -
HIGH QUALITY SCALING - L8 -
HIGH QUALITY SCALING - L9 -

parameter name sup min max

VIDEO_SURFACE_WIDTH y 1 4096
VIDEO_SURFACE_HEIGHT y 1 4096
CHROMA_TYPE y
LAYERS y 0 4

attribute name sup min max

BACKGROUND_COLOR y
CSC_MATRIX y
NOISE_REDUCTION_LEVEL y 0.00 1.00
SHARPNESS_LEVEL y -1.00 1.00
LUMA_KEY_MIN_LUMA y
LUMA_KEY_MAX_LUMA y

@starks
Copy link
Member

starks commented May 29, 2012

Yes, all off that is being done off-screen. Unless you've found a way to transport the actual VDPAU video from :8 to :0, this is old news.

@Vylaern
Copy link
Author

Vylaern commented May 29, 2012

Sorry, I tough I am doing something wrong and there is a solution :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants