How To Install Mplayer Raspberry Pi

Posted on
How To Install Mplayer Raspberry Pi

Last week I published a blog and video of watching a DVD in Raspbian using omxplayer. At that time, as far as I could make out, nobody had managed to watch a commercial encrypted DVD, with the DVD drive attached to the Pi, but I figured it was only a matter of time. I ended that blog with…

There is a way to watch encrypted DVDs in linux, but I haven’t sorted it out on my Pi yet. Hopefully a future video will detail that process.

Well, I tried a few different things but was unable to get it working. However, one of the forum members, mikerr, has come up with a creative way to get the job done. This is the thread mikerr started, here.

Basically, you install mplayer, compile and install the libdvdcss decryption library and then set up a video stream in the background, which you then view with omxplayer. It puts all the elements together in a way that works on the Raspberry Pi. :)

So now I’m going to show you how it’s done…

Starting Point

How To Install Mplayer Raspberry Pi

I started with a freshly flashed SD card containing the August release of Raspbian, then fully updated/upgraded it.

sudo apt-get update
sudo apt-get upgrade
(This takes a little while ~15 mins)

Then install mplayer, which handles the decryption and streaming for us…
I did the whole install starting from /home/pi

Microsoft visio 2010 free download with crack torrent. cd /home/pi
sudo apt-get install mplayer
Y
(to confirm)

Compiling libdvdcss

wget http://www.videolan.org/pub/libdvdcss/1.2.12/libdvdcss-1.2.12.tar.bz2 (download the zipped archive)
bunzip2 libdvdcss-1.2.12.tar.bz2 (unzip the archive)
tar -xvf libdvdcss-1.2.12.tar (unarchive the files)

cd libdvdcss-1.2.12 (change to the libdvdcss directory)
./configure (run the configuration)
make (compile libdvdcss)
sudo make install (install the compiled files)

sudo cp /usr/local/lib/libdvdcss* /lib (copy the installed files to /lib)

Streaming a DVD

For reasons that I don’t understand, this works for me when I use ssh for the last two commands and not if I do it from the keyboard attached to the Pi. I’m sure someone could figure this out, but not me. ;)

mkfifo /tmp/dvdpipe

Then I ssh into the Pi to execute the next two commands…

How To Install Mplayer Raspberry Pi

mplayer dvd://1 -dumpstream -dumpfile /tmp/dvdpipe 1>/dev/null 2>/dev/null </dev/null & (sets up the stream)

omxplayer -o hdmi -r /tmp/dvdpipe (uses omxplayer to view the stream)

Game free download gta vice city

That’s the quick and dirty instructional. I’ll see if I can make a video tomorrow. :)

Last Activity: 9 August 2014, 10:08 AM CDT
Thanks Given: 0
Raspberry Pi B 2014-01-07 Raspbian fully up to date.
Installed and configured motion for surveillance.
It works just fine and creates .avi files and .jpeg.
Installed Mplayer trying to run it from desktop was
not successful. I did try to do a command line by
executing sudo mplayer /path/to/file/video.avi. File
does not play.
Does someone have a config file for just playing an
'.avi' file?
tia
oldcity
oldcity
View Public Profile for oldcity
Find all posts by oldcity