Comments (10)
(Just to be sure.) Browser plugin crashes after you launch mpv? If so, cause must be somewhere in common part. First thought — a kernel driver issue. Or maybe Xorg.
Although there is another possibility. GPU decoding is quite fragile when it gets a damaged input. I saw a lot of both temporary and permanent hangs during development when I fed VA-API driver with a wrong input. In latter case I needed to power off machine and the start again to get it working. So if there is something wrong with libvdpau-va-gl parsing code (actually, it's wrong, as part of H.264 parser was never written), it may leave GPU in a wrong state. However issue would not appear recently, because I didn't change the code for a long time.
from libvdpau-va-gl.
I also saw crashes in intel GL driver, and thought there're bug in that driver, but later found that I have a bug in my code. So it's worth to try to run plugin under Valgrind. There is a trick (link) which helps to run only plugin-container
under Valgrind rather than the whole browser.
from libvdpau-va-gl.
Yes, it crashes after launching mpv.
GPU decoding ist disabaled, It stoped working for me recently (EnableLinuxHWVideoDecode=0) , I only use libvdpau-va-gl for accelerated rendereing. (btw. i don't know why accelerated rendering isn't working without libvdpau-va-gl, I think you have more insight here, so do you know why?)
from libvdpau-va-gl.
why accelerated rendering isn't working without libvdpau-va-gl
The only known hardware accelerated way to output graphics and decode video for Flash 11.2 is VDPAU. It doesn't use platform's OpenGL, therefore without working VDPAU driver Flash falls back to all-software mode.
from libvdpau-va-gl.
Ok thx.
I never used valgrind, it would be nice if you have some time to take a look:
http://expirebox.com/download/81bfce0e26e68ebcac3653416144ecca.html
from libvdpau-va-gl.
Your intuition was right.
Recently arch updated mesa from 10.5.7 to 10.6.0.
I installed 10.5.7, accelerated rendering + decoding is working properly again.
from libvdpau-va-gl.
take a look
I see nothing wrong there. Multiple use-after-free warnings are due to quirks in glib2.0 code.
from libvdpau-va-gl.
Thank you.
This is not related but you're the right person to ask :)
Are there any reasons/advantages for using freshplayerplugin+pepperflash?
from libvdpau-va-gl.
Are there any reasons/advantages for using freshplayerplugin+pepperflash?
During libvdpau-va-gl development I found that NPAPI Flash uses VDPAU only when wmode parameter is equal to either window
or direct
. It's the case on Youtube, so it's fine there. But many other sites with other players, and even some embedded videos from Youtube are using wmode=transparent or wmode=opaque, thus forcing Flash to use CPU for all rendering.
To support transparency, NPAPI Flash uses different modes, windowed and windowless. In first case plugin either creates or receives an X Window which it draws at. In second case (windowless), browser creates Pixmaps where plugin paint. Windowless operation mode is required for transparency — browser passes Pixmap already with content, and plugin paints over it. That mode is also required if one wants to paint over plugin instance, display a text, for example, or custom HTML controls. But since with windowless mode one doesn't have a known Window, using of VDPAU is hard, if even possible. That's why Flash falls back to software rendering.
I once thought about creating a proxy plugin to make Flash believe that it always can use VDPAU, but decided to make such proxy for PepperFlash after all. Since I do all the interaction with OS and browser, I'm able to allow Flash to use hardware accelerated rendering regardless of plugin mode.
At the end of the day, freshwrapper can help reduce CPU load, moving some of it to GPU. Or maybe not. It depends. I also heard some people use it where Flash 11.5 is required, and therefore 11.2 doesn't work.
from libvdpau-va-gl.
Very detailed answer, nice.
This information is really usefull so I think it should be put into freshplayerplugin's readme.
Just put a link to your previous post, it's pretty detailed.
from libvdpau-va-gl.
Related Issues (20)
- cmake issue HOT 5
- Unable to play some video with VLC (hardware accelerator failed to decode picture) HOT 15
- Segmentation fault in dri2_unbind_context HOT 5
- Change license to MIT (expat) HOT 7
- Wrong scaling in fullscreen VLC (was: Problems playing videos in VLC) HOT 24
- Vlc using vdpau, no decoding HOT 6
- Unable to compile HOT 12
- cppcheck errors HOT 3
- Build failure with clang/libc++ on Linux HOT 2
- GPU memory leak in VLC on Intel HOT 4
- Archlinux integration !
- When playing .webm files with video-output default (VDPAU) VLC ends up consuming a lot of RAM (using lib64vdpau-va-gl1-0.4.0-1.mga6 on Intel Graphics) HOT 5
- VLC with "--vout vdpau" won't play the video of a certain .mp4 file (generates an error) HOT 11
- flash video freezes the whole system HOT 3
- VLC's memory consumption steadily increases after switching to next videos HOT 4
- Some videos cause complete system hang with 0.4.0 HOT 7
- Create lists of supported hardware and software. HOT 2
- Discrepancy in decoder capabilities reported by `vainfo` and `vdpauinfo` wrt Kabylake. HOT 1
- vdpauinfo crash with VDPAU_DRIVER=va_gl on nouveau drivers HOT 1
- hardware accelerator failed to decode picture HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libvdpau-va-gl.