Kodi Community Forum
[RELEASE] Amazon Prime Instant Video plug-in addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Amazon Prime Instant Video plug-in addon (/showthread.php?tid=108124)



- mgarbell - 2012-01-11

BlueCop Wrote:I just committed an update that should fix it.

let me know how it works. I just changed a variable name from "name" to "movietitle" and forgot one place it was used.

I made sure that I updated the repository, but I'm still getting the error.
http://pastebin.com/66hTszQL

Perhaps I did something wrong?


- BlueCop - 2012-01-11

ok fix attempt take two

I missed a name :/

committed another update. should really fix it now.


- mgarbell - 2012-01-11

Thank you so much BlueCop, that did the trick. Working great now!


- huckw - 2012-01-11

jonkeane Wrote:First this is a great plugin. Thanks for all of your work. I searched briefly and don't think I saw any discussion of this issue. I was trying to watch an hd television show that's supposed to be a bit less than an hour long. I tried twice, and both times the stream quit after 10 or so minutes. with:

20:22:10 T:140552334997248 M:3064565760 ERROR: WriteN, RTMP send error 104 (5 bytes)
20:22:10 T:140552334997248 M:3064565760 ERROR: WriteN, RTMP send error 32 (42 bytes)
20:22:10 T:140552334997248 M:3064696832 ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 78160

the full(er) log

Second, would it be possible to get a search like there is in the Hulu plugin? Thanks again.

I am getting the periodic stream drop as well. It seems totally random when it happens but usually once every 1.5 hours of watching. I've been dealing with it by using the skip to specific time functionality (nice feature BTW!). BUT...the exact same thing happens when I pause a video, then restart...it will play a few seconds and then hang just like it does when the stream drops...eventually it will go back to the menu where I can restart the stream and skip ahead. Any idea what I can do to fix the issue?

I'm on Win 7, XBMC 10.1 and plugin 0.3.9. Have comcast cable that is rock solid...the drop never seems to happen when watching prime videos through browser.


- BlueCop - 2012-01-11

Anyone using the Eden Beta 1 can use XBMCs built in resume feature.

If the stream drops or you stop the stream then you should be able to resume it with xbmc immediately at the stopped point.

Using the xbmc resume feature though has made it less of an issue because I can instantly resume where I was.

I don't have any control over how xbmc/librtmp handles the connection after playback has started.


- TheWaterbug - 2012-01-12

huckw Wrote:I've been dealing with it by using the skip to specific time functionality (nice feature BTW!).
How does one activate this? I'm on an Apple TV 2 with (effectively) a D-pad remote, e.g. up/down/left/right/select and Home, plus playback buttons.

I am getting streams dropped if I Pause for more than ~30 seconds. If I Pause for < ~30 seconds then un-pause it plays at ~2x speed for about 5 seconds, but then resumes proper playback.

If I Pause for > ~30 seconds and then un-Pause, it will frequently just exit the stream and go back to the previous menu. Resuming playback resumes pretty much right where it left off, so it's not a big problem.

If the exact time is important I can do some experimentation, and if logs are important I can get those, too.

And if it's not something Bluecop has any control over, then I'll just live with it Big Grin

p.s. is there any way to control the amount of forward buffer space for the stream? I ran into a few buffer under-runs last night, which is surprising since I'm on 15 Mbps FIOS and I'm using the default streaming rate.

OT, but Bluecop, do you have any interest in reverse-engineering a TiVo streaming client?


- BlueCop - 2012-01-12

I don't think it is currently possible to configure the buffer size for rtmp streams in xbmc. It would be nice to have a full cache feature like http. I believe that cache is hard coded currently. I am not 100% sure how everything works on the xbmc/librtmp side.

the librtmp man page mentions a buffer that is set in milliseconds. I am not sure it is currently possible in XBMC though. If anyone knows more then let me know. I will try to look at the source code and see how it works if i can understand it. Maybe someone could make to have rtmp respect the cache setting from advancedsettings.xml

I am not sure what to do about stream drops really. It almost never happens on my att u-verse connection. My gf comcast connection streams drop more often though.

It isn't much of an big issue for me really. I just select the video again and it offers to resume for me. two quick button presses.

I don't currently have a tivo.


Edit:
I am thick. I think I can set buffer size in the plugin as part of the rtmp url. Let me experiment with it and see if it works.

edit2: the buffer I set with the url doesn't seem to have any effect.

edit3: It is having some effect but it doesn't seem to increase the buffer xbmc uses. I am not sure exactly what this variable is effecting. I am seeing new librtmp buffer messages though. I will have to look into it more.


- mickle00 - 2012-01-12

mickle00 Wrote:BlueCop,

Thanks for everything you've done...this is amazing.

For some reason, my Apple TV2 running the latest XBMC nightlies cannot get past the "WARNING: HandShake: Type mismatch: client sent 6, server answered 9" issue.

I have downloaded the new librtmp, http://code.google.com/p/bluecop-xbmc-repo/downloads/detail?name=librtmp.0.dylib&can=2&q=

and placed it in /Applications/XBMC.frappliance/Frameworks

I've chown'd it to be owned by mobile, and made sure all the permissions remained the same, including making it executable.

For some reason, Amazon will not seem to stream anything.

Hulu, Free Cable, and ESPN all appear to be working perfectly. Attached is a full dump of the xbmc log, any help would be greatly appreciated, and happy new years. Smile

http://pastebin.com/7rwYQAzK
Doing a refresh from the repo appears to have fixed this issue. Coincidence or not, thanks a ton for all the work, BlueCop. Smile


- huckw - 2012-01-12

TheWaterbug Wrote:How does one activate this?
Waterbug, I use a Hauppauge remote which has a number pad...you type in the minutes and seconds and then the ok button. Without a num pad I think you just have to skip/ff. FYI to go 15 minutes into the show you type 1500 and then ok...using just 15 and then ok goes 15 seconds into the show.


- huckw - 2012-01-12

I updated to Eden beta 1 and have 0.4.1 of the plugin...videos now fail to play and it said check the logs for more info. So now I'l ask the dumb question...where are the logs?

Edit: found them but not sure how to interpret?

Edit: Here is the last line of log where I *think* the error is


====================AMAZON START====================
21:46:08 T:4560 M:4285362176 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.amazon/?url="http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2FB000HPGF48"&mode="play"&name="1x7+-+6%3A00+A.M.+-+7%3A00+A.M."&sitemode="PLAYVIDEO"]


- BlueCop - 2012-01-12

what platform are you on? post them somewhere like pastebin.com and then link to it in a post. I can look to see where it is failing.


- huckw - 2012-01-12

win 7

http://pastebin.com/KEuXMDYr


- BlueCop - 2012-01-12

That build is from March 8, 2011

it still has the old librtmp and doesn't support Type 9 handshakes.

Code:
WARNING: HandShake: Type mismatch: client sent 6, server answered 9

if you are going to upgrade to an eden build then use the current beta1

http://mirrors.xbmc.org/releases/win32/xbmc-11.0-Eden_beta1.exe

It has a more recent librtmp.


- huckw - 2012-01-12

crikey...sorry about that..thought I grabbed the right one. I'll try again. Is it true I can just install right over the top of the old one?


- BlueCop - 2012-01-12

Yeap you can just install over it