[HOW-TO ALL PLATFORMS]Can I use Netflix on OSMC?(post 4)

a yes or a no would help. and because English is not my mother tongue. I just ask!

You have to run Leia alphas (v18) for Netflix

You’ll need xz-utils for the script to work:

sudo apt-get install xz-utils

Meanwhile… To think I beat myself up for days wondering why the script failed to work. :grinning: Netflix is now working again. Amazon of course still having issues.

added the install of xz-utils to the howto

Hi all, this is my first reply :slight_smile:.

I need some help with netflix running on raspi 3, please.
I followed the steps presented by @joakim_s and I already managed to run netflix addon on pi 3. I can log in my account and I can run a movie, the problem is that the movie only has audio and subtitles, the video appears in a strange way (switching between macro blocks, green and grey image). I have all the updates. Does anyone have experienced this problem?

Here is the log:

13:07:00.982 T:1823912688 WARNING: Invalid media type “”
13:07:19.862 T:1922826080 WARNING: Previous line repeats 6 times.
13:07:19.862 T:1922826080 NOTICE: VideoPlayer::OpenFile: http://localhost:41679/manifest?id=70124805
13:07:19.863 T:1366291184 NOTICE: Creating InputStream
13:07:20.194 T:1902113520 ERROR: CAESinkALSA::Initialize - failed to initialize device “Default”
13:07:25.691 T:1823912688 WARNING: Invalid media type “”
13:07:26.009 T:1366291184 WARNING: Previous line repeats 1 times.
13:07:26.009 T:1366291184 NOTICE: Creating Demuxer
13:07:26.012 T:1366291184 NOTICE: Opening stream: 1 source: 256
13:07:26.117 T:1823912688 WARNING: Invalid media type “”
13:07:26.709 T:1366291184 WARNING: Previous line repeats 2 times.
13:07:26.709 T:1366291184 NOTICE: Creating video thread
13:07:26.709 T:1366291184 NOTICE: Opening stream: 2 source: 256
13:07:27.032 T:1366291184 NOTICE: Creating audio thread
13:07:27.032 T:1366291184 NOTICE: Opening stream: 4 source: 256
13:07:28.448 T:1922826080 NOTICE: Display resolution ADJUST : 1920x1080 (1920x1080) @ 23.98 - Full Screen (57) (weight: 0.000)
13:07:28.481 T:1366291184 NOTICE: OMXClock using audio as reference
13:07:28.535 T:1922826080 NOTICE: VideoPlayer: OnLostDisplay received
13:07:28.777 T:1922826080 NOTICE: VideoPlayer: OnResetDisplay received
13:07:49.800 T:1922826080 NOTICE: Previous line repeats 1 times.
13:07:49.800 T:1922826080 NOTICE: CVideoPlayer::CloseFile()
13:07:49.800 T:1922826080 NOTICE: VideoPlayer: waiting for threads to exit
13:07:49.802 T:1366291184 NOTICE: CVideoPlayer::OnExit()
13:07:49.803 T:1366291184 NOTICE: Closing stream player 1
13:07:49.806 T:1324348144 NOTICE: thread end: OMXPlayerAudio::OnExit()
13:07:49.889 T:1366291184 NOTICE: Closing stream player 2
13:07:49.889 T:1823912688 ERROR: OMXPlayerVideo: Got MSGQ_IS_ERROR(-1) Aborting
13:07:49.889 T:1823912688 NOTICE: thread end: video_thread
13:07:49.949 T:1366291184 NOTICE: Closing stream player 3
13:07:49.959 T:1922826080 NOTICE: VideoPlayer: finished waiting
13:07:49.960 T:1922826080 NOTICE: CVideoPlayer::CloseFile()
13:07:49.961 T:1922826080 NOTICE: VideoPlayer: waiting for threads to exit
13:07:49.961 T:1922826080 NOTICE: VideoPlayer: finished waiting
13:07:50.349 T:1902113520 ERROR: CAESinkALSA::Initialize - failed to initialize device “Default”
13:07:50.466 T:1922826080 ERROR: Control 55 in window 10025 has been asked to focus, but it can’t
13:08:10.383 T:1383068400 WARNING: Invalid media type “”
13:08:10.531 T:1922826080 WARNING: Previous line repeats 1 times.
13:08:10.531 T:1922826080 NOTICE: VideoPlayer::OpenFile: http://localhost:41679/manifest?id=70124805
13:08:10.532 T:1315959536 NOTICE: Creating InputStream
13:08:10.837 T:1902113520 ERROR: CAESinkALSA::Initialize - failed to initialize device “Default”
13:08:15.833 T:1383068400 WARNING: Invalid media type “”
13:08:16.122 T:1315959536 WARNING: Previous line repeats 1 times.
13:08:16.122 T:1315959536 NOTICE: Creating Demuxer
13:08:16.125 T:1315959536 NOTICE: Opening stream: 1 source: 256
13:08:16.258 T:1383068400 WARNING: Invalid media type “”
13:08:16.411 T:1315959536 WARNING: Previous line repeats 1 times.
13:08:16.411 T:1315959536 NOTICE: Creating video thread
13:08:16.411 T:1315959536 NOTICE: Opening stream: 2 source: 256
13:08:16.474 T:1383068400 WARNING: Invalid media type “”
13:08:16.685 T:1315959536 NOTICE: Creating audio thread
13:08:16.685 T:1315959536 NOTICE: Opening stream: 4 source: 256
13:08:17.999 T:1922826080 NOTICE: Display resolution ADJUST : 1920x1080 (1920x1080) @ 23.98 - Full Screen (57) (weight: 0.000)
13:08:18.029 T:1922826080 NOTICE: VideoPlayer: OnLostDisplay received
13:08:18.230 T:1922826080 NOTICE: VideoPlayer: OnResetDisplay received
13:08:18.246 T:1315959536 NOTICE: Previous line repeats 1 times.
13:08:18.246 T:1315959536 NOTICE: OMXClock using audio as reference

