[REQUEST] Amazon Prime Instant Video addon (similar to Netflix)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
timdog82001 Offline
Posting Freak
Posts: 1,142
Joined: Mar 2006
Reputation: 0
Post: #1
See page here for some details: http://www.engadget.com/2011/02/22/amazo...-hands-on/

Basically, its amazon's equivalent to Netflix and you can stream TV and movies. People in the US who pay for Amazon Prime (a service that gives you free 2-day shipping) now get this service included for no extra charge. I know several people that have it, and for those that don't, it can be a worthwhile service because you only have to buy one package for your entire family to use. My mom, dad, me, my sister and her husband and kids all use one account.

An addon for this would be excellent!
find quote
AppleTV2 Offline
Junior Member
Posts: 3
Joined: Feb 2011
Reputation: 0
Post: #2
Agreed it would be a great add-on - I think however only the primary member (i.e. not your extended family) would be able to use the on-demand service
find quote
BlueCop Offline
Skilled Python Coder
Posts: 1,432
Joined: May 2004
Reputation: 73
Post: #3
I am working on one. I am a prime member so it is has good free movies and content for me.

I am still researching. I do understand have the process to get the final rtmp link for playback. I just have some test scripts written so far.
find quote
toprunner2786 Offline
Junior Member
Posts: 11
Joined: Aug 2010
Reputation: 0
Post: #4
I just saw this on the amazon home page and the first thing i did was start searching to see if anyone was working on an xbmc solution to this...hopefully you are making headway...I can't offer much help, but i can give two thumbs up that this would be awesome!!!
find quote
ctawn Offline
Senior Member
Posts: 280
Joined: May 2009
Reputation: 0
Post: #5
toprunner2786 Wrote:I just saw this on the amazon home page and the first thing i did was start searching to see if anyone was working on an xbmc solution to this...hopefully you are making headway...I can't offer much help, but i can give two thumbs up that this would be awesome!!!

what he said!
find quote
Eric_S Offline
Member
Posts: 65
Joined: Feb 2011
Reputation: 0
Post: #6
Ditto!
find quote
daemox Offline
Stare into the Sun
Posts: 72
Joined: Oct 2010
Reputation: 1
Location: Cascadia
Post: #7
BlueCop Wrote:I am working on one. I am a prime member so it is has good free movies and content for me.

I am still researching. I do understand have the process to get the final rtmp link for playback. I just have some test scripts written so far.

I'd be happy to test or help out in anyway. Not a coder unfortunately.

Also for anyone that's curious Amazon Prime streaming uses Flash not Silverlight and is working under Linux Mint 10.
find quote
BlueCop Offline
Skilled Python Coder
Posts: 1,432
Joined: May 2004
Reputation: 73
Post: #8
Well good news. I have all the authentication and playback code done.

I am watching a Doctor Who episode right now with xbmc from amazon prime. None of the listing code is done. I am seeing if it is possible to use some amazon python libraries that already exist to do the listings.

So right now it isn't useful to the average person because you have to manually feed it the amazon link to the video. anyway I am done for today. hopefully more progress tomorrow

also I just wanted to add. I am watching it in HD Wink
find quote
bmcclure937 Offline
Fan
Posts: 654
Joined: Dec 2010
Reputation: 5
Location: Ohio
Post: #9
How would you compare Amazon Prime Instant with Hulu and Netlflix in terms of XBMC playback... which is better/worse in your humble opinion Wink

Thanks for another great addon BlueCop!! What you do amazes me and I wish I could shadow you for a day to understand the process of breaking down the different pieces and assembling them into a nice python addon for XBMC.
find quote
BlueCop Offline
Skilled Python Coder
Posts: 1,432
Joined: May 2004
Reputation: 73
Thumbs Up   
Post: #10
well their resolution and bitrates levels are different from hulu. they use the same streaming method(rtmp) in the same container(flv) with the same codecs(h264/aac). So it all depends on which quality level you select.

the 3500kbps 720p hulu stream looks better then thr hd stream from amazon. the 2500 and 1500kbps 720p from hulu are comparablr to the amazon hd.

for sd content it is a little different. the 480p hulu (700x400 for 16:9, 640x480 for 4:3) is generally streamed at 1000kbps. the amazon highest sd quality is 704x384 at ~1200kbps. so you lose a bit of resolution but gain some bitrate. It is hard to compare these I think they look very similar. the amazon is less prone to compression artifacts imho. I can't substantiate that with evidence though.

I can't compare to netflix because it isn't on my htpc right now(linux).

I want to write a guide to reversing rtmp sites. amazon was interesting because it used ssl like it was going out of style. seting up ssl proxies was essential to figuring everything out. The process I use most is just a proxy to monitor and save traffic. I then just try to reverse those logs. I start with finding the rtmp link and working backwards. It isn't that hard. You just have to replicate what the client does. Sometimes sites use encryption with keys and algorithms in swf files. this requires more work by dumping the swf action script and grepping through to find the important bits.

