Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Media file management > Media players and codecs
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 11-17-2009, 02:40 PM
Stream Recorder
 
Posts: n/a
Default

How to play Blu-Ray video on Ubuntu Linux, Mint, Debian,...


To play Blu-Ray video on Ubuntu, you need to decrypt files first.

The "AACS" Digital Rights Management system on all Blu-Ray discs attempts to stop consumers from exercising fair use rights, including:
  • Playing films using standard digital (DVI) or analog (VGA) cables and monitors, which generally do not support HDCP encryption, without a 75% reduction in resolution.
  • Playing purchased Blu-Ray movies using open source software.
  • Fast forwarding or skipping advertisements.
  • Playing imported films, including when local equivalents may be overpriced or not available.

Blu-Ray player applications require their unique player (or "device") key to play discs. These keys are issued by AACS-LA to approved manufacturers that implement the restrictions mentioned above. This player key can decrypt volume key of each movie, which in turn can decrypt the content of the movie to play it.

However the AACS DRM is ineffective and does not successfully prevent any of these things, because:
  • Player keys for all Windows based software players, such as PowerDVD are known publicly. These can be used to find the volume keys for discs that don't have newer keys than those discovered. While these applications now have new keys (and future HD-DVD and Blu-Ray discs won't play with the old keys), it's likely the new key will be discovered too as all players must store their keys in memory at some point.
  • The volume keys needed to play many released movies are known publicly. Even without a licensed player key, Linux HD-DVD and Blu-Ray software can use these to play discs.

For Ubuntu 9.x you will need MPlayer and FFMPEG. Ubuntu 9.10 contains a version of Mplayer that is capable of reading decrypted Blu-ray files.

Many Blu-Ray discs use DRM protection. To decrypt such discs you can use DumpHD. You will also need a current keydb.cfg file, which contains the decryption keys required to your movie.

If DumpHD cannot rip your disc, you can try the MakeMKV. This program contains a decryption key that has not been revoked, and may have more success in ripping your disc. MakeMKV is not as advanced at removing the BD+ protection on certain discs.

Please note that you will need up to 50GB of free hard disk space to store Blu-Ray video on your hd.
  1. To remove decryption from a Blu-Ray disc, insert it into your drive and run DumpHD
    Code:
    sudo ./dumphd.sh
  2. Select the disc as the source (a directory somewhere beneath "/media/Movie Name" and a directory like "/tmp" to save the movie content.
    You can proceed onto the next step once .m2ts has started decrypting.
  3. Play the the decrypted movie from your hard disk with mplayer, specifying the video codec:
    Code:
    mplayer -fs -vo xv -demuxer lavf "/tmp/movie_name/XXX.m2ts
  4. If you can't play the file, the disc might be protected with BD+. Try to remove BD+ first.
Reply With Quote
  #2  
Old 11-17-2009, 03:04 PM
Stream Recorder
 
Posts: n/a
Default

Re: How to play Blu-Ray video on Ubuntu 9.10 (Karmic Koala)


The following mplayer-options are originally from a guide for mythtv:
Code:
mplayer -fs -vo xv -demuxer lavf -ac <audiocodec> -aid <audiotrackid> -fps 24000/1001 <moviefile>
-fs fullscreen
-vo xv to use Xv as for video-output
-demuxer must always be lavf
-fps 24000/1001 this is for the 24p movie format of all blu-ray discs

To find out audiocodec and track run
Code:
ffmpeg -i <moviefile>
For liba52 use -ac ffac3 (this is [e]ac3 format)
For mlp use -ac mlp (this is MLP/trueHD format)

If mlp is not recognized, copy /etc/mplayer/codecs.conf to ~/.mplayer/codecs.conf and add the following:
Code:
audiocodec mlp
info "FFMpeg mlp"
status buggy
format 0x20504C4D
driver ffmpeg
dll "mlp"

When experiencing slow playback, you can experiment with one or more of the following options:
Code:
-lavdopts threads=2:fast:skiploopfilter=all -sws 0 -framedrop -cache 8192 -autosync 30
-autosync probably won't help here because there is no sync information in the most movies, ymmv
Also you can try and nice your mplayer to -20.

If you encounter audio/video sync issues:
When mplayer is struggling, do you get "Too many video packets in the buffer" console output? If so, in libmpdemux/demuxer.h change:
Code:
#define MAX_PACK_BYTES 0x800000
to:
Code:
#define MAX_PACK_BYTES 0x8000000
and recompile mplayer.


Nvidia 8000 series and above, excluding 8800 cards, support Video Decode and Presentation API for Unix (VDPAU). This allows the Nvidia GPU to take on some of the decoding load.

Mplayer in Ubuntu 9.10 supports VDPAU. You will also need the nvidia-185-libvdpau package.

When you have a decrypted Blu-ray/HD-DVD filesystem on your hard disk, you can run the following command:

H.264 disc
Code:
mplayer -vc ffh264vdpau -vo vdpau ~/BDMV/STREAM/00001.m2ts
VC-1 disc
Code:
mplayer -vc ffvc1vdpau -vo vdpau ~/BDMV/STREAM/00001.m2ts
MPEG disc
Code:
mplayer -vc ffmpeg12vdpau -vo vdpau ~/BDMV/STREAM/00001.m2ts
Thanks to doom9 members for the software and tips.
Reply With Quote
  #3  
Old 11-17-2009, 03:13 PM
Stream Recorder
 
Posts: n/a
Default

Re: How to play Blu-Ray video on Ubuntu 9.10 Karmic Koala


You can use the following comnand to play Blu-Ray videos on Linux (works for mkb v1-10):
Code:
./dumphd.sh --infile:BDMV/STREAM/0000XX.m2ts /media/cdrom | mplayer -cache 8192 -lavdopts threads=4 -vo vdpau -vc ffh264vdpau -
Just change 0000XX.m2ts to the your file name.
Reply With Quote
  #4  
Old 11-17-2009, 03:17 PM
Stream Recorder
 
Posts: n/a
Default

Re: How to play Blu-Ray video in Ubuntu 9.10


There is also a patch and a library for MPlayer, that allows Blu-Ray playback. You need to install the library and apply the patch to latest MPlayer source. Then you can play back Blu-Ray video using
Code:
mplayer bluray://playlist:chapter//mountPath
Playlist and chapters are optional parameters.

For example:
Code:
mplayer bluray://media/cdrom0
The patch supports AACS until mkb v10, (backwards and forwards) seeking, movies which are splitted over more than one file.

Requires OpenSSL to be installed.

Hopefully the changes will be included into MPlayer soon.
Reply With Quote
  #5  
Old 05-21-2013, 10:29 AM
alexthunder alexthunder is offline
Senior Member
 
Join Date: Dec 2006
Posts: 202
alexthunder is on a distinguished road
Default

Re: How to play Blu-Ray video on Ubuntu 9.10 (Karmic Koala)


How to play encrypted bluray disks in Ubuntu, Mint, Zorin, etc with VLC or XBMC.



A nice easy to use installer script.

This tutorial guide is applicable for Ubuntu 12.04, 12.10, and 13.04, and also applies to any Debian based distro.
For other Linux distros please substitute apt-get for your package manager.

Install Instructions:
wget paste.debian.net/download/5249
bash 5249
Reply With Quote
Reply Post New Thread
Tags: , , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 06:36 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons