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 1:37 am

expandables wrote:Youtube performance is slow as a snail :mrgreen:
I mean if anyone has posted a video to youtube of the performance when using other flash things (like animations, flash menus, simple games), not a video of using youtube with pepper flash on RPi2. One of the sites my kids frequent (http://www.TVOKids.com) uses flash for all its menus. Even the mobile version of their site uses flash (just not for the menus). The games there are simple and don't require speedy performance.

I also noticed the repos for Chromium deb files in that guide was pointing at an older Ubuntu release, and it only went up to Chromium 37. If you point to the Utopic equivalent path you get Chromium 41, although that might not affect flash performance. The 15 and 16 Pepper Flash files I noticed on Lee Harris' site might help more with that if they work.

https://launchpad.net/ubuntu/utopic/arm ... mpeg-extra
https://launchpad.net/ubuntu/utopic/arm ... um-browser
http://odroidxu.leeharris.me.uk/

User avatar
eriktheitalian
Posts: 358
Joined: Thu Feb 19, 2015 1:03 pm

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

Sun Mar 29, 2015 5:45 pm

Adobe flash cannot handle very heavy load. Their simple target is vector animations when start. But now they are like universal virtual machine. Flash is not designed for this from begin. We need hw accelerated browser first.
I cant using enough English language. My writings can be wrong grammer.$
"in micro$oft we not trust"

User avatar
Mequa
Posts: 172
Joined: Sun Sep 09, 2012 9:54 pm
Location: England
Contact: Website

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

Mon Mar 30, 2015 8:15 pm

I'm wondering if ARM Pepper Flash (for Raspbian Chromium) has any support for old Adobe/Macromedia Shockwave content?

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

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

Mon Mar 30, 2015 9:11 pm

Mequa wrote:I'm wondering if ARM Pepper Flash (for Raspbian Chromium) has any support for old Adobe/Macromedia Shockwave content?
Yes, I could run some of my old .swf files.
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

webtest
Posts: 16
Joined: Sun Mar 29, 2015 3:16 pm
Location: Carlisle PA, USA

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

Fri Apr 03, 2015 11:09 am

expandables wrote: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:
As of this morning, APR 3, this link shows a blank screen, but pops up another blank window. Clicking on "Home" redirects to http://www.dillo.org/ with information about a "Dillo Web Browser". This doesn't look kosher to me. This isn't Chrome, is it?
Blessings in abundance, all the best, & ENJOY!
Art in Carlisle PA, USA

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

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

Fri Apr 03, 2015 11:29 am

webtest wrote:
expandables wrote: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:
As of this morning, APR 3, this link shows a blank screen, but pops up another blank window. Clicking on "Home" redirects to http://www.dillo.org/ with information about a "Dillo Web Browser". This doesn't look kosher to me. This isn't Chrome, is it?
I'm not seeing what you're seeing. The main image (http://www.valitov.me/images/stories/valitovme2.png) on that page returns a 404 Not Found response. When I scroll down, the rest of the content is there. Did some advertisement hijack your browser? I don't see a "Home" link anywhere on that page.

I use these on Raspbian:
http://launchpadlibrarian.net/185065105 ... _armhf.deb
http://launchpadlibrarian.net/185030872 ... 17_all.deb
http://launchpadlibrarian.net/185065117 ... _armhf.deb

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

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

Fri Apr 03, 2015 1:22 pm

The page loads fine for me, here is the steps in case it does go down.
KTB posted the links to the .deb packages and the libpepflashplayer.so can be found at http://odroidxu.leeharris.me.uk/

How to install Chromium? Step by step manual.
The suggested method is quick and easy way to install Chromium from .deb packages in any Debian-like system and on any ARM device (Raspberry PI, Odroid, Cubieboard, etc.). The .deb package can be downloaded from Marko's repositories, but they are too old. I suggest using Ubunty repositories instead. The Chromium browser itself can be downloaded from here as a *.deb package. In my system I also required to download chromium-codecs-ffmpeg-extra package because Chromium requires it.

The installation process is as follow:
Download chromium *.deb package from the link above (it was version 34 at the time this manual was written).
Download chromium-codecs-ffmpeg-extra package from the link above.
Install the packages by command (you may need to change the file names of the packages accroding to those you have downloaded in step 1 and 2): dpkg -i chromium-codecs-ffmpeg-extra_34.0.1847.116-0ubuntu~1.12.04.0~pkg884_armhf.deb chromium-browser_34.0.1847.116-0ubuntu~1.12.04.0~pkg884_armhf.deb
The installation is complete.

Problem - unmet dependencies
In my case I had unmet dependencies because of my Kali Linux 1.0.7 (is a fork of Debain Wheezy) had an old version of libc6 library. The newer version was available only at jessie (testing) branch. To install it I had to add the following lines to /etc/apt/sources.list:

deb http://ftp.us.debian.org/debian testing main contrib non-free
deb-src http://ftp.us.debian.org/debian testing main contrib non-free
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

Debian usually has preferences file that correctly handles testing & stable version of packages, so the above lines won't move our Linux completely to testing branch. My version of Kali Linux didn't have such preferences set, so I had to setup them manually. I created a file in /etc/apt/preferences.d/main.pref with the following content:
Package: *
Pin: release n=kali
Pin-Priority: 350

Package: *
Pin: release n=kali-bleeding-edge
Pin-Priority: 300

Package: *
Pin: release n=jessie
Pin-Priority: 10

The first 2 blocks describe internal packages of Kali Linux that have a higher priority than Debian Jessie package. Note: if you're using Debian Wheezy, you should have one block with n=wheezy instead of the 2 above. After the changes are saved, you should run command
apt-get update

Then you should explicitly install the new libc6 package by running the following command:
apt-get install libc6 -t testing

After that all dependencies should be met and you can try to install the Chromium browser again.

Installing Flash Player
The usual flashplugin-nonfree for Linux is not available for ARM devices. The solution is to use PepperFlash plugin. It's not available for the public from the Google team, but thanks to Lee Harris we can download it from his site. It's a link for the plugin for ARMv7 ripped from original Google OS from Chromebook. If you don't trust the link above you may try to rip it out yourself. After you download the archive you should extract the Pepperflash dir to /usr/lib. After that you need to do the following changes to the Chromium config file /etc/chromium-browser/default. You should modify it, so it has a line:
CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=12.0.0.77"

Running Chromium with root rights
The Chromium browser doesn't launch as a root. You can change that behavior by editing it's config file /etc/chromium-browser/default. You should modify it, so it has a line:
CHROMIUM_FLAGS="-password-store=detect -user-data-dir"
If you need flash support, the line should look like this:
CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=12.0.0.77 -password-store=detect -user-data-dir"

diederik
Posts: 391
Joined: Wed Mar 26, 2014 11:17 pm

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

Fri Apr 03, 2015 8:54 pm

Rovaals wrote:Then you should explicitly install the new libc6 package by running the following command:
apt-get install libc6 -t testing
Don't complain when you notice that various other things break though. You can't just blindly install packages from jessie/testing in a wheezy/stable system and expect everything to keep working. That's even more the case for a critical component like libc6.

And running a browser as root ... that's asking for troubles :roll:

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

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

Sat Apr 04, 2015 1:39 am

diederik wrote:
Rovaals wrote:Then you should explicitly install the new libc6 package by running the following command:
apt-get install libc6 -t testing
Don't complain when you notice that various other things break though. You can't just blindly install packages from jessie/testing in a wheezy/stable system and expect everything to keep working. That's even more the case for a critical component like libc6.

And running a browser as root ... that's asking for troubles :roll:
I'm just pasting the contents of the guide that someone posted a few weeks back because 2 users said they couldn't reach it anymore. I wouldn't suggest running a browser as root either.

I don't have an RPi2 yet, but my plan is to get Chromium installed, put the libpepflashplayer.so in the /usr/lib folder and point the chromium flags at it. Anything else the blog talks about I might look at if my steps don't get it working, but I wouldn't do first.

diederik
Posts: 391
Joined: Wed Mar 26, 2014 11:17 pm

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

Sat Apr 04, 2015 4:34 am

Rovaals wrote:I'm just pasting the contents of the guide that someone posted a few weeks back because 2 users said they couldn't reach it anymore.
Ah ok, sorry. Didn't realize that.

My remarks still apply to the article though.

sdmeijer
Posts: 25
Joined: Thu Jun 21, 2012 6:13 pm

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

Mon Apr 06, 2015 10:15 am

Thanks! With this Scratch 2 (online) also runs on a Raspberry Pi 2B.

http://www.raspberrypi.org/forums/viewt ... 20&start=0

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

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

Fri Apr 10, 2015 2:41 am

I got my hands on a RPi2 and thought I would relate my experience with testing flash on it. I'm only borrowing it, so I wanted to run through scenarios quickly and have tried 3 different setups so far.

1) Ubuntu ARM port for RPi2 - This isn't Snappy Core, this is full Ubuntu 14.04 for ARM (although it starts with no GUI, you can install that after) https://wiki.ubuntu.com/ARM/RaspberryPi
  • I installed everything according to the link above and picked xubuntu desktop.
  • This gave me a very current base OS and a current version of Chromium. I didn't need to do the repo changes or forced update of libc6 that the valitov.me site talked about to get v41 working, because I had a high enough version with Ubuntu ARM 14.04
Performance on TVOKids.com (my kids' favourite site) was okay in the flash menus, a little slow on the flash games and slow on the flash videos.

2) Raspbian
  • Installed Chromium from apt-get install and it gave me v22, which is old.
  • Didn't bother trying Flash 16 because I heard that higher versions of Flash than 12 had issues with older Chromium.
  • Running a Wheezy base with old Chromium
Performance in Flash was mostly comparable to Ubuntu. I noticed that a certain menu that had a video embedded in it wasn't loading (just got an empty border seeing through to the colourful background). It loaded that part fine on Ubuntu with Chromium v41.

3) Kano
  • Chromium v22 is pre-installed
  • copied in the plugin for Flash 12, just like in Raspbian's Chromium v22
