Let Firefox use Chrome's latest version of Pepperflash plugin on Ubuntu

Source: Internet
Author: User
Tags wrapper

Adobe Flash Player 11.2 will be the last version to support the Linux platform.
Adobe continues to provide only security updates to Flash Player 11.2 for Linux and does not provide version updates.
It's also easy to add Flash Player support for Firefox on Linux.
Download the tar.gz package Adobe provides for Linux:
https://get.adobe.com/cn/flashplayer/
Copy or soft-link the libflashplayer.so in the compressed package to/usr/lib/mozilla/plugins/.

Because Chromium/opera/maxthon is the same as the chrome kernel,
So the default is to load Chrome's Flash plugin/opt/google/chrome/pepperflash,
To use Pepperflash on Firefox, you need a third-party plugin FreshplayerpluginTo load.
Here first mention, freshplayerplugin this unofficial way stability is not good, but can try.

Firefox for Linux:
ftp://ftp.mozilla.org/pub/firefox/releases/33.0.3/linux-x86_64/zh-CN/
ftp://ftp.mozilla.org/pub/firefox/releases/33.0.3/linux-i686/zh-CN/

Chrome for Ubuntu/debian Stable:
Https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb

It's Firefox and Chrome, because Pepperflash is integrated in chrome, so you need to install chrome.
Of course also can not install Chrome, Pepperflash decompression after the soft link to/opt/google/chrome/below also can,
For example, I unzipped Pepperflash to/home/eechen/apps/firefox/flash/pepperflash:
sudo mkdir-p/opt/google/chrome/
sudo ln-s/home/eechen/apps/firefox/flash/pepperflash/opt/google/chrome/

Webupd8 compiled a binary version of Freshplayerplugin for Ubuntu, it doesn't need to be compiled manually.
Download the freshplayerplugin that corresponds to your system version, my is 64 bit Ubuntu14.04 (trusty) so I download:
wget http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/f/freshplayerplugin/freshplayerplugin_0.2.1 +git20150107~webupd8~trusty0_amd64.deb
For example, I unzipped the libfreshwrapper-pepperflash.so in Freshplayerplugin to/home/eechen/apps/firefox/flash/. Libfreshwrapper-pepperflash.so
Then I link it to Firefox's plugin directory:
sudo ln-s/home/eechen/apps/firefox/flash/libfreshwrapper-pepperflash.so/usr/lib/mozilla/plugins/

Restart Firefox access About:plugins to see Firefox successfully loading Chrome's Pepperflash:


key Flash Stage3D hardware acceleration:
By default, Ubuntu under Chrome's Flash Stage3D is simulated by software and runs Flash Stage3D games with poor performance,
CPU temperature up to 57 degrees, CPU utilization of up to 300%, and frame rate is very low, stalling.
Run Chrome on Ubuntu, Access chrome://flags/, enable "Overwrite software render list", restart Chrome, see chrome://gpu/, Flash Stage3D has turned on hardware acceleration.
Run the following Flash Stage3D racing game:
http://www8.agame.com/mirror/flash/r/Rallypoint_extreme/Rally_Point_Extreme3/Bin/
CPU temperature is around 47 degrees (5 degrees higher than usual), CPU utilization is 20% (i5-3230m is four threads, full load is 400%).
Http://static.oschina.net/uploads/space/2014/1015/225311_vR45_561214.png

Http://helpx.adobe.com/x-productkb/multi/stage3d-unsupported-chipsets-drivers-flash.html
It says that the Flash Stage3D hardware acceleration on Linux only supports Chrome Pepperflash.

Firefox Flash plugin on Linux can not use hardware acceleration stage3d, can only use software simulation, so the speed is slow, CPU consumption, heat large.
However, the general Flash video should not be used to stage3d hardware acceleration, so use firefox+flash11.2 to see the video is not too big a problem.
However, Firefox uses the Freshplayerplugin plugin to use the Pepperflash way to turn on flash stage3d hardware acceleration:
Create a new file/home/eechen/apps/firefox/flash/freshwrapper.conf with the following contents:
# Configuration options for Freshplayerplugin
# This configuration file is optional. Wrapper would search for it first
# in ~/.config/freshwrapper.conf, then in/etc/freshwrapper.conf.
# If Wrapper fails to find configuration, it would use default values,
# which you can find below
# Audio buffer is used-continuously provide sound adapter with data.
# Values too low may leads to buffer underruns and stuttering. Values
# too high'll leads to noticeable latency. Usually plugin selects size
# on it own, but could you override bounds here
# lower bound for audio buffer size, in milliseconds
Audio_buffer_min_ms = 20
# Higher bound of audio buffer size, in milliseconds
Audio_buffer_max_ms = 500
# Path to the Pepper Flash plugin
Pepperflash_path = "/opt/google/chrome/pepperflash/libpepflashplayer.so"
# "Command-Line" Arguments for Flash
Flash_command_line = "Enable_hw_video_decode=1,enable_stagevideo_auto=1"
# Enable 3d and stage 3d
enable_3d = 1
# Enable 3d for wmode=transparent instances
Enable_3d_transparent = 1
# When set to 1, limits output to warnings and errors only
Quiet = 0
Then it's soft-linked to the configuration directory:
Ln-s/home/eechen/apps/firefox/flash/freshwrapper.conf/home/eechen/.config/freshwrapper.conf
Download Cubes_stage3d to compare the Stage3D hardware acceleration performance of Chrome and Firefox using Pepperflash:
Http://airtightinteractive.com/demos/flash/stage3d/cubes/cubes_stage3d.zip
Use Firefox and Chrome to access cubes_stage3d/bin-release/index.html, on my Computer (i5-3230m, no single display, resolution 1366X768,UBUNTU14.04):
100 cubes, chrome reached 60fps,cpu idle rate of 89%, stable.
100 cubes, Firefox reached 58fps,cpu idle rate of 85%, sometimes flashing.

Finally, say opera. Chrome39-based Opera26 is the first stable version that supports Linux, and opera can automatically load Chrome's pepper Flash Player to provide flash support:
http://dl-desktop.oupeng.com/pub/opera/desktop/26.0.1656.32/linux/
Opera access about://flags enable #ignore-gpu-blacklist to let flash support stage3d hardware acceleration.

Let Firefox use Chrome's latest version of Pepperflash plugin on Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.