-
Notifications
You must be signed in to change notification settings - Fork 144
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
No video when I'm trying to use VDPAU in mplayer #324
Comments
Bumblebee does not offer VDPAU offloading, only OpenGL offloading. Intel GPU also has decent support for hardware video decoding, supported in software via libva. |
This has always been an issue with Bumblebee, even in the dark olden days [0] and it hasn't been looked into in quite a while (commits on hybrid-windump and LLStarks' last videos for example, all around 2011). It's been a while since I've looked into this but I'll try to dig up what I know for others searching about this issue. Afaik the actual fix to get VDPAU is pretty involved and basically requires that the proprietary driver gets deeper access, either through DMA-BUF or (what it seems nvidia is doing now) by writing their own version of DMA-BUF. The only workaround I've found currently is to use windump [1] / hybrid-windump [2], most recently promoted / sorta-maintained by the awesome @LLStarks (but who seems to have deleted his github profile since last I looked[3], but @LLStarks might have not committed anything and could just be the work of @erappleman, either way I just uploaded the latest I got from @LLStarks' github repo of it [4]. A quick perusal comparing commits of mine vs @erappleman shows they're the same, but eh, consider mine a mirror). Also for Gentoo user's there's [10]. hybrid-windump helps you create a virtualgl thing that a window on your desktop is created for, so you can see the accelerated stuff. The youtube videos linked by the Windump wikipage [1] are very good, along with another video or two on LLStarks' youtube [5], specifically the following (I have saved copies of the videos and youtube pages with comments, so if any go down just ping me. Also some of the videos are green, but I listed all the ones I found that are relevant to VDPAU, either way it's a wealth of good information): [6]. So definitely use @erappleman's stuff, rather than @harp1n's. I don't know the specifics I just know the one I used worked and is newer. Though before DMA-BUF or a DMA-BUF-like thing happens (which I guess is being worked on, according to occasional [recent] Phoronix articles mentioning DMA-BUF), adding hybrid-windump to the main Bumblebee repository and adding more documentation and general support for using it would be nice [7][8]. [0] MrMEEE/bumblebee-Old-and-abbandoned#16 |
JFYI: @erappleman = @LLStarks (he has only changed his pseudo). |
Windump is really only useful as a proof of concept. Yes, you are decoding using VDPAU, but you're then using the CPU to copy everything from the dGPU to the screen instead of a memory buffer like dma-buf aims to do. It's just a waste of resources considering that most Optimus laptops would be better served using CPU decoding or VAAPI. |
Thanks for the clarification @ArchangeGabriel, good to know, and thanks for the reply @erappleman. So is Bumblebee's official stance waiting for DMA-BUF or a DMA-BUF-like solution to land in the Linux kernel and proprietary nvidia driver? (If so maybe that should be said in some FAQ or documentation somewhere) How likely is integratating hybrid-windump into the Bumblebee Project, or is CPU decoding / VAAPI good enough and people are directed to use that? I haven't done or seen benchmarks, but maybe even with the overhead / waste of resources the performance one gets could be significant enough to support using hybrid-windump in the meantime before DMA-BUF. |
Bumblebee is still developing a little (see latest 3.1 release for example), although most of the work is now made on primus by @amonakov. CPU decoding and VAAPI should work perfectly fine on every computer that has Optimus (the less powerfull one that does exist is mine, and it works with Blu-Rays and 1080p files). |
Ubuntu 12.10
Lenovo Ideapad Y570 (with hack installed)
When I'm trying to watch movie with VDPAU I see NV-GLX error:
The text was updated successfully, but these errors were encountered: