Link htpcBeginner.com Contest

Play Amazon Prime Videos on XBMC in Ubuntu

Amazon-Prime
  • Share:
  • share htpcBeginnerShare on FacebookhtpcBeginner on Google+Tweet ItPrint this post

XBMC is a great media player, very well suited for HPTCs. There are several XBMC addons that stream videos from the internet. In this post, I am doing to describe how to play Amazon Prime Videos on XBMC (both free and rented videos), running on a Ubuntu system. With the recent price increases in Netflix, free video streaming by Amazon to its Prime customers seems all more enticing. Agreed that Amazon does not carry as many videos as Netflix at this point but Amazon works out to be cheaper than Netflix. Furthermore, if you are like me, who orders stuffs frequently from Amazon you can enjoy the free 2-day shipping for the same price as well.

Watching Amazon instant videos on your PC is fairly simple when you are near the PC. In my case, I wanted to browse and watch instant videos on my Ubuntu HTPC running standalone XBMC. I do not have a keyboard or mouse to work on it. All I have is a simple MCE remote for play control. So I searched for a plugin that could login into Amazon account and pull and stream videos.

Get free books, movies, TV shows, and 2-day shipping. Signup for Amazon Prime Membership and get 1 month free trial now.

Bluecop, has developed several video streaming plugins such as Amazon Videos, Hulu, ESPN, etc. for XBMC: http://code.google.com/p/bluecop-xbmc-repo/. Further details and discussion on the Amazon plugin can be found in these two threads:

http://forum.xbmc.org/showthread.php?t=95039
http://forum.xbmc.org/showthread.php?t=108124

Amazon Prime Instant Videos

Play Amazon Prime Videos on XBMC

Getting the Amazon Videos plugin in Ubuntu can be a bit of work, especially if you are running one of the previous versions of Ubuntu (eg. Lucid Lynx) like I was. Below I have explained the steps I took to get my Amazon Prime Instant Videos to work on my HTPC.

Following are the requirements to get the plugin to work:

  • rtmpdump/librtmp 2.4+ for the streams to playback.
  • Amazon Prime (paid) membership (student memberships will not work)

Step 1: Install Essentials

First install the basic packages required for compiling:

sudo apt-get install git-core build-essential gcc make git libssl0.9.8 libssl-dev 

Step 2: Compile and Install rtmpdump

Ubuntu at least until 11.04 comes only with librtmp 2.3 and I found no way of upgrading this to 2.4. So I installed the latest (2.4) version of rtmpdump (Precice Pangolin comes with rtmpdump 2.4 – you can skip this and go to Step 3).

Clone the latest sources for the rtmpdump from the git repository:

git clone git://git.ffmpeg.org/rtmpdump

The move to rtmpdump/librtmp folder and do the following:

...rtmpdump/librtmp$ make SYS=posix

Then use the following command to install it:

...rtmpdump/librtmp$ sudo make prefix=/usr install 

Step 3: Compile and Install HXBMC

Unless your current XBMC is compiled with librtmp enabled (enabled by default in XBMC 11 Eden), you will have to pull the currently nightly source, compile, and install it as described below. If you have not already installed all the dependencies, then check my previous post and then come back here.

Edit your /etc/apt/sources.list and add the following:

deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu lucid main

Note: replace “lucid” with your version of Ubuntu. Then update and build your dependencies:

sudo apt-get update
sudo apt-get build-dep xbmc

Then download xbmc. You may download the latest sources from the git repository (may be unstable) or the latest stable version. For the latest nightly follow this:

 
cd ~
git clone git://github.com/xbmc/xbmc.git

For last stable release, download the latest file from here: http://mirrors.xbmc.org/releases/source/ as described (replace “xbmc-10.1.tar.gz” with your filename):

cd ~<br />
wget http://mirrors.xbmc.org/releases/source/xbmc-10.1.tar.gz
tar zxfv xbmc-10.1.tar.gz

Then cd to the xbmc folder and follow these steps:

cd ~/xbmc
./bootstrap
./configure (include –enable-crystalhd if you have CrystalHD card)
make clean
make

The final “make” command may run for several hours. Using all CPU cores may speedup the process a bit (eg. if you have 4 cores then use “make –j4”). After the make process is complete, you can run xbmc with the “xbmc.bin” command from the commandline. Optionally you may choose to installed the compiled version using the following command:

sudo make install

After installing XBMC add Bluecops repository, download the repository.bluecop.xbmc-plugins.zip file from here: http://code.google.com/p/bluecop-xbmc-repo/downloads/list.

Then from XBMC->Settings->Addons, install repository for the zip file. Then browse the video addons in the repository and install the Amazon Videos plugin. Configure it with your Prime username and password and that’s it. You are good to go.

Like this post? Share it and get Raspberry Pi OpenELEC Media Center 45-page eBook for Free!

Incoming Search Terms:

xbmc amazon instant video, xbmc amazon prime, amazon prime xbmc, raspberry pi amazon video, amazon instant video xbmc, xbmc amazon prime addon, xbmc anazon plugin, xbmx amazon prime, xbmc addon amazon prime, raspbmc amazon instant video addon

Comments

  1. John W says

    Thanks very much for the help on using amazon prime in linux with xbmc. Thanks goodness for a community of concerned users, instead of a purely commercial tyranny like netflix.

  2. Ajay says

    Hi,

    Thanks, this is a great post.

    Unfortunately, I am running raspbmc on debian and I am not sure if my version of XBMC is already running with librtmp. Should I download the latest XBMC source and recompile it?

    cd ~
    wget http://mirrors.xbmc.org/releases/source/xbmc-10.1.tar.gz
    tar zxfv xbmc-10.1.tar.gz

    cd ~/xbmc
    ./bootstrap
    ./configure (include –enable-crystalhd if you have CrystalHD card)
    make clean
    make

    sudo make install

    ??

    Thanks.

  3. Todd says

    Hi,
    You must not have noticed but bluecop no longer supports Amazon Instant Video OR Hulu. (At least in the U.S.)
    You may want to mention this.

Leave a Reply

Review our comments policy.

Get your free comments avatar.

.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current ye@r *