gkreidl
Posts: 5655
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Howto: Flash support for most browsers (RPi 2/3)

Sun Feb 08, 2015 1:45 pm

Edit April, 7th, 2017: New thread title and support for other browsers.
Edit Otobert, 13th, 2017: Added Stretch support


Flash support is now realized in chromium-browser using the pepperflash plugin. It is installed by default on new images and can be installed on older systems with rpi-chromium-mods.

By adding a wrapper it can also be used in a lot of other browsers (Firefox, kweb, Midory, Qupzilla ...). It will not work in browsers built with gtk+3: epiphany, kweb3 and (currently) kweb on Stretch.

Flash support for other browsers (based on an original post by paulwratt):

For installation we need gdebi-core (or the full GUI version of gdebi):

Code: Select all

sudo apt-get install gdebi-core
or

Code: Select all

sudo apt-get install gdebi
Now download the following file and install it with gdebi:
1) For Jessie:

Code: Select all

wget http://ftp.debian.org/debian/pool/contrib/f/freshplayerplugin/browser-plugin-freshplayer-pepperflash_0.3.5-1~bpo8+1_armhf.deb
sudo gdebi browser-plugin-freshplayer-pepperflash_0.3.5-1~bpo8+1_armhf.deb
2) For Stretch:

Code: Select all

wget http://ftp.debian.org/debian/pool/contrib/f/freshplayerplugin/browser-plugin-freshplayer-pepperflash_0.3.5-1+b1_armhf.deb
sudo gdebi browser-plugin-freshplayer-pepperflash_0.3.5-1+b1_armhf.deb
Then create the ~/.config/freshwrapper.conf

Code: Select all

leafpad ~/.config/freshwrapper.conf
and add the following content:

Code: Select all

audio_buffer_min_ms = 20
audio_buffer_max_ms = 500
audio_use_jack = 0
jack_autoconnect_ports = 1
jack_autostart_server = 1
pepperflash_path = "/usr/lib/chromium-browser/libpepflashplayer.so"
flash_command_line = "enable_stagevideo_auto=1"
enable_3d = 0
enable_hwdec = 0
quiet = 0
fullscreen_width = 0
fullscreen_height = 0
randomize_dns_case = 0
device_scale = 1
quirk_plasma5_screensaver = 0
enable_windowed_mode = 1
enable_xembed = 1
tie_fullscreen_window_to_browser = 1
enable_vaapi = 0
enable_vdpau = 0
vsync_afterwait_us = 0
fs_delay_ms = 300
enable_vsync = 1
double_click_delay_ms = 400
show_version_info = 0
probe_video_capture_devices = 0
# setting the following to '0' also seems to work
enable_xrender = 1
After saving the file Flash support should be available in most browsers. You may have to enable the plugin in your browser.

Flash animations work well, flash video to a certain degree on a RPi 3, depending on the video resolution (no hardware acceleration).
Last edited by gkreidl on Fri Oct 13, 2017 6:18 am, edited 9 times in total.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Feb 08, 2015 3:04 pm

How fast it it on the raspberry pi 2? Can you play 720p youtube video with this flash plugin for chromium?
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

User avatar
DougieLawson
Posts: 33349
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Feb 08, 2015 3:07 pm

expandables wrote:How fast it it on the raspberry pi 2? Can you play 720p youtube video with this flash plugin for chromium?
Why would you ever need Flash for YouTube? Visit http://youtube.com/html5 and join the 21st Century.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Feb 08, 2015 3:11 pm

DougieLawson wrote:
expandables wrote:How fast it it on the raspberry pi 2? Can you play 720p youtube video with this flash plugin for chromium?
Why would you ever need Flash for YouTube? Visit http://youtube.com/html5 and join the 21st Century.
I know html5 is the future i just was curious on the speed of flash on the raspberry pi.
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

DirkS
Posts: 8485
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Feb 08, 2015 3:17 pm

expandables wrote:
DougieLawson wrote:
expandables wrote:How fast it it on the raspberry pi 2? Can you play 720p youtube video with this flash plugin for chromium?
Why would you ever need Flash for YouTube? Visit http://youtube.com/html5 and join the 21st Century.
I know html5 is the future i just was curious on the speed of flash on the raspberry pi.
Hint: gkreidl already mentioned that it does not use HW acceleration.

gkreidl
Posts: 5655
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Feb 08, 2015 3:22 pm

