XU4 - Netflix with Chromium under Ubuntu mate

Post Reply
Payano
Posts: 11
Joined: Sat Mar 02, 2019 8:57 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 1 time
Contact:

XU4 - Netflix with Chromium under Ubuntu mate

Unread post by Payano » Mon Mar 25, 2019 1:54 am

I want to use an odroid xu4 as a media center with X11 and be able to play Netflix video content.
Today I tried to download the widevine shared object and tried to follow a raspberry pi 2 guide for getting the Netflix to work from the chromium web browser, and it worked. Both sound and video is working, these are the steps i followed to make it work.

Step 1:

Code: Select all

cd /tmp
wget https://download.christian-brauweiler.de/RaspberryPi/LibreELEC/libwidevinecdm.so
sudo mv libwidevinecdm.so /usr/lib/chromium-browser
And restart Chromium.

Step 2:
Download and install user agent switcher.
The text below is taken from a guide from instructables [1].
"Open Chromium and add a user agent switcher.

Go into settings then extentions and click Options on the user agent switcher and add the below user agent string

Mozilla/5.0 (X11; CrOS armv7l 6946.63.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2357.130 Safari/537.36

After adding the string be sure to switch to it by clicking the guy in the mast next to the address bar in the top right corner of chromium.

Make sure you restart chrome and then test it out on netflix."

Step 3:
Log in to netflix and play some video content.

When I was testing the solution i noticed that one series was stuttering, I the cpu load was quite high related to other series that i watched, but other series and movies worked fine :)

[1] https://www.instructables.com/id/How-to ... pbery-PI2/ (Step 3)
Best Regards
Johan Svensson

Github: https://github.com/payano
Webpage: https://www.exclude.se

Luke.go
Posts: 320
Joined: Mon May 30, 2016 1:55 pm
languages_spoken: english
Has thanked: 3 times
Been thanked: 6 times
Contact:

Re: XU4 - Netflix with Chromium under Ubuntu mate

Unread post by Luke.go » Mon Mar 25, 2019 9:24 am

Nice works! :D

User avatar
AreaScout
Posts: 990
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 11 times
Been thanked: 24 times
Contact:

Re: XU4 - Netflix with Chromium under Ubuntu mate

Unread post by AreaScout » Mon Mar 25, 2019 5:39 pm

Payano wrote:
Mon Mar 25, 2019 1:54 am
When I was testing the solution i noticed that one series was stuttering, I the cpu load was quite high related to other series that i watched, but other series and movies worked fine :)
Cool 8-) When I use Netflix with Kodi, I can bypass this if I set Max. Bandwidth (Bit/s) to 4000000 inside inputstream.adaptive, the problem is if the movie or series is encoded with very high bit rate which some series are
it's to much for the CPU and it starts to stutter, decreasing network bandwidth will force the streaming server to offer a stream with lowering the bit rate, you can play around yourself with that value to find the best performance/quality rate for your XU4 ;)

Maybe there is a plugin to lower network traffic for chromium browser too ?

RG

User avatar
mad_ady
Posts: 6136
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 118 times
Been thanked: 81 times
Contact:

Re: XU4 - Netflix with Chromium under Ubuntu mate

Unread post by mad_ady » Mon Mar 25, 2019 8:31 pm

Yes, either use tc (https://wiki.debian.org/TrafficControl), or run the browser in a control-group that has network limits.

Payano
Posts: 11
Joined: Sat Mar 02, 2019 8:57 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: XU4 - Netflix with Chromium under Ubuntu mate

Unread post by Payano » Tue Mar 26, 2019 4:09 am

AreaScout wrote:
Mon Mar 25, 2019 5:39 pm
Cool 8-) When I use Netflix with Kodi, I can bypass this if I set Max. Bandwidth (Bit/s) to 4000000 inside inputstream.adaptive, the problem is if the movie or series is encoded with very high bit rate which some series are
it's to much for the CPU and it starts to stutter, decreasing network bandwidth will force the streaming server to offer a stream with lowering the bit rate, you can play around yourself with that value to find the best performance/quality rate for your XU4 ;)

