View Single Post
  #2  
Old 11-17-2009, 02: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