also you wouldn't want to spend time with me. I am quite literally a crazy person(untreated bipolar). hypomania is when I code. I am not that good at it but I keep going. I like the sense of accomplishment. the depressive periods suck though. I also smoke way too much pot. you would end up smelling like bob marley.
find quote
tboooe Offline
Fan
Posts: 456
Joined: Dec 2010
Reputation: 0
Post: #11
BlueCop Wrote:also you wouldn't want to spend time with me. I am quite literally a crazy person(untreated bipolar). hypomania is when I code. I am not that good at it but I keep going. I like the sense of accomplishment. the depressive periods suck though. I also smoke way too much pot. you would end up smelling like bob marley.

To me smelling like Bob Marley is not such as bad thing!

Great work Bluecop! You are a rockstar! If you need any help from a ex-programmer of very average ability let me know.
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,221
Joined: Oct 2003
Reputation: 178
Post: #12
Very nice work BlueCop!

I'd certainly be most interested in that write up, as I'm sure a lot of addon developers would be.

Cheers,
Jonathan

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
BlueCop Offline
Skilled Python Coder
Posts: 1,432
Joined: May 2004
Reputation: 73
Post: #13
I have been looking at the product advertising api to get the needed Amazon Standard Identification Number which is all we really need to play the videos. There is a good python wrapper for the api here.

I am unsure if I will be able to get a developer key but I will apply and see if they accept me. I have to describe how I intend to use the api in the applications. I am still not sure I will be able to use it because the secret key used for requests shouldn't be distributed. I am still reading the API documentation on all the requests though. an intermediate web server for those requests seems overly complex as well.

My vision would be a plug-in where you can stream not only the free prime content but also purchase rentals of all their other content if you want. I was looking at their kick-back program and it would be awesome if xbmc could get some $ for a rental from the xbmc addon. I know I am living in a fantasy world thinking amazon would accept this but I still think it would be awesome.

tboooe: I forget where I heard it but I always liked the phrase "It smokes better when you roll your own". I like to apply that to other areas as well. Smile

jmarshall: I can usually figure out what needs to happen but knowing the best way to code it is usually my problem. I don't know python all that well. I have been watching these online python courses to try to improve. Voinage is still legend for his guide.

Edit: I also wanted to point out that amazon limits a prime member to 2 simultaneous free streams. This is better then hulu plus which limits you to 1.
(This post was last modified: 2011-02-25 01:33 by BlueCop.)
find quote
bmcclure937 Offline
Fan
Posts: 654
Joined: Dec 2010
Reputation: 5
Location: Ohio
Post: #14
BlueCop Wrote:well their resolution and bitrates levels are different from hulu. they use the same streaming method(rtmp) in the same container(flv) with the same codecs(h264/aac). So it all depends on which quality level you select.

the 3500kbps 720p hulu stream looks better then thr hd stream from amazon. the 2500 and 1500kbps 720p from hulu are comparablr to the amazon hd.

for sd content it is a little different. the 480p hulu (700x400 for 16:9, 640x480 for 4:3) is generally streamed at 1000kbps. the amazon highest sd quality is 704x384 at ~1200kbps. so you lose a bit of resolution but gain some bitrate. It is hard to compare these I think they look very similar. the amazon is less prone to compression artifacts imho. I can't substantiate that with evidence though.

I can't compare to netflix because it isn't on my htpc right now(linux).

I want to write a guide to reversing rtmp sites. amazon was interesting because it used ssl like it was going out of style. seting up ssl proxies was essential to figuring everything out. The process I use most is just a proxy to monitor and save traffic. I then just try to reverse those logs. I start with finding the rtmp link and working backwards. It isn't that hard. You just have to replicate what the client does. Sometimes sites use encryption with keys and algorithms in swf files. this requires more work by dumping the swf action script and grepping through to find the important bits.

also you wouldn't want to spend time with me. I am quite literally a crazy person(untreated bipolar). hypomania is when I code. I am not that good at it but I keep going. I like the sense of accomplishment. the depressive periods suck though. I also smoke way too much pot. you would end up smelling like bob marley.

Awesome!! Big Grin thanks for the info and all the work you have done. Your add-ons are greatly appreciated. Cool

You are a great asset to the community. Do not undermine your contributions... many others cherish your work and the functionality of our HTPCs would be handicapped without it!

Much appreciated.
find quote
timdog82001 Offline
Posting Freak
Posts: 1,142
Joined: Mar 2006
Reputation: 0
Post: #15
Wow, great work and so fast! I'm looking forward to the eventual release.

I had an idea, which may or may not be something you're interested in, or even feasible, but I thought I might throw it out there. I assume this will be a plugin (rather than a script)? If so it would be neat if you could have an option to populate the list of movies you see in the plugin with both the free movies from amazon AND movies you have locally. Afterall, they're both free and assuming you have a decent internet connection, the quality of the video and the experience should be pretty much the same. I know I would certainly prefer to scroll through just one long list of movies rather than having to do it twice. Anyway, I'm sure you're focusing on basic functionality now, but it's something to think about.
(This post was last modified: 2011-02-25 22:25 by timdog82001.)
find quote
Post Reply