Page 3 of 7

Re: Netflix on Pi 2

Posted: Mon Jul 04, 2016 2:25 pm
by mikerr
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

Re: Netflix on Pi 2

Posted: Mon Jul 04, 2016 4:58 pm
by ruralguru
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.

Re: Netflix on Pi 2

Posted: Mon Jul 04, 2016 5:52 pm
by kusti8
I can't find it on Google. OmxplayerGUI works fine for me.

Re: Netflix on Pi 2

Posted: Mon Jul 04, 2016 9:06 pm
by ruralguru
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?)

Re: Netflix on Pi 2

Posted: Tue Jul 05, 2016 6:12 am
by kusti8
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.

Re: Netflix on Pi 2

Posted: Tue Jul 05, 2016 7:06 am
by kusti8
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 3:59 pm
by kusti8
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 4:04 pm
by dom
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?

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 4:06 pm
by kusti8
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 4:11 pm
by kusti8
A very rough and untested script, but it shows the general idea of what I did:
https://gist.github.com/kusti8/41e9016d ... 637813a6df

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 4:15 pm
by kusti8
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 4:16 pm
by dom
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 4:17 pm
by dom
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?

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 4:18 pm
by kusti8
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 4:34 pm
by dom
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?

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 4:35 pm
by kusti8
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 5:39 pm
by kusti8
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 6:47 pm
by mikerr
Didn't work for me (did the huge download - no-14 and extract above) - maybe because I'm still on v50 ?

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 6:49 pm
by kusti8
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

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 6:51 pm
by kusti8
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 -

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 6:53 pm
by dom
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 6:55 pm
by kusti8
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 8:01 pm
by mikerr
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

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 8:03 pm
by kusti8
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.

Re: Netflix on Pi 2

Posted: Sat Jul 09, 2016 8:42 pm
by Dis93
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)