expandables wrote:How fast it it on the raspberry pi 2? Can you play 720p youtube video with this flash plugin for chromium?
No, but the embedded videos in the Raspberrypi.org forum play nicely.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Feb 08, 2015 3:23 pm

Heh heh. As is the case with lots of things like this, it will probably get to the point of actually working at the same time as when people really, totally, stop using Flash. I.e., when Flash is really, as many already claim it already is, "dead".

P.S. Side note: I've often said the same thing about "i18n" - that by the time they actually get it working, everybody will be speaking English (which is clearly the worldwide trend)...
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 10710
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sat Feb 14, 2015 12:47 am

expandables wrote:
DougieLawson wrote:
expandables wrote:How fast it it on the raspberry pi 2? Can you play 720p youtube video with this flash plugin for chromium?
Why would you ever need Flash for YouTube? Visit http://youtube.com/html5 and join the 21st Century.
I know html5 is the future i just was curious on the speed of flash on the raspberry pi.
speed of flash has nothing to do with the speed video's are played. Flash is just used to launch a codex to play the video. If flash was really used to "play video" (that is to decode a video stream and put it on the screen), if it would work at all it would be excruciatingly slow, something like one frame every ten minutes. Flash code runs slow! is buggy and memory hungry!

The independently (cloned) player from google is not very much better than gnash, and Adobe keeps changing Flash run code (and its player) so its a moving target for people who want to write competing players.

gkreidl
Posts: 5655
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sat Feb 14, 2015 8:25 am

mahjongg wrote:[
speed of flash has nothing to do with the speed video's are played. Flash is just used to launch a codex to play the video. If flash was really used to "play video" (that is to decode a video stream and put it on the screen), if it would work at all it would be excruciatingly slow, something like one frame every ten minutes. Flash code runs slow! is buggy and memory hungry!

The independently (cloned) player from google is not very much better than gnash, and Adobe keeps changing Flash run code (and its player) so its a moving target for people who want to write competing players.
I'm not a great friend of Flash, either, and I hope it will vanish soon. But people have been asking for it and sometimes it's the only way to get things to work (pages with Flash animation, for example).
You should not comment things you haven't tested. Video does work on many websites, a bit sluggish, sometimes, but it works. Not "one frame every ten minutes". Most embedded videos on the RPi website work quite nicely, for example.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 10710
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Feb 15, 2015 11:45 am

my "one frame per ten minutes" remark was in the purely theoretical (and nonsensical) case that flash code itself would be used for the video decoding. People seem to think that flash is used to decode the video, but that is laughable. It has nothing to do with "testing it myself" either, you just misunderstood the point I was making.

Flash is used as a video-player-launcher, NOT as a video decoder/player. There are better ways these days than Flash to launch a video stream player from inside a website these days.

There are also better ways to write games that play inside a browser than Flash.

iPad users also thought they wanted Flash, but they didn't get what they thought they wanted....

peter105
Posts: 2
Joined: Tue Feb 17, 2015 5:44 am

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Tue Feb 17, 2015 6:01 am

I install the flash into raspbian,however if I surf
some flash Vedio web ,chromium will be exit without operate,but if I use vnc to connect with my pi2,the flash and the chromium will work very well, I don't know what happen...

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 10710
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Wed Feb 18, 2015 11:39 pm

chromium (for RM based systems) doesn't use Adobes flash player, but its own "clone", which is only a bit better than "gnash", also googles effort is no longer developed further nor updated for new versions of flash.

newsflash :D
For youtube you don't need flash anymore, Youtube has decided to natively support HTML5 from now on.

http://youtube-eng.blogspot.nl/2015/01/ ... l5_27.html

LienRag
Posts: 20
Joined: Fri May 30, 2014 6:03 pm

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Thu Feb 19, 2015 12:41 am

Thanks for the howto...
Is there a way to install Adobe AIR on Pi? Raspbian preferably?
On Linux it is sort of a PITA (only old version availables, and on 64 bits there are additional steps) but I did it and it works.

ghans
Posts: 7770
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sat Feb 28, 2015 8:40 am

I doubt that Adobe AIR was ever availble for Debian or
Ubuntu armel or armhf , so you're out of luck.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
DougieLawson
Posts: 33349
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sat Feb 28, 2015 11:30 am

LienRag wrote: Is there a way to install Adobe AIR on Pi? Raspbian preferably?
Adobe AIR is even more dead than Flash, it was an Adobe experiment to try to get rid of Flash, it's been abandonware for a while now.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sat Feb 28, 2015 3:06 pm

For anyone who wants to install "armv7" raspberry pi 2 chromium go here http://blog.valitov.me/2014/06/installi ... m.html?m=1 :mrgreen:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

Stephen nonetheless
Posts: 5
Joined: Wed Feb 11, 2015 7:51 pm

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Mar 01, 2015 3:56 pm

Thanks!
This was the one thing lacking on pi that meant i needed to keep a laptop hooked up to the telly for the footy, great work Sir! :D

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Mar 01, 2015 9:00 pm

Stephen nonetheless wrote:Thanks!
This was the one thing lacking on pi that meant i needed to keep a laptop hooked up to the telly for the footy, great work Sir! :D
You might need to keep that laptop flash is slow. :mrgreen:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

Stephen nonetheless
Posts: 5
Joined: Wed Feb 11, 2015 7:51 pm

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Mar 01, 2015 10:34 pm

Watched the footy on it today, ok it's a bit choppy but tbh that may be my feeble connection (~2Mbps) and it at least played consistently throughout whereas it often stutters and stops on the laptop. Only problem was not being able to install adblock (chrome version incompatible with webstore, 'pparently) but yeah quite pleased frankly :)
Kudos to the OP!

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Mon Mar 02, 2015 12:39 am