Performance in Flash was similar, but it felt a little bit slower in a few spots. Had the same issue with the flash video in the flash menu that Raspbian and Chromium v22 had.

For less heavy sites, I could see this working fine. I tried with both the regular clocked and 1000,500,500,2 settings for RPi2 overclock and it didn't make a whole lot of difference in what i saw. Maybe if I played around with the Ubuntu Chromium more, maybe tried different version (v37 or v34?) I could get Flash 16 to work. Although I don't know if that would bring any performance increase.

Is it okay to go higher than the 1000,500,500,2 overclock on the RPi2? I run my B+ on turbo, but this RPi2 isn't mine, so I don't want to go overboard with it. I could see that maybe helping performance.

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

Fri Apr 10, 2015 5:23 pm

No hardware acceleration so it will always be 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.

rpi2015
Posts: 2
Joined: Mon Apr 27, 2015 8:03 pm

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

Mon Apr 27, 2015 8:08 pm

Is this installation only compatible with RPi2? I am trying to do this on RPi B+ but I have been unsuccessful so far.

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

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Mon Apr 27, 2015 10:16 pm

didn't you read the subject header, yes its only for the PI2B.

rpi2015
Posts: 2
Joined: Mon Apr 27, 2015 8:03 pm

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Tue Apr 28, 2015 2:41 pm