Maybe there is a plugin to lower network traffic for chromium browser too ?

RG
Nice I will try to limit the bandwidth, I found:
trickle/bionic 1.07-10.1build1 armhf
user-space bandwidth shaper

Will try it out when i have the time ;)
Best Regards
Johan Svensson

Github: https://github.com/payano
Webpage: https://www.exclude.se

Payano
Posts: 11
Joined: Sat Mar 02, 2019 8:57 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: XU4 - Netflix with Chromium under Ubuntu mate

Unread post by Payano » Tue Mar 26, 2019 4:10 am

mad_ady wrote:
Mon Mar 25, 2019 8:31 pm
Yes, either use tc (https://wiki.debian.org/TrafficControl), or run the browser in a control-group that has network limits.
Can you use TC and limit ingress traffic?

It says on their home page that:
"We can only shape data that we transmit. Using queueing we control the data flow."

/Johan
Best Regards
Johan Svensson

Github: https://github.com/payano
Webpage: https://www.exclude.se

User avatar
mad_ady
Posts: 6136
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 118 times
Been thanked: 81 times
Contact:

Re: XU4 - Netflix with Chromium under Ubuntu mate

Unread post by mad_ady » Tue Mar 26, 2019 3:06 pm

Hmm, I never thought of that. It makes sense not to drop traffic after it has crossed the internet to get to you...
I wonder if the cgroup option works the same way...

User avatar
AreaScout
Posts: 990
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 11 times
Been thanked: 24 times
Contact:

Re: XU4 - Netflix with Chromium under Ubuntu mate

Unread post by AreaScout » Tue Mar 26, 2019 4:50 pm


Payano
Posts: 11
Joined: Sat Mar 02, 2019 8:57 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: XU4 - Netflix with Chromium under Ubuntu mate

Unread post by Payano » Wed Mar 27, 2019 3:07 am

AreaScout wrote:
Tue Mar 26, 2019 4:50 pm
    Could it be it's that easy ? https://www.guidingtech.com/manage-thro ... ed-chrome/

    RG
    Nice!
    I tuned the network upload and download to 900 kb/sec and the load avg is around: 3.75 now and it the stuttering has appeared!
    ;)
    Best Regards
    Johan Svensson

    Github: https://github.com/payano
    Webpage: https://www.exclude.se

    User avatar
    odroid
    Site Admin
    Posts: 31297
    Joined: Fri Feb 22, 2013 11:14 pm
    languages_spoken: English
    ODROIDs: ODROID
    Has thanked: 44 times
    Been thanked: 179 times
    Contact:

    Re: XU4 - Netflix with Chromium under Ubuntu mate

    Unread post by odroid » Wed Mar 27, 2019 8:57 am

    appeared? or disappeared :?:

    Payano
    Posts: 11
    Joined: Sat Mar 02, 2019 8:57 pm
    languages_spoken: english
    ODROIDs: XU4
    Has thanked: 0
    Been thanked: 1 time
    Contact:

    Re: XU4 - Netflix with Chromium under Ubuntu mate

    Unread post by Payano » Wed Mar 27, 2019 10:05 pm

    Disappeared :lol: 8-)
    These users thanked the author Payano for the post:
    odroid (Wed Jul 10, 2019 7:01 pm)
    Best Regards
    Johan Svensson

    Github: https://github.com/payano
    Webpage: https://www.exclude.se

    User avatar
    AreaScout
    Posts: 990
    Joined: Sun Jul 07, 2013 3:05 am
    languages_spoken: german, english
    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
    N1, Go, VU5A, Show2, CloudShell2,
    H2, N2, VU7A, VuShell
    Has thanked: 11 times
    Been thanked: 24 times
    Contact:

    Re: XU4 - Netflix with Chromium under Ubuntu mate

    Unread post by AreaScout » Thu Mar 28, 2019 5:29 am

    Payano wrote:
    Wed Mar 27, 2019 10:05 pm
    Disappeared :lol: 8-)
    Phew, good to hear :) thanks for confirming and thanks to mad_ady for support

    RG

    Post Reply

    Return to “Projects”

    Who is online

    Users browsing this forum: No registered users and 0 guests