Stephen nonetheless wrote:Watched the footy on it today, ok it's a bit choppy but tbh that may be my feeble connection (~2Mbps) and it at least played consistently throughout whereas it often stutters and stops on the laptop. Only problem was not being able to install adblock (chrome version incompatible with webstore, 'pparently) but yeah quite pleased frankly :)
Kudos to the OP!
New version of chromium here so you can be able to install extensions http://blog.valitov.me/2014/06/installi ... m.html?m=1 :mrgreen:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

Stephen nonetheless
Posts: 5
Joined: Wed Feb 11, 2015 7:51 pm

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Mon Mar 02, 2015 11:26 am

Oh you good fellow! That's my bit of messing for this evening sorted anyway :D

skarebrian
Posts: 1
Joined: Wed Mar 04, 2015 9:24 am

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Wed Mar 04, 2015 10:08 am

Well, having read how to put a Pi on the back of a TV - to get a simple permanent computer in place for youtube and tv replays - I got myself a Pi 2 - and what happened - first site I loaded up " you need Flash Player " Then an hour or so in the forum it seems it can work if you are somehat advanced in programming - with a special version of Chromium.
Anyone interested in putting up a tutorial on this ?
I think this is a good beginners project - to solve the PC-TV connection problem.

( the actual installation of software and hardware and connecting to a TV - went like a dream - great )

Todays newbie - Brian

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Wed Mar 04, 2015 7:39 pm

expandables wrote:
Stephen nonetheless wrote:Watched the footy on it today, ok it's a bit choppy but tbh that may be my feeble connection (~2Mbps) and it at least played consistently throughout whereas it often stutters and stops on the laptop. Only problem was not being able to install adblock (chrome version incompatible with webstore, 'pparently) but yeah quite pleased frankly :)
Kudos to the OP!
New version of chromium here so you can be able to install extensions http://blog.valitov.me/2014/06/installi ... m.html?m=1 :mrgreen:
Thank you for this

Rovaals
Posts: 5
Joined: Sun Mar 29, 2015 12:20 am

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Mar 29, 2015 12:25 am

Looking at http://odroidxu.leeharris.me.uk/ I can see Pepper Flash 15 for ARMv7h and a Pepper Flash 16 that doesn't specify if it is for ARMv7h or not.

Has this method (which says to use the Pepper Flash 12 file) been attempted with those newer ones? I don't have an RPi2, only a B+, so I can't check myself.

Has anyone posted videos to youtube of the performance of Pepper Flash on RPi2? When I look all I find are tutorials for Gnash on the other RPi models.

User avatar
expandables
Posts: 654
Joined: Fri Jun 27, 2014 7:34 pm
Location: Neverland with Michael Jackson

Re: Howto: Flash Player for Chromium on Raspbian with RPi2

Sun Mar 29, 2015 1:24 am

Youtube performance is slow as a snail :mrgreen:
By thinking like an engineer you can create a raspberry pi.
Michael Jackson enthusiast.
I got the PI model B, B+ and PI 2 model B.
When will I get the A? I don't know.

Return to “Raspbian”

Who is online

Users browsing this forum: tannenba and 24 guests