Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for enabling 1080p streaming from linux #224

Merged
merged 1 commit into from
Dec 27, 2018
Merged

Workaround for enabling 1080p streaming from linux #224

merged 1 commit into from
Dec 27, 2018

Conversation

satmandu
Copy link
Contributor

As per @Varstahl suggestion here: #218 (comment)

This is working in official Kodi 18 Linux nightlies for streaming of Prime TV series in the US.

Also as suggested for this issue here: #205 (comment)

As per @Varstahl suggestion here: #218 (comment)

This is working in official Kodi 18 Linux nightlies for streaming of Prime TV series in the US.
@Varstahl Varstahl self-requested a review December 27, 2018 15:15
@Varstahl
Copy link
Collaborator

Glad it works for so many of you, and props to @Paco8 for finding it out.

Before actually merging it though, I want to investigate these new API parameters.
It could possibly solve some of the FHD decoding issues we were experiencing so far. Could be worth a shot.

@Varstahl
Copy link
Collaborator

Varstahl commented Dec 27, 2018

After a few tests, selecting anything other than Windows (and a few other written below), with this specific capitalization, reduces the number of videos available for playback. If, for example, we select Linux, it hides all the high movie resolution streams (that are unplayable anyway, in our case), but along with it takes a few of the high resolution TV series that would be playable. Using the Windows parameter, seems to restore all video qualities.

With a bit of data mining, and several tests later, I found the following:

operatingSystemName Max. playable Max. available
Unknown 1088x464
Android 1088x464
BlackBerry 1088x464
Chrome OS 1088x464
Firefox OS 1088x464
Google TV 1088x464
iOS 1088x464
Linux 1088x464
Mac OS X 1088x464 1920x816
Mac OS PPC 1088x464
Windows 1088x464 1920x816
Windows Phone 1088x464
Windows RT 1088x464 1920x816
Xbox One 1088x464

As far as movies go, Mac OS X, Windows and Windows RT have the full 1920 width available, although at least on my Win7 machine, only streams up to 1088x464 were playable. Anything higher would result in audio and a freezed frame. All streams reported as H264.

All these tests have been done without the operatingSystemVersion. I'm mostly sure to have seen some hardcoding about a version 10.12 inside the Javascript, maybe it will yield different outcomes, but that will require more poking, prodding and reverse engineering. I'll update the post if I find something new. They were mostly for Safari, Mac and HLS/Avci streams. Completely useless and changed basically nothing of our situation. Rien à faire…

For the time being I'll validate this as a universal fix, since it works on both PrimeVideo.com, Amazon.TLDs, Android, Linux and Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants