Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-28-10, 06:46 AM   #1
Huk
Registered User
 
Join Date: Dec 2006
Posts: 12
Default Flash acceleration on Linux?

Hello everyone.

Does this:

http://www.nvidia.com/object/adobe_f...us_nvidia.html

works on Linux? I just downloaded Flash 10.1 beta and I don't see any difference in speed or CPU load while playing movies from youtube.

Geforce 9100M, 195.30 beta drivers

Thanks in advance.
Huk is offline   Reply With Quote
Old 02-28-10, 06:56 AM   #2
Lemmiwinks
Registered User
 
Join Date: Apr 2009
Location: Germany
Posts: 75
Default Re: Flash acceleration on Linux?

Acceleration for flash content is only available on windows at the moment. Maybe it will also come to Linux through vdpau in a later release, like flash 15
__________________
GF 8600M GT, core 2 duo 1.8ghz, Ubuntu 12.04, driver 304.37
Lemmiwinks is offline   Reply With Quote
Old 02-28-10, 08:16 AM   #3
packermann
Registered User
 
Join Date: Mar 2009
Posts: 47
Default Re: Flash acceleration on Linux?

For accelerated Youtube, also with vdpau-support, I use http://userscripts.org/scripts/show/50771
Its a greasemonkey-script, that replaces the flash-videoplayer on youtube with mplayer or vlc. Works also with google chrome and opera.
packermann is offline   Reply With Quote
Old 02-28-10, 10:53 AM   #4
zbiggy
Registered User
 
Join Date: Sep 2002
Posts: 623
Default Re: Flash acceleration on Linux?

Adobe's whining about bad Linux and why in Windows acceleration is possible:
http://blogs.adobe.com/penguin.swf/2...e_thicket.html
http://blogs.adobe.com/penguin.swf/2..._problems.html
To be short Adobe says the video acceleration is not possible in Flash for Linux because all Video decoding APIs (including VDPAU) in Linux can not put decoded video stream back to flash plugin so it can mix it with static graphics like buttons in player gui.

How the acceleration looks now in Linux (for all apis):
application-----mpeg4 video stream---->acceleration API (vdpau for example)--decoded video in RGB-->display screen

What Adobe wants for flash plugin:
flash plugin---mpeg4 video stream----->acceleration API (vdpau for example)--decoded video in RGB-->flash plugin--->display

Adobe also complains there is plenty of decoding APIs in Linux instead of one common for all.

So the video acceleration blockers for Adobe are:
1. plenty of video decoding APIs ("Welcome to the Thicket") instead of one
2. no decoded RGB video route back from GPU to flash plugin
Windows does not have these two blockers because:
1. There is only one API possible: DXVA
2. DXVA allows decoded RGB video route back from GPU to flash plugin
zbiggy is offline   Reply With Quote
Old 02-28-10, 11:09 AM   #5
zbiggy
Registered User
 
Join Date: Sep 2002
Posts: 623
Default Re: Flash acceleration on Linux?

In theory I think it is possible to do acceleration for Adobe using VDPAU:
flash plugin--mpeg4 video stream------------>VDPAU-->display
\----------------flash RGB drawings as bitmap--^

Here it is better visible:
http://http.download.nvidia.com/XFre..._data_flow.png

flash could render RGB drawings to bitmap and send it to vdpau using api designed for DVD menu or OSD drawing.

I think Nvidia engineers would better tell if this is possible in real life for flash plugin.
Or better contact Adobe directly to cooperate on this matter.
zbiggy is offline   Reply With Quote
Old 02-28-10, 12:29 PM   #6
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: Flash acceleration on Linux?

Quote:
Originally Posted by zbiggy View Post
2. no decoded RGB video route back from GPU to flash plugin
I don't think Adobe uses this argument since it would be wrong;-)
VDPAU (and iirc, also VaAPI) allows to copy the decoded frame back into main memory.