mahjongg wrote:didn't you read the subject header, yes its only for the PI2B.
I can't find anything on installing pepper flash on RPi B+, is it even possible?

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

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Tue Apr 28, 2015 2:47 pm

No , its not. Pepper Flash only runs on ARMv7 devices.

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

Albond87
Posts: 14
Joined: Sat May 02, 2015 3:20 pm

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Mon May 04, 2015 4:45 pm

gkreidl wrote:You need to have Chromium installed.

Code: Select all

wget http://odroidxu.leeharris.me.uk/PepperFlash-12.0.0.77-armv7h.tar.gz
tar -xzf PepperFlash-12.0.0.77-armv7h.tar.gz
cd PepperFlash
chmod +x *
sudo cp * /usr/lib/chromium/plugins
sudo nano  /etc/chromium/default
Uncomment the line starting with "CHROMIUM_FLAGS="
Add the following line

Code: Select all

CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium/plugins/libpepflashplayer.so --ppapi-flash-version=12.0.0.77 -password-store=detect -user-data-dir"
Save (CTRL+O)

Open Chromium
enter
chrome://plugins

The pepperflash-plugin should be visible. Enable it.
Done.

Flash animations work well, flash video to a certain degree, depending on video resolution (no hardware acceleration).

(Collected from different sources on the internet and tested).
It's not working. When I get to 'sudo nano /etc/chromium/default' it says 'command not found'. Same goes for 'CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium/plugins/libpepflashplayer.so --ppapi-flash-version=12.0.0.77 -password-store=detect -user-data-dir"'. Am I doing anything wrong?

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

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Mon May 04, 2015 5:29 pm

