Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Flash performance worse with VDPAU
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Mon Oct 13, 2014 5:23 pm    Post subject: Flash performance worse with VDPAU Reply with quote

I set VDPAU_DRIVER=va_gl to enable VDPAU/VAAPI acceleration. mplayer performance is much greater with acceleration enabled but flash performance is actually a bit worse according to the test here:

http://www.snailsanimation.com/benchmark08_play.php

Why would this happen?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Mon Oct 13, 2014 6:08 pm    Post subject: Reply with quote

is this your test? If not you may ask the person responsible for the test setup!

Are you talking about the mplayer? if so, why do not you ask at mplayer base?
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Tue Oct 14, 2014 12:12 am    Post subject: Reply with quote

How would you recommend I determine whether my flash performance is greater with or without VDPAU?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Thu Oct 16, 2014 9:59 am    Post subject: Reply with quote

That is my point. that is my concern why I asked.

How / why / is it reasonable / reproduceable

just checking a webpage means nothing. could be bad implemented / network could influence the result / gpu could be not in maximum mode / and other workloads influencing htis result.

Usually tests are made in test rows for 10 or 20 repetitive tests which are mathematically analyzed. and not even that test method is error proof to human error, wrong test method and so on ...

To sum it up, i will not trust a webpage which claims to say it can test the performance of flash. I am pretty sure there are many instructions in the gpu / cpu which are used for flash and other things which may influence the performance and ruin the test results.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Thu Oct 16, 2014 2:48 pm    Post subject: Reply with quote

How can I determine if my flash playback is being accelerated? With mplayer, the difference between accelerated and unaccelerated playback is night and day but I don't notice a difference with flash. Even fullscreen 720p flash is choppy but mplayer can do 1080p and never drop a frame.
Back to top
View user's profile Send private message
netixen
n00b
n00b


Joined: 26 Sep 2013
Posts: 31

PostPosted: Fri Oct 17, 2014 5:27 pm    Post subject: Reply with quote

Go to youtube, play a HD video, right click and check "stats for nerds".
If flash is using vdpau/vaapi you will see "accelerated video rendering, decoding".
You can play with the flashplugin options and look at the stats.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Thu Oct 23, 2014 8:02 pm    Post subject: Reply with quote

If I do that in Chromium there is no such message because it seems to be using HTML5, but if I do it in Firefox it says flash rendering is accelerated but decoding is not. What might prevent accelerated decoding?

EDIT: "stats for nerds" is great. I can clearly see that my Flash performance is worse on youtube.com on two different systems with VDPAU/VAAPI enabled. I get a lot of dropped frames with it enabled and none with it disabled.
Back to top
View user's profile Send private message
netixen
n00b
n00b


Joined: 26 Sep 2013
Posts: 31

PostPosted: Fri Oct 24, 2014 11:35 am    Post subject: Reply with quote

Chromium uses a builtin module.
Firefox uses the system's adobe-flash plugin.

Did you enable hardware accelerated decoding in adobe-flash?
Code:
vi /etc/adobe/mms.cfg

Code:
# Enable hardware accell (can be unstable)
EnableLinuxHWVideoDecode=1


Did you follow:
http://wiki.gentoo.org/wiki/VDPAU
http://wiki.gentoo.org/wiki/VAAPI
or some other guide?

Does your video card fully support it?

What is the output of vdpauinfo/vainfo?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri Oct 24, 2014 12:11 pm    Post subject: Reply with quote

More correctly, google-chrome, closed source, uses an embedded flash player. Chromium uses html5. I have no idea if chromium can use the adoble-flash system-wide plugin if available.

I made that clarification because there are many players into scene, and measuring one of the other will for sure yield quite different values. If you use google-chrome, google-chrome-unstable or google-chrome-beta, then, as far as I know, you will be using the embedded plugin that comes bundled with the browser. If you use anything else then you are either using the system-wide plugin from the adobe-flash ebuild OR html5, depending on the browser and/or the site.

I don't know if there are still bitness issues with this stuff in amd64. That's another thing to check, I suppose.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Fri Oct 24, 2014 12:31 pm    Post subject: Reply with quote

i92guboj wrote:
More correctly, google-chrome, closed source, uses an embedded flash player. Chromium uses html5. I have no idea if chromium can use the adoble-flash system-wide plugin if available.

Isn't “pepper flash” available for Chromium via www-plugins/chrome-binary-plugins?

Not that it's the default, which you're probably talking about. Still, I figured it's worth a mention (or at least to clarify things to myself; I've tried it only once which was quite a while ago... not planning on trying again).


Edit:

Oh and I have a faint memory of being able to use the system-wide plug-in as well, though that could easily be false...
_________________
Kindest of regardses.


Last edited by Chiitoo on Fri Oct 24, 2014 12:34 pm; edited 2 times in total
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri Oct 24, 2014 12:33 pm    Post subject: Reply with quote

Chiitoo wrote:
Not that it's the default, which you're probably talking about. Still, I figured it's worth a mention


I have/had no idea, so you did well to mention it if only for the sake of completeness.
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Fri Oct 24, 2014 7:44 pm    Post subject: Reply with quote

Did you enable hardware accelerated decoding in adobe-flash?
Code:
vi /etc/adobe/mms.cfg

Code:
# Enable hardware accell (can be unstable)
EnableLinuxHWVideoDecode=1


Thank you, that did it. I did read a guide or two and I thought I had followed them. Now I get smooth fullscreen 1080p flash video on youtube.com in Firefox, but since Chromium uses HTML5, performance there is still choppy. Can HTML5 video playback be accelerated?
Back to top
View user's profile Send private message
netixen
n00b
n00b


Joined: 26 Sep 2013
Posts: 31

PostPosted: Fri Oct 24, 2014 10:35 pm    Post subject: Reply with quote

grant123 wrote:

Thank you, that did it. I did read a guide or two and I thought I had followed them. Now I get smooth fullscreen 1080p flash video on youtube.com in Firefox, but since Chromium uses HTML5, performance there is still choppy. Can HTML5 video playback be accelerated?


No problem, usually I forget specifics quite fast, but did that particular dance a few months ago so it hasn't been purged from memory.
Help the next guy if you have the chance.

Read the link for HTML5 hardware acceleration in chrome, should be similar in chromium...
http://www.webupd8.org/2014/01/enable-hardware-acceleration-in-chrome.html
Back to top
View user's profile Send private message
grant123
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1080

PostPosted: Tue Oct 28, 2014 2:21 pm    Post subject: Reply with quote

You actually have to jump through some compile-time hoops to get acceleration working in chromium (so I suppose it can't be made to work in google-chrome at all):

https://code.google.com/p/chromium/wiki/LinuxHWVideoDecode

I get the same error described on that page:

Code:
ERROR:gpu_video_decode_accelerator.cc(301)] Not implemented reached in void content::GpuVideoDecodeAccelerator::Initialize(const media::VideoCodecProfile, IPC::Message *)HW video decode acceleration not available.


https://bugs.gentoo.org/show_bug.cgi?id=527232
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum