Blu-Ray Comes to Linux, Finally!
For the Linux fans out there, today is a great day! Up until now, blu-ray playback support in Linux has been very complicated and quite an aggravating experience. First you would have to hope you had the right BD-ROM drive and that there was a hacked firmware for you to flash it with. Then you had to hope the correct AACS keys were out on the interwebs for the blu-ray disc you wanted to watch. Once you had the right drive and the right keys, you had to dump the entire blu-ray disc to your hard drive and play it from there.
Well the guys over at the MakeMKV project just made this process a whole lot simpler! It is now actually feasible to play blu-ray movies in Linux. This is still a far shot from proper native support for blu-ray playback, but it is a nice workaround that is easy enough for any home user to get working. The way it works, basically, is that the newly released MakeMKV 1.4.10 now offers the ability to stream files or discs across your home theater network and any media player capable of playing a network stream can pick this up. So without going to much further, let’s get started on this how to guide.
*** Install MakeMKV 1.4.10 in Linux ***
- Make sure you have all the required libraries and tools installed first. You can get them all with this one line code:
- Then you will need to download two tarballs with the binaries and the source code.
- Unpack both archives to separate directories and then open a terminal or console
- cd into the source directory and run the following two commands:
- When that finishes successfully, cd into the binaries directory and run the same two commands:
- You can then run the MakeMKV application with the command: makemkv (it is installed to /usr/bin/makemkv in case it doesn't find it in your path)
sudo apt-get install build-essential libc6-dev libssl-dev libgl1-mesa-dev libqt4-devmake -f makefile.linux
sudo make -f makefile.linux installmake -f makefile.linux
sudo make -f makefile.linux install*** Open Disc and Stream With MakeMKV ***
- Run the application /usr/bin/makemkv
- Go to File, Open Disc > Select your Blu-Ray drive
- Once MakeMKV finishes opening the blu-ray disc, it will list the titles and file information
- Go to File menu and choose "Stream"
- MakeMKV will look like "Buffer State" and "File Position" are stuck, but look in the dialog box at the beginning for something similar to: "Operation sucessfully completed. Streaming server started, web server address is..."
*** Connect to Network Stream and Watch Blu-Ray Disc ***
- Open VLC and go to Media, Open Network Stream
- Protocol should HTTP, in the address box put http://localhost:51000/stream/title0.ts The port option should be greyed out.
- Click Play and enjoy your blu-ray movies within Linux
Some other things to note are that you can access additional titles on the blu-ray disc by changing the “title0.ts” to a different number corresponding with the correct title you want to play. If you have a Linux-based HTPC in your home theater, but you don’t have a blu-ray drive or any optical drive in it, you can use VLC or another media player to connect up to this stream across the network as well. You would just replace the “localhost” part with the actual IP address of the Linux machine running MakeMKV and streaming the blu-ray disc. This also works for enabling playback in OS X, too.
Keep in mind that this is still considered an experimental feature by the MakeMKV developers, but so far it is working very nicely for me. They do list some known issues as well with this functionality such as:
- Seamless branches are not supported, but most blu-ray discs do not use them anyway
- They haven't perfected buffering yet, so you may have a few buffering issues during blu-ray playback
- If you close MakeMKV in the middle of streaming, makemkvcon may hang or crash. They recommend checking after closing the program and assert that simply killing it is safe if it is still running.
This seems to be a very nice breakthrough in blu-ray playback support for Linux. I am still looking forward to a dedicated library for native media player integration such as with libdvdcss and DVD’s though. What do you think about these new improvements for Linux and media support? Let me know if you have any other tricks for playing your blu-ray discs in Linux or OS X!
Update: MakeMKV has released version 1.4.11 with a few bug fixes. You can find the changelog below.
Changelog:
- Corrected compatibility issue with HD audio streams
- Corrected incorrect processing of blu-ray discs with seamless branching (introduced in 1.4.10)
- Miscellaneous stability improvements
Tags: blu-ray, Linux, makemkv, media player, media server, os x, Software, streaming
Posted January 4, 2010 by vidkun under Guides, Movies, Software
82 Responses to “Blu-Ray Comes to Linux, Finally!”
Trackbacks
- Tweets that mention Blu-Ray Playback in Linux | The Media Viking -- Topsy.com
- Links 5/1/2010: Lenovo Runs Back to GNU/Linux | Boycott Novell
- uberVU - social comments
- Blu-Ray Comes to Linux, Finally! « technichristian.net
- Capnkirby » Blog Archive » Blu-Ray Comes to Linux, Finally!
- BluRay Playback On Ubuntu « The Jungle Online
- Bluray en GNU/Linux: posible, pero muy complicado | Bitelia
- Blue-Ray en GNU/Linux más fácil | Linux Zone
- Blu-Ray en GNU/Linux más fácil | Full-Linux.com
- Blu-ray en Linux: ejemplo de porqué no triunfamos en el escritorio | MuyLinux
- Blu-ray no GNU/Linux já é possÃvel, porém ainda muito complicado « Mad Games IT Blog
- Riproduzione di BluRay: su Linux diventa complicata | Tecno blog: web, computer e cellulari
- Como usar Blu Ray el Linux | AdslFaqs.com.ar
- Blu-ray en Linux: ejemplo de porqué no triunfamos en el escritorio « rOquE
- About It Came From The Internet - It Came From The Internet - One Humanoid's Adventures And Findings
- Guia para ver peliculas Blue-ray en Linux « Espacio Geek
- El futuro del Blu-Ray en Linux en peligro? « Blog de Linda Andrea… visita mi otra pagina www.lindaandrea.com
- Anonymous
- Lions, tigers, music, and TV too… « Computoman’s Weblog
- Reproduce discos Blu-Ray en Linux con MakeMKV | Ultimos Avances
- Reproduce discos Blu-Ray en Linux con MakeMKV | La guarida del friki
- Blu-ray playback (sort of) comes to Linux | oyvindhauge.com
- Reproduce discos Blu-Ray en Linux con MakeMKV « Software Libres, Mangas y animes ….. son Los lazos que nos unen a los que visitan esta bitacora
- Blu Ray on Linux? - Overclock.net - Overclocking.net
- Reproducir discos de Blu-Ray en Linux « Walhez
- Reproducir discos Blu Ray en Ubuntu con MakeMK « dcala's blog
- Discuss: Official mini-ITX Discussion Thread! - Page 203 - PC SHOW 2010 | COMPUTEX 2010 | VRForums - Singapore IT & Lifestyle
- Reproduce discos Blu-Ray en Linux con MakeMKV
- Blu-Ray plug-in or codec for Ubuntu 9.04
- Blu-Ray HD



January 5th, 2010 at 14:48
Is it possible to just automatically rip the bluray and store it to a network drive for playback later?
Chris Says:January 5th, 2010 at 15:01
So who actually decrypts the Blu-Ray disk here? If MakeMKV doesn’t have the keys then that would mean that it’s not doing it, which in turn means that VLC would have to be instead. But if VLC supports Blu-Ray already then why does it need MakeMKV to “finally” come to Linux?
I am confused…
vidkun Says:January 5th, 2010 at 18:21
Wayne: Yes you can. Once you open the disc, simply click the “Make MKV” button and it will copy it right over. Keep in mind though, that it only moves the same data into an MKV container. So it will be the same codec as it was on disc, whether that be VC-1 and so forth. You will need to make sure you have proper support for whichever codecs you rip, or you can always encode them to x.264 or something else with your favorite tool.
Chris: MakeMKV handles the decryption of the blu-ray with either AACS or BD+ protections through the use of an SVQ file. SVQ files, basically, contain the ‘keys’ needed for the BD+ code to execute properly. The MakeMKV team provides updated SVQ files for download from their site. Once you place the file in the directory specified by the user in the preferences, it auto detects it and imports the keys. For discs that do not have a valid key in the SVQ, they request that you produce a BD+ dump and mail it to them so that they can produce the proper SVQ for it. You can find more info on how MakeMKV handles blu-ray protections at their site here: http://www.makemkv.com/svq/
Interestingly enough, I have done this with 3 separate blu-ray discs before I found out about downloading and point it to the SVQ file. So not all discs will require it, but if you run into snags that would be the first place to check.
Sum Yung Gai Says:January 5th, 2010 at 22:04
Which distro is this for–Debian Lenny, Ubuntu Hardy–fill us in, bro!
–SYG
vidkun Says:January 5th, 2010 at 22:22
SYG: The first line of code to get the dependencies (the sudo apt-get) is for Debian based (this includes Ubuntu) distros. The listed packages in that command may differ for your distribution. However, the binaries and source for MakeMKV should compile on any distro that has the required build dependencies.
sTivo Says:January 6th, 2010 at 02:09
This program works very well and helped make my decision to buy a bluray player and lots of bluray titles – the movie studios should pay them for bringing bluray to Linux – it has helped the failing movie business (joke!!). I now have over 1.3TB of makeMKV blurays. You can use Handbrake to squash them down to 720P if you need to as some movies hit 25GB.
tux99 Says:January 6th, 2010 at 03:05
To build MakeMKV on Mandriva Linux (and probably on Fedora too) you have to change one entry in the file ‘makefile.linux’ in ‘makemkv_v1.4.10_beta_oss’:
-L/usr/lib/qt4
needs to be changed to:
-L/usr/lib/qt4/lib
After that it will build flawlessly on Mandriva too.
London Linux Says:January 6th, 2010 at 08:07
Useful stuff, but aggravating does not mean annoying, it means making worse. Hence: aggravating and mitigating circumstances in court.
vidkun Says:January 6th, 2010 at 08:31
London: Thanks for the grammatical correction. If a grammatical error is the only thing wrong with the post, then I must be off to a good start!
Tux99: Thanks for the pointer. I will pass that on to the MakeMKV team as well to make sure they know about it.
sTivo: No need to downgrade to 720p! You can just re-encode into a different codec such as x264 and get a much smaller size with the same lovely 1080p goodness.
Friend of Freedom Says:January 6th, 2010 at 10:29
Sounds like a breakthrough. What it now takes is a library similar to libdvdcss to make blu-ray available to all applications.
Chris Says:January 6th, 2010 at 10:35
I wonder if this work on Fedora? IIRC, Blu-Ray’s encryption algorithm has patent problems, which means that Fedora’s SSL library probably doesn’t support it. (I.e. RedHat will have stripped its support from OpenSSL.)
Chris Says:January 6th, 2010 at 11:45
I see that the “bin” package is not Open Source software, and that it has an EULA. Can you describe what that binary both is and does, please? I can’t see how the Blu-Ray people can have sanctioned makemkv because it completely ignores all the “protected path” nonsense which mandates HDCP on the display etc. So what is makemkv doing that this bit needs to be Closed Source?
vidkun Says:January 6th, 2010 at 14:07
Exactly! It would be great to have library support via something similar to libdvdcss! I don’t think we are too that point just yet though. There is a team over on the doom9 forums that are currently working on such a library. I don’t think they are much further than AACS support unfortunately. There is also an ‘experimental’ patch for mplayer-svn that is floating around. I am working to get my hands on that to test as well.
vidkun Says:January 6th, 2010 at 14:08
Chris, I am not a part of the MakeMKV team and don’t have any familiarity or knowledge of the inner workings of their binaries. I will try to get back to you with an answer though.
Joshua Says:January 6th, 2010 at 14:43
Awesome! I’m gonna try it as soon as I get home!
vidkun Says:January 6th, 2010 at 15:11
Great! Let us all know how it goes!
Bill Says:January 6th, 2010 at 22:28
meh-binary blobs are bad news. yeah-it’s nice that we can rip blu-ray to disc, but this is like dvd encryption… it just sucks and obviously doesn’t work – it’s just a speed bump to ripping and sharing.
qwerty Says:January 7th, 2010 at 17:49
It’s possible implement as a fuse daemon?
vidkun Says:January 7th, 2010 at 19:05
For what? What are you trying to accomplish?
Goldie Virgili Says:January 7th, 2010 at 21:00
maybe not as effectively.. machida’s TDD > silvas
vidkun Says:January 8th, 2010 at 08:10
I was able to get a response to some of the questions that have been raised here. Here they are straight from the MakeMKV team:
1) What will the pricing scheme look like when MakeMKV is no longer beta?
A) This is not determined yet. likely one-time fee.
2) Will MakeMKV work properly for blu-ray playback within Fedora?
A) Yes it will. MakeMKV will compile and run even if ECDSA is not present in OpenSSL.
3) Can we get some information regarding the binaries? What are they or what do they do?
Jumbo Says:A) There is a single binary – makemkvcon, the core of the application and console version. Speaking of which you may use “makemkvcon stream disc:0″ without GUI. The reason for it to be closed source – MakeMKV is a shareware application (presently freeware) and it contains keys and algorithms for AACS and BD+ decryption. We try to put as much code under open source as possible. The MKV multiplexer is entirely open-source, so you know that MKV files are not watermarked. We wrote from scratch and released under LGPL the libdriveio library – a library that communicates to disc drives and knows about “hacked” firmware, special vendor commands and buggy drives. GUI is also open-source. Yet MakeMKV is shareware so it is not entirely open-source.
January 8th, 2010 at 16:34
It works perfectly. Thanks!
vidkun Says:January 8th, 2010 at 16:57
Glad to hear it!
Dirk Fazzio Says:January 9th, 2010 at 02:02
Very good writing. I am glad you posting that. I ask you accept my for my less good English writing, I am from Germany and it is kind of new to me.
VH-BIL Says:January 9th, 2010 at 08:05
Thank you so much for this! It seems like we are getting closer to full bluray support in Linux. Until then, this is an awesome solution!
Ryan Says:January 9th, 2010 at 13:20
Not bad! Finally, Linux conquers blu-ray!!!!
Jesse Says:January 10th, 2010 at 07:24
I am definitely bookmarking this page and sharing it with my friends.
vidkun Says:January 10th, 2010 at 11:42
Thanks!
Tim Says:January 12th, 2010 at 08:06
You mention re-encoding the MKV files into x264 for smaller file sizes. What applications do you recommend to do that with?
vidkun Says:January 12th, 2010 at 17:21
In Linux, h264enc is rather powerful, but not the easiest to pick up. Handbrake is fairly easy, runs natively in Linux, and supports x264 encoding. Personally though, I like ripbot264 in windows. It is very easy, simple and straightforward, and it has worked wonders for me so far.
LN52B630 Says:January 12th, 2010 at 21:37
Sweet Post. Where would we be without tv..
choyak Says:January 12th, 2010 at 21:59
Well…..THis really works, BUT the picture goes ‘dweek dweek dweek’ I am speculating that my PC is just not up to it. It has 2GB of ram and the CPU is pentium-d. Is there a way to speed this up, like only displaying half of the frames???
Elisha Isa Says:January 12th, 2010 at 23:53
Outstanding writing. I am glad you for posting that. Please accept my apology for my weak English writing, I am from Pakistan and English is sort of new to me.
Malorie Lesslie Says:January 14th, 2010 at 15:07
Hi – just a quick note to say kudos for this article. Very great.
Dennis Tassin Says:January 17th, 2010 at 14:28
Love this post! Thanks for this. I’ll be sure to come back again. P.S: I’ve bookmark your site as well.
sv Says:January 22nd, 2010 at 00:39
Really great news. Thanks. I tried it in Karmic. It worked fine with “Planet Earth” blu-ray, but with the newest Star Trek blu-ray there were two problems: 1) playback was choppy 2) English audio would not play because it was using “truehd” format, whatever that is, and VLC gave an error with that. I wish I knew if the choppy playback was due to the immaturity of the beta or inadequacy of the ATI/AMD Linux drivers. I also wonder what the deal is with “truehd” audio format that won’t work in VLC.
vidkun Says:January 22nd, 2010 at 07:23
TrueHD is Dolby’s HD audio codec. Are you sure you are using a version of VLC greater than 1.0.0 release? Have you tried it with mplayer? Also if it is choppy, this could be due to whatever video codec it is using. For example, VC-1 and H.264 codecs are very CPU intensive to decode. You could try using mplayer or vlc with vdpau as the output. This would offload most of that work to the GPU instead.
vidkun Says:February 2nd, 2010 at 17:13
MakeMKV 1.4.12 has been released, so if you had any stability issues or other minor issues with some of your BD’s you might give it a shot.
scippy Says:February 7th, 2010 at 04:48
about choppy playback with VLC try inrease higher latency in tool/preferences/input & codecs/Caching levels.
colin Says:but MPC is the faster mediaplayer of those 2
February 17th, 2010 at 18:23
FYI
I’m not interested in “streaming” anything.
I just want to put the disk in my PC and play it onscreen.
Windows-Vista installation: Click install.exe
vidkun Says:When you get that simple let me know. Otherwise I’m done banging my head against this time wasting brick wall.
February 17th, 2010 at 22:45
No one said you HAD to use Linux. If Vista works better for your needs, by all means use it. If you WANT to use Linux to play them, then this is how you can with the current state of blu-ray playback.
Ole Andreas Says:March 27th, 2010 at 09:30
Thanks! This must be the first time I’ve been able to play blu ray on linux. Unfortunately, the video is unbearably choppy, even with the high latency trick. Gah, bloody DRM smithered plastic cake.
Mark Says:April 2nd, 2010 at 19:51
Would be nice to have instructions for SuSE 11.2. I am embarrassed to say I failed at every step (locating some of the tools/libraries (either using the ‘sudo’ command or by searching using online from Yast); the ‘make’ steps).
vidkun Says:April 5th, 2010 at 17:06
I don’t use SuSE, or any other RPM based distros for that matter, so I can’t give you too much instruction on building for them. I do know that they tend to have different package names though. For example, the ones listed above would be: glibc-devel, libopenssl-devel, mesa-devel (maybe?), qt4-devel.
Google is your friend.
Mark Heseltine Says:April 5th, 2010 at 22:27
Hi Vidkun,
Thanks for the reply. Thanks. I will try again with more diligence when I am back in 2 weeks. I take you hint very seriously and will a bit more thorough in the attempt. I had just (finally) installed ATI’s new Catalyst 10.3 driver (a pain) which took a lot to figure out, so I should be able to be as successful with Blu Ray.
I will let you know what I discover and the steps. Fingers crossed.
Mark
WhoKnows Says:May 6th, 2010 at 10:24
Instead of streaming directly from the BD drive, Can MakeMKV transcode it to the MKV container (saving about 40% of space as it claims for Blu-Ray) and then stream from that container on HD?
DeInstall Says:May 28th, 2010 at 14:09
Thanks for the tutorial but this didn’t work for me and now that it is shareware I want to get rid of it. How can I do a complete uninstall?
Many thanks again.
D!
eris23 Says:May 29th, 2010 at 15:46
updated links:
http://www.makemkv.com/download/makemkv_v1.5.6_beta_bin.tar.gz
http://www.makemkv.com/download/makemkv_v1.5.6_beta_oss.tar.gz
PoolScholar Says:June 11th, 2010 at 09:08
Hello. I am fairly new to Linux, although learning quickly. I cannot get this to work. Followed everything exactly, and everything seems to be fine right up until I get into VLC and push Play. It errors with: “Your input can’t be opened:
vidkun Says:VLC is unable to open the MRL ‘http://localhost:51000/stream/title0.ts’.” Any help would be greatly appreciated.
June 21st, 2010 at 11:47
eris23: Thanks for the updated links.
PoolScholar: Your best bet would be to post your error on the MakeMKV forums. They will be able to help you better than I could.
Martin Says:July 12th, 2010 at 15:07
Awesome program!
The only issue I’m having is buffering problems when streaming to VLC. The buffer measure is always on top…so the sound does not stop but the frames they really do, a lot.
I installed it in the latest release of Ubuntu 10.04 64 bits. I’ve 1GB ram, my Dell pc is a dual intel 2.66 GHz
Please tell me what I need to add in order to have a good stream. More memory ?
thomas Says:Also using the built-in video card. A nvidia geforce will perform better ?
Thanks in advance.
July 30th, 2010 at 11:37
I jumped through some hoops to get MakeMKV to compile (install new OpenSSL, link to correct Qt4). Now it runs, but does not see my iHOS104 Lite-On BD-ROM drive at all. It finds my two DVD-RW drives, which are on IDE, but not the BD-ROM which is on SATA. I can play DVDs in that drive with linux and MPlayer, however. It’s called /dev/sr0 with major 11 and minor 0, if that helps to answer my question. The question? Oh, yeah:
What do I have to do to get it to recognize my drive?