mikerr
Posts: 2783
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Netflix on Pi 2

Mon Jul 04, 2016 2:25 pm

Just saw that there are various versions available, thanks:

Code: Select all

sudo apt-cache policy chromium-browser
chromium-browser:
  Installed: 47.0.2526.73-0ubuntu0.15.04.1.1190
  Candidate: 50.0.2661.102-0ubuntu0.14.04.1.1118
  Version table:
     50.0.2661.102-0ubuntu0.14.04.1.1118 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
     49.0.2623.108-0ubuntu0.14.04.1.1113 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
     48.0.2564.82-0ubuntu0.15.04.1.1193 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
 *** 47.0.2526.73-0ubuntu0.15.04.1.1190 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
        100 /var/lib/dpkg/status
     45.0.2454.85-0ubuntu0.15.04.1.1181 0
        500 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main armhf Packages
Tried v47 and I get a different error "M7121-1331-P5" ... no luck with 45, or 48 either
Android app - Raspi Card Imager - download and image SD cards - No PC required !

User avatar
ruralguru
Posts: 23
Joined: Sat Jul 02, 2016 11:08 pm
Location: USA
Contact: Website

Re: Netflix on Pi 2

Mon Jul 04, 2016 4:58 pm

kusti8 wrote:
dom wrote:
kusti8 wrote:If you want to experiment with different Chromium versions, my repo includes all of them from v45 up, except v46 which was never really released. I'll see if I can get it running later in the week.
Cool. Ideally running with raspbian and with the newest version of Chromium possible (but I'll take whatever works).
The Chromium versions vary a lot in stability, especially with Web video. I had to disable GPU for youtube to work right (not that it works on a Pi in the first place expect for the OpenGL driver). V47 if I remember correctly had some sort of youtube display error. I don't remember exactly.
Slightly off topic: I am using mpsyt, a command line youtube operator. It seems to run very slim and no problems.
I have rans some fairly normal overclocking. also running the buffer=32 line above. I don't know much but It seems like it works.
Last edited by ruralguru on Mon Jul 04, 2016 7:07 pm, edited 1 time in total.
Laptop: Dell Inspiron 7746, touch screen, Ubuntu 16.04
Desktop: Raspberry Pi 3, Raspian LXDE (Slight overclock).
New to *nix , glad to be here.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Mon Jul 04, 2016 5:52 pm

I can't find it on Google. OmxplayerGUI works fine for me.
There are 10 types of people: those who understand binary and those who don't.

User avatar
ruralguru
Posts: 23
Joined: Sat Jul 02, 2016 11:08 pm
Location: USA
Contact: Website

Re: Netflix on Pi 2

Mon Jul 04, 2016 9:06 pm

I'm still new to this so please forgive me not knowing. But I am wondering about the following:
I read the error and it states that the libwidevine we had to add are out of date. is there a newer version to use?
If we could get oxygala to explain anything they did to make it work this would give us a starting point.
I used: http://peter.sh/experiments/chromium-co ... -switches/ to look into the last bit
--use-gl=egl (https://en.wikipedia.org/wiki/EGL_(API) states: The Raspberry Pi single-board computer has an EGL interface to hardware-accelerated 3D graphics rendering.)
--user-agent=”Mozilla/5.0 (X11; CrOS armv7l6946.86.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 \
Safari/537.36”
(what about this line? this identifies the browser. Anybody know how to get one, such as the one being ran on ubuntu chrome?)
Laptop: Dell Inspiron 7746, touch screen, Ubuntu 16.04
Desktop: Raspberry Pi 3, Raspian LXDE (Slight overclock).
New to *nix , glad to be here.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Tue Jul 05, 2016 6:12 am

Chromium does not accelerate Web video so that switch will make no difference so I don't know what the problem is. Of you can find a new library you might try that.
There are 10 types of people: those who understand binary and those who don't.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Tue Jul 05, 2016 7:06 am

After some research, you need the library version that corresponds to the Chromium version and then change the version, the Arch PKGBUILD shows how the package does it. Not at my Pi right now, but it's worth a shot.
There are 10 types of people: those who understand binary and those who don't.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 3:59 pm

I GOT IT!!! NETFLIX IS WORKING!!!

My steps:
Get the ChromeOS Linux recovery script:
sudo WORKDIR=/mnt ./linux_recovery.sh
And get number 14
Then, using this, unpack it and install the libs (https://gist.github.com/jesstelford/ede ... 611f332648)
Then, run Chromium with the following settings:
chromium-browser --use-gl=egl --user-agent="Mozilla/5.0 (X11; CrOS armv7l 6946.86.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36"


Playback is actually really smooth and very watchable. I'll record a video.
There are 10 types of people: those who understand binary and those who don't.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5349
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Netflix on Pi 2

Sat Jul 09, 2016 4:04 pm

kusti8 wrote:I GOT IT!!! NETFLIX IS WORKING!!!
Interesting. Might be worth trying with "framebuffer_depth=32" in config.txt which may improve performance.
Can you get Chromium 50 (or later) to work?

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 4:06 pm

Yup, on the latest V51, which I'm going to release soon. The video:
https://www.youtube.com/watch?v=haur6pnVrkw

Its pretty good, but I'll try with that. I'm making a bash script to automate it.
There are 10 types of people: those who understand binary and those who don't.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 4:11 pm

A very rough and untested script, but it shows the general idea of what I did:
https://gist.github.com/kusti8/41e9016d ... 637813a6df
There are 10 types of people: those who understand binary and those who don't.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 4:15 pm

dom wrote:
kusti8 wrote:I GOT IT!!! NETFLIX IS WORKING!!!
Interesting. Might be worth trying with "framebuffer_depth=32" in config.txt which may improve performance.
Can you get Chromium 50 (or later) to work?
I don't see any noticeable difference, but that may be just me. It was pretty smooth before, so not much improvement to be done.
There are 10 types of people: those who understand binary and those who don't.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5349
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Netflix on Pi 2

Sat Jul 09, 2016 4:16 pm

kusti8 wrote:Yup, on the latest V51, which I'm going to release soon.
Cool. There is some work going on to get HW video decode working with Chromium.
It's not focussing on NetFlix, but from my understanding it will still help Netflix playback (chromium uses ffmpeg lib as decoder).

Unfortunately the video decode isn't actually the bottleneck in Chromium - the resize/format conversion/blitting are all inefficient,
(try playing a low res video in chromium and then switch to full screen - then the CPU rockets) so the job isn't trivial, but we should get there eventually.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5349
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Netflix on Pi 2

Sat Jul 09, 2016 4:17 pm

kusti8 wrote:I don't see any noticeable difference, but that may be just me. It was pretty smooth before, so not much improvement to be done.
Are you testing full screen?

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 4:18 pm

dom wrote:
kusti8 wrote:I don't see any noticeable difference, but that may be just me. It was pretty smooth before, so not much improvement to be done.
Are you testing full screen?
No.Just changed to full screen with the framebuffer and its still smooth. I'll try another video that's 720p.
Edit: Maybe a little less smooth, but still watchable. This BTW is on a Pi3 and the CPU is definitely getting warm.
There are 10 types of people: those who understand binary and those who don't.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5349
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Netflix on Pi 2

Sat Jul 09, 2016 4:34 pm

kusti8 wrote:Edit: Maybe a little less smooth, but still watchable. This BTW is on a Pi3 and the CPU is definitely getting warm.
Is your display 1080p? Any overclock?

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 4:35 pm

dom wrote:
kusti8 wrote:Edit: Maybe a little less smooth, but still watchable. This BTW is on a Pi3 and the CPU is definitely getting warm.
Is your display 1080p? Any overclock?
Display is 1080p, but Netflix limits all Chrome streams to 720p, even on desktop. No overclock.
There are 10 types of people: those who understand binary and those who don't.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 5:39 pm

HW Video acceleration helps a lot

So, using the OpenGL driver and enabling all the required GPU flags in chrome://flags and chrome://settings, GPU Video acceleration works and it may just be me, but on Chromium, Netflix in 720p works perfectly with no seemingly dropped frames. Resizing from window to full screen was actually pretty good as well.

Edit: After a few minutes it crashed with the driver, and after looking at it, it reported 480p with 24 FPS.
Edit 2: Without GPU, it plays the same and the resolution jumps between 512x384 and 480p, probably because of my network at 24 FPS.
There are 10 types of people: those who understand binary and those who don't.

mikerr
Posts: 2783
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Netflix on Pi 2

Sat Jul 09, 2016 6:47 pm

Didn't work for me (did the huge download - no-14 and extract above) - maybe because I'm still on v50 ?
Last edited by mikerr on Sat Jul 09, 2016 6:55 pm, edited 1 time in total.
Android app - Raspi Card Imager - download and image SD cards - No PC required !

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 6:49 pm

mikerr wrote:Didn't work for me (did the huge download and extract above) - maybe because I'm still on v50 ?
To get V51, add dev to the end of the deb statement in /etc/apt/sources.list
And the usual
sudo apt-get update
sudo apt-get dist-upgrade
There are 10 types of people: those who understand binary and those who don't.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 6:51 pm

Also, something I didn't document that I'm not really sure it actually helps, but you might as well:

Code: Select all

cd /usr/bin
sudo ln -s chromium-browser chrome-browser
sudo ln -s chromium-browser chrome
cd -
There are 10 types of people: those who understand binary and those who don't.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5349
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Netflix on Pi 2

Sat Jul 09, 2016 6:53 pm

Okay, I have Chromium running and NetFlix and Amazon Prime Video are both working. Thanks for the help.
When running fullscreen I'd say video is dropping a lot of frames (e.g. playing at half framerate). This is on Pi3 without overclock.
Audio is okay with NetFlix, but Amazon has audio dropouts (I believe NetFlix is SD and Amazon is 720p).
I haven't tried with experimental GL driver.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 6:55 pm

dom wrote:Okay, I have Chromium running and NetFlix and Amazon Prime Video are both working. Thanks for the help.
When running fullscreen I'd say video is dropping a lot of frames (e.g. playing at half framerate). This is on Pi3 without overclock.
Audio is okay with NetFlix, but Amazon has audio dropouts (I believe NetFlix is SD and Amazon is 720p).
I haven't tried with experimental GL driver.
You can check with:
CTRL+ALT+SHIFT+D on Netflix. I get around 15-20 current dropped frames. Remember to have enough space for buffering and caching. Dropped frames seem to lessen without the debug panel showing.
There are 10 types of people: those who understand binary and those who don't.

mikerr
Posts: 2783
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Netflix on Pi 2

Sat Jul 09, 2016 8:01 pm

Also now got it working with chromium v51

Surprisingly watchable - even in fullscreen (720p TV) - I just watched a full episode with no audio dropouts.

Image

Netflix stats above say 24 fps, with a few dropped frames
Last edited by mikerr on Sat Jul 09, 2016 8:13 pm, edited 1 time in total.
Android app - Raspi Card Imager - download and image SD cards - No PC required !

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Netflix on Pi 2

Sat Jul 09, 2016 8:03 pm

mikerr wrote:Also now got it working with chromium v51

Surprisingly watchable - even in fullscreen (720p TV) - I just watched a full episode with no audio dropouts.
Yeah, I was astonished. I watched an entire episode as well and almost forgot it was the Pi.
There are 10 types of people: those who understand binary and those who don't.

User avatar
Dis93
Posts: 132
Joined: Thu Apr 07, 2016 8:30 pm
Location: Wuthering, Yorkshire

Re: Netflix on Pi 2

Sat Jul 09, 2016 8:42 pm

Probably due to my use of boilerplate, I still get the 'Install Silverlight' message (I did get a variant of the M7121-1331-P5 message at one point, C7121-1331-P5)
(On v51 chromium)

Return to “Media centres”