The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Playing Blu-ray"
(Created page with "=== Introduction === The purpose of this article is to explain how to play Blu-rays under Funtoo Linux. Since (nearly all) Blu-rays are encrypted and copy-protected, some ste...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 21: | Line 21: | ||
=== Playing Blu-ray disks using makemkv === | === Playing Blu-ray disks using makemkv === | ||
This section explains how to play Blu-rays using the proprietary software {{Package|media-video/makemkv}}. {{c|makemkv}} has been originally designed to copy Blu-rays to mkv files, but using the shipped libraries it is also possible to play disks on-the-fly. | This section explains how to play Blu-rays using the proprietary software {{Package|media-video/makemkv}}. {{c|makemkv}} has been originally designed to copy Blu-rays to mkv files, but using the shipped libraries it is also possible to play disks on-the-fly. | ||
==== Installation ==== | |||
First, emerge {{Package|media-video/mpv}} or {{Package|media-video/vlc}} with the {{c|bluray}} useflag. Then, install {{c|makemkv}}: | First, emerge {{Package|media-video/mpv}} or {{Package|media-video/vlc}} with the {{c|bluray}} useflag. Then, install {{c|makemkv}}: | ||
Line 27: | Line 29: | ||
###i## emerge media-video/makemkv | ###i## emerge media-video/makemkv | ||
</console> | </console> | ||
==== License key ==== | |||
Using MakeMKV requires a license key which you may get either by purchasing the software or by using a free beta key, which is available [https://www.makemkv.com/forum2/viewtopic.php?f=5&t=1053 at the MakeMKV Forums]. | |||
Copy the key and insert it into your {{c|settings.conf}}: | |||
{{file|name=~/.MakeMKV/settings.conf|body= | |||
app_Key = "Your Key here" | |||
}} | |||
==== Using MakeMKV ==== | |||
To make sure that your player uses the libraries shipped with {{c|makemkv}}, the following environment variables need to be set: | To make sure that your player uses the libraries shipped with {{c|makemkv}}, the following environment variables need to be set: | ||
Line 60: | Line 74: | ||
Note that recently no new keys have been extracted, therefore very new Blu-rays cannot be played using this method. | Note that recently no new keys have been extracted, therefore very new Blu-rays cannot be played using this method. | ||
After this step, you should be able to play the Blu-ray if and only if it can be | After this step, you should be able to play the Blu-ray if and only if it can be decrypted. For VLC, chose the play disc option from the menu. For mpv, assuming that your blu-ray drive is located at {{c|/dev/sr0}}: | ||
<console> | <console> | ||
###i## mount /dev/sr0 /media/bluray | ###i## mount /dev/sr0 /media/bluray | ||
###i## mpv bluray:////media/bluray | ###i## mpv bluray:////media/bluray | ||
</console> | </console> |
Latest revision as of 22:32, December 29, 2017
Introduction
The purpose of this article is to explain how to play Blu-rays under Funtoo Linux. Since (nearly all) Blu-rays are encrypted and copy-protected, some steps are necessary to allow playing the content with a media player like media-video/mpv or No results.
Playing Blu-ray involves circumventing the copy protection and encryption of the discs. In some areas of the world, this may be illegal.
To be able to play Blu-ray disks using mpv (or any other player), it is necessary to circumvent the encryption scheme of the disk. At the moment, there are two possible ways to do this:
Possibilites
At the moment, there are two possible ways to decrypt and play a Blu-ray:
Method | Description |
---|---|
libaacs & libbdplus | GPL'd software, does not work with recent disks. |
makemkv | Proprietary software, works with all disks. |
If you don't want to use proprietary software, using No results and No results will be the solution of your choice. If you however have very recent Blu-ray disks or don't mind installing a proprietary application, consider using No results. This article will explain both ways.
Playing Blu-ray disks using makemkv
This section explains how to play Blu-rays using the proprietary software No results. makemkv
has been originally designed to copy Blu-rays to mkv files, but using the shipped libraries it is also possible to play disks on-the-fly.
Installation
First, emerge media-video/mpv or No results with the bluray
useflag. Then, install makemkv
:
root # emerge media-video/makemkv
License key
Using MakeMKV requires a license key which you may get either by purchasing the software or by using a free beta key, which is available at the MakeMKV Forums.
Copy the key and insert it into your settings.conf
:
~/.MakeMKV/settings.conf
app_Key = "Your Key here"
Using MakeMKV
To make sure that your player uses the libraries shipped with makemkv
, the following environment variables need to be set:
LIBAACS_PATH=libmmbd
LIBBDPLUS_PATH=libmmbd
So, assuming that your Blu-ray is mounted at /media/bluray
, you can play it like this:
root # LIBAACS_PATH=libmmbd LIBBDPLUS_PATH=libmmbd mpv bluray:////media/bluray
If you want to use vlc, run it like this:
root # LIBAACS_PATH=libmmbd LIBBDPLUS_PATH=libmmbd vlc
Then use the play disc menu entry.
Playing Blu-ray disks using only free software
This section explains how to play Blu-rays using No results and No results.
First, emerge media-video/mpv or No results with the bluray
useflag.
Then, make sure that both libraries are installed:
root # emerge media-libs/libaacs media-libs/libbdplus
As the next step, you will need to store a file called KEYDB.cfg
into the following folder: ~/.config/aacs
This file contains keys which have been extracted from hardware players. Such a key is needed to decrypt Blu-rays. At the time of this writing, in can be downloaded at [1].
Note that recently no new keys have been extracted, therefore very new Blu-rays cannot be played using this method.
After this step, you should be able to play the Blu-ray if and only if it can be decrypted. For VLC, chose the play disc option from the menu. For mpv, assuming that your blu-ray drive is located at /dev/sr0
:
root # mount /dev/sr0 /media/bluray root # mpv bluray:////media/bluray