Thanks.

This just a stab in the dark, but try to disable the OMX Player.

Thanks for the tip @joakim_s.
It seems that the problem was the hardware acceleration of omx player. I disabled it and now the video shows correctly, the problem is that due to the software video decoding, in 1080p the CPU 0 and 1 are almost at 100% and the stream freezes a little bit. In 720p it runs smoothly. Maybe a new version of the netflix add-on will solve this issue.
Regards.

Hi. I have follow your guide @joakim_s and all the time i get “netflix error” check the log for more information.
I searched the forum and no solution. The log all the time is the same:
File “/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/KodiHelper.py”, line 425, in build_profiles_listing
unescaped_profile_name = html_parser.unescape(enc_profile_name)
File “/usr/lib/python2.7/HTMLParser.py”, line 475, in unescape
return re.sub(r"&(#?[xX]?(?:[0-9a-fA-F]+|\w{1,8}));", replaceEntities, s)
File “/usr/lib/python2.7/re.py”, line 155, in sub
return _compile(pattern, flags).sub(repl, string, count)
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xce in position 0: ordinal not in range(128)
–>End of Python script error report<–
00:04:19.301 T:1922744160 ERROR: GetDirectory - Error getting plugin://plugin.video.netflix/
00:04:19.302 T:1922744160 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/) failed
Do you have any solution?

Have you installed Kodi v18 yet? Netflix doesn’t work in v17.

Yes. Kodi 18 installed and all updates!
I followed the guide twice and all the time the same error.
I run OSMC.

Hi. Thank you by your install guide.

I followed the steps and I have Netflix working on my Raspberry Pi 2. I only had an error about the osmc skin. No problem.

Now, I have a problem while playing a video. The video and audio is not synced, and the video plays about 10-15 fps .

Is the RaspBerry Pi 2 too slow for this?

Thank you.

AFAIK decoding is done in SW (no HW-accel). Try 720p. IIRC people reported this working (but no 1080p).

I Tried to config this on the addon, but didn ‘t find it. Should I do this at the osmc config?
I don’t remember, but I think my tv is not fullhd. I’ll give it a try tomorrow.
Thank you

I’ve got Netflix running on a pi2 without problems, in configure under netflix addon you got “inputstream configuration” link, click that and you can setup if you want lesser resolution

Thank you joakim_Sandstrom, it worked!

I must set up to 480p. My FTH connection is up to 50 Mbps, but the Raspberry pi 2 aparently doesn’t support 720p streaming no netflix…

EDIT: (SOLVED) : Reinstallaing the addon again did the trick, is now working fine. Thanks for all.
I’m followed your guide @joakim_s the addons installs just fine, and when running it and entering the credential details it gives me the following error:
No JSON object could be decoded

22:36:16.486 T:1477440240   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ValueError'>
                                            Error Contents: No JSON object could be decoded
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/addon.py", line 42, in <module>
                                                NAVIGATION.router(paramstring=REQUEST_PARAMS)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/utils.py", line 45, in wrapped
                                                result = func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 85, in router
                                                options = self.before_routing_action(params=params)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/utils.py", line 45, in wrapped
                                                result = func(*args, **kwargs)
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 708, in before_routing_action
                                                'method': 'is_logged_in'}))
                                              File "/home/osmc/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 884, in call_netflix_service
                                                parsed_json = json.loads(data)
                                              File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
                                                return _default_decoder.decode(s)
                                              File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
                                                obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                                              File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
                                                raise ValueError("No JSON object could be decoded")
                                            ValueError: No JSON object could be decoded
                                            -->End of Python script error report<--
22:36:16.564 T:1922781024   ERROR: GetDirectory - Error getting plugin://plugin.video.netflix/
22:36:16.565 T:1922781024   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflix/) failed

Is anyone having this error? I’m running a RPI2 latest OSMC build, and latest Kodi 18 build too.

Thanks for your patience. I finally pulled the logfile together:
http://ix.io/Qv3

I’ve been able to stream on YouTube, but not Netflix, so it’s not entirely an internet connectivity issue.

This guide worked perfect for me but I had such a hard time finding it hidden in the comments of a question. I feel like this deserves to be it’s own post

hi there, I had netflix working perfectly than it broke… so I switched to libreelec, but I miss some proper debian features.

So I am back again to OSMC, Kodi 18 RPI 3, netflix is not working, followed this guide in every step.

it really works on libreelec.

Maybe someone can modify this one to easy getwidivine?

curl -Ls http://nmacleod.com/public/libreelec/getwidevine.sh | bash

Please does anyone have solution?