Difference between revisions of "Blu-ray"

From ArchWiki
Jump to: navigation, search
(vlc)
Line 9: Line 9:
 
Now put http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg (no pregenerated keys, contains a real hcert) in ~/.config/aacs/ .
 
Now put http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg (no pregenerated keys, contains a real hcert) in ~/.config/aacs/ .
 
<pre>cd ~/.config/aacs/ && wget http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg</pre>
 
<pre>cd ~/.config/aacs/ && wget http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg</pre>
 +
 +
Next, mount the bluray to a directory. eg: <pre># mount /dev/sr0 /media/blurays</pre>
  
 
===== If Fast & Simple doesn't work =====
 
===== If Fast & Simple doesn't work =====
Line 21: Line 23:
  
 
===== If aacskeys isn't able to generate the key =====
 
===== If aacskeys isn't able to generate the key =====
Try to generate the VolumeID with DumpVID using wine. The VolumeID can now be used to generate the bluraykey with aacskeys with the VolumeID option
+
Try to generate the VolumeID with DumpVID using wine. The VolumeID can now be used to generate the bluray key with aacskeys with the VolumeID option
 
<pre>Usage: aacskeys [options] <mountpath> [volume id / binding nonce]
 
<pre>Usage: aacskeys [options] <mountpath> [volume id / binding nonce]
 
</pre>
 
</pre>
Line 55: Line 57:
  
 
===vlc===
 
===vlc===
Since version 2.0.0, vlc has had experimental bluray playback support. Bluray menus are not yet working. For discs not protected by BD+ the above [[BluRay#Fast_.26_Simple|Fast & Simple]] method should work. For BD+ discs, no decoder library exists/has been released yet.
+
Since version 2.0.0, vlc has had experimental bluray playback support. Bluray menus are not yet working. For discs not protected by BD+ the above [[BluRay#Fast_.26_Simple|Fast & Simple]] method should work.  
  
 
Start playback with: <pre>vlc bluray://</bluray/mount/dir></pre>
 
Start playback with: <pre>vlc bluray://</bluray/mount/dir></pre>
 +
 +
For BD+ discs, no decoder library exists/has been released yet.
  
 
==Other Useful Software==
 
==Other Useful Software==

Revision as of 23:31, 20 February 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Playback

Preparation

Firstly install libaacs and libbluray [extra].

Fast & Simple

Now put http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg (no pregenerated keys, contains a real hcert) in ~/.config/aacs/ .

cd ~/.config/aacs/ && wget http://vlc-bluray.whoknowsmy.name/files/KEYDB.cfg
Next, mount the bluray to a directory. eg:
# mount /dev/sr0 /media/blurays
If Fast & Simple doesn't work
If bluray playback with the hcert mentioned above doesn't work, install aacskeys and get KEYDB.cfg from http://forum.doom9.org/attachment.php?attachmentid=11170&d=1276615904 and unzip it into ~/.config/aacs/. Then run
sed -i 's/\([[:xdigit:]]\)\{5,\}/0x&/g' ~/.config/aacs/KEYDB.cfg"
Next, mount the bluray to a directory. eg:
# mount /dev/sr0 /media/blurays
Now the bluray has to be added to the key database so that libaacs can decrypt it. To do this, cd into /usr/share/aacskeys and run:
aacskeys </bluray/mount/dir>
eg:
cd /usr/share/aacskeys && aacskeys /media/blurays

Edit ~/.config/aacs/KEYDB.cfg and add the information outputted by aacskeys using this syntax:

0x<unit key file hash> = Film Title    | V | 0x<volume unique key>
If aacskeys isn't able to generate the key

Try to generate the VolumeID with DumpVID using wine. The VolumeID can now be used to generate the bluray key with aacskeys with the VolumeID option

Usage: aacskeys [options] <mountpath> [volume id / binding nonce]

mplayer

To play blurays in mplayer you will need mplayer-bluray installed.

The basic playback command is:

mplayer br:///</bluray/mount/dir>

Troubleshooting

Stuttering Video

It is likely that you will need to enable hardware acceleration and multi core CPU support for the bluray to play smoothly.

For nvidia cards, enable hardware acceleration by installing libvdpau and using the option '-vo vdpau' with mplayer. eg:

mplayer -vo vdpau br:///</bluray/mount/dir>

For multi core CPU support use the options '-lavdopts threads=N', where 'N' is the number of cores. eg:

mplayer -lavdopts threads=2 br:///</bluray/mount/dir>
Incorrect Audio Language

You can scroll through the playback languages using the '#' key.

Out of Sync Audio

From your first mplayer output, you must find the codec used for the bluray. It will be at the end of the line "Selected video codec".

For H.264 discs use the option '-vc ffh264vdpau'. eg:

mplayer -vc ffh264vdpau br:///</bluray/mount/dir>

For VC-1 discs use '-vc ffvc1vdpau'. eg:

mplayer -vc ffvc1vdpau br:///</bluray/mount/dir>

For MPEG discs use '-vc ffmpeg12vdpau'. eg:

mplayer -vc ffmpeg12vdpau br:///</bluray/mount/dir>

vlc

Since version 2.0.0, vlc has had experimental bluray playback support. Bluray menus are not yet working. For discs not protected by BD+ the above Fast & Simple method should work.

Start playback with:
vlc bluray://</bluray/mount/dir>

For BD+ discs, no decoder library exists/has been released yet.

Other Useful Software

For DVD, the libdvdcss package supplies the needed decryption libs. Below are some options for BluRay/HD-DVD decryption. Users can employ to backup a commercial BluRay movie under Fair Use guidelines:

  • anydvdhd - Commercial software requiring users to run it on an Microsoft OS in a VM.