Carl Eugen
cehoyos is offline   Reply With Quote
Old 02-28-10, 06:00 PM   #7
zbiggy
Registered User
 
Join Date: Sep 2002
Posts: 623
Default Re: Flash acceleration on Linux?

Quote:
Originally Posted by cehoyos View Post
I don't think Adobe uses this argument since it would be wrong;-)
VDPAU (and iirc, also VaAPI) allows to copy the decoded frame back into main memory.

Carl Eugen
Wanna bet?

Quote:
"Why aren't these card supported in Linux? My free software media player support VA-API, VDPAU, and XvBA (the various hardware acceleration APIs)."

Again, say it with me: Flash Player solves a different problem.

In the above depiction of Flash Player's workflow, the video card stands in for the green [Video decoder] box. The key point here is that the decoded video frames need to be accessible by the Player which needs to do its thing before the data can be presented to the user. As of this writing, none of these drivers in Linux allow retrieval of the decoded video data. Their counterpart Windows drivers do allow this which is why this feature is supported in Windows.
source: http://blogs.adobe.com/penguin.swf/2..._problems.html
zbiggy is offline   Reply With Quote
Old 02-28-10, 06:11 PM   #8
zbiggy
Registered User
 
Join Date: Sep 2002
Posts: 623
Default Re: Flash acceleration on Linux?

The best accelration for flash in vdpau would be to put raw video stream to VdpVideoSurface and render all bitmap OSD and player GUI to VdpBitmapSurface then finally allow VDPAU to do the final composition. This way resource and time expensive memory copy would be avoided.

But Adobe prefers to whine about APIs ugliness and useless in Linux instead of reading API docs, thinking a little bit and doing the right thing.
zbiggy is offline   Reply With Quote

Old 02-28-10, 06:25 PM   #9
zbiggy
Registered User
 
Join Date: Sep 2002
Posts: 623
Default Re: Flash acceleration on Linux?

Here is the list of Adobe people working on Linux Flash Player:
Linux Flash engineers:
Mike Melanson http://blogs.adobe.com/penguin.swf/
Tinic Uro http://www.kaourantin.net/
Product Manager for Adobe Flash Player:
Emmy Huang http://blogs.adobe.com/emmy/

If you would like to push on something related to how Flash does (not) work on Linux contact these people.

On Windows there was some cooperation between Adobe and GPU manufactures including Nvidia. The result was they added 2D GPU acceleration for Geforce8, some Radeons and Intel to Acrobat Reader9 using pixel shaders. Now in Flash 10.1 they have done some cooperation and there is video hardware decoding.

Why Nvidia and Adobe can not do the same if VDPAU by design allow this?
HW acceleration of Flash on Nvidia cards in Linux could be big selling point.
zbiggy is offline   Reply With Quote
Old 02-28-10, 10:12 PM   #10
hl_
Registered User
 
Join Date: Feb 2009
Posts: 138
Default Re: Flash acceleration on Linux?

The Flash developer in question, Mike Melanson, really likes to whine. About everything, not just Linux. Check out his blog.
hl_ is offline   Reply With Quote
Old 02-28-10, 10:18 PM   #11
hl_
Registered User
 
Join Date: Feb 2009
Posts: 138
Default Re: Flash acceleration on Linux?

Quote:
Originally Posted by zbiggy View Post
The best accelration for flash in vdpau would be to put raw video stream to VdpVideoSurface and render all bitmap OSD and player GUI to VdpBitmapSurface then finally allow VDPAU to do the final composition.
Yes, but Adobe wants to do it the cheap way, i.e. without modifying anything else than the decoder in Flash.
hl_ is offline   Reply With Quote
Old 03-01-10, 04:56 AM   #12
Lysius
Registered User
 
Join Date: Oct 2008
Posts: 98
Default Re: Flash acceleration on Linux?

I hope the lack for hardware acceleration on Linux makes Flash die quicker.
Lysius is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:06 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.