Albond87 wrote: It's not working. When I get to 'sudo nano /etc/chromium/default' it says 'command not found'. Same goes for 'CHROMIUM_FLAGS="--ppapi-flash-path=/usr/lib/chromium/plugins/libpepflashplayer.so --ppapi-flash-version=12.0.0.77 -password-store=detect -user-data-dir"'. Am I doing anything wrong?
What kind of OS are you running? nano should be installed, at least it is on a default Raspbian image.
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

Albond87
Posts: 14
Joined: Sat May 02, 2015 3:20 pm

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Mon May 04, 2015 6:12 pm

I'm not sure, I think Debian or Linux.

Albond87
Posts: 14
Joined: Sat May 02, 2015 3:20 pm

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Tue May 05, 2015 4:33 pm

gkreidl wrote:
Uncomment the line starting with "CHROMIUM_FLAGS="
Do you mean the line that automatically comes up when you get onto nano?
gkreidl wrote:
Save (CTRL+O)
When I press save, it comes up with 'File name to write: /etc/chromium/default'. What do I do here?

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

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Tue May 05, 2015 5:00 pm

nano is a text editor. It opens the text file "/etc/chromium/default" for editing.
Yes, when you press "CTRL o" the file name is displayed. Just hit "Enter" to save with the same file name.
You can also do the editing with leadpad if you prefer an editor with a GUI. Call it from a terminal

Code: Select all

gksudo leafpad /etc/chromium/default
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

exhibit333
Posts: 1
Joined: Tue May 05, 2015 9:15 pm

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Tue May 05, 2015 10:00 pm

We've been successfully running a full screen feed of NASA-TV for days but just now (shame on me) noticed that .xsession-errors is filling up. Every second or so this line is added to the log:

Code: Select all

[WARNING:flash/platform/pepper/pep_microphone_manager.cpp(125)] Failed to enumerate microphones (error code -2).
Any idea what that's all about?

I know .xsession-errors is recreated (effectively emptied out) every time X is started, but for our display-only application we start the browser and walk away, never restarting X. And I also realize that a workaround is to just go ahead and do restart every week or so but, like George Jetson, all that button pushing just wears me out.

RPI2, Raspbian Wheezy 3.18.7-v7+ #755
Chromium : 22.0.1229.94~r161065+dfsg-0.1+rpi1
PepperFlash-12.0.0.77-armv7h.tar.gz

With the log up to 75MB after a week of runtime and 2.8GB free, I figure I've got only about 37 weeks to sort this out!

Thanks,
Mike

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

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Tue May 05, 2015 10:11 pm

Perhaps adding a cheap USB soundcard with a mic input might help.
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

Krassegrand
Posts: 105
Joined: Sat Apr 25, 2015 3:20 pm
Location: Halmstad Sweden

Re: Howto: Pepper Flash Player for RPI2 with Chromium & Rasp

Mon May 11, 2015 5:13 pm

I have done the part in the terminal and opened Chromium but how do I enter chrome plugins?
gkreidl wrote: Open Chromium
enter
chrome://plugins
It seems I always get stuck on the simple things! ;)

Jörgen

Edit!
haha!!!!!!
I got it!

Thank You guys for Your patience when I ask all my stupid questions!
Last edited by Krassegrand on Mon May 11, 2015 5:32 pm, edited 1 time in total.

Return to “Raspbian”