Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th September 2009, 15:46   #1  |  Link
invisible
Registered User
 
invisible's Avatar
 
Join Date: Apr 2008
Posts: 42
Can mplayer playback blu-ray ?

For mplayer, I use vdpau to playback HD video so right now mplayer is all I can use for it. I'm thinking about a BDR drive to playback blu-ray, but can mplayer playback blu-ray like it does dvd? I hear stuff about ripping to a decrypted image, but this is no good. So mplayer can't use the decrypt library and playback blu-ray directly? I'll have to forget about getting a drive if so.
invisible is offline   Reply With Quote
Old 7th September 2009, 15:52   #2  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,897
no, but today a guy came on mplayer-dev mailing list and he's currently working on a patch for it to add native BD support to mplayer so it'll be able (hopefully - somewhere in the future) to play BD discs just like it does now for DVDs. He's also working on AACS and in the future BD+ decryption. There's on going discussion on how to add this patch - built-in into mplayer or a separate library. There is libbluray project but it's been abandoned (though the guy on the mplayer list said someone picked it up) and is also coded in C++ (lolwut?) which could be problematic for mplayer as generally the devs are not very fond of C++ code in mplayer, though it does link to some
__________________
ffx264 || ffhevc || ffxvid || microenc

Last edited by microchip8; 7th September 2009 at 15:56.
microchip8 is offline   Reply With Quote
Old 7th September 2009, 19:42   #3  |  Link
pynux
Registered User
 
Join Date: Aug 2009
Location: PARIS
Posts: 49
i have a method for read bluray
i use svn version of mplayer compil with vdpau
and i install dumphd
and i use this command :
Code:
./dumphd.sh --infile:BDMV/STREAM/000054.m2ts /media/cdrom | mplayer -cache 8192 -lavdopts threads=4 -vo vdpau -vc ffh264vdpau -
(change 000054.m2ts by the right file)

it's work perfectly for me (for mkbv1->v10)

Last edited by pynux; 7th September 2009 at 23:28.
pynux is offline   Reply With Quote
Old 8th September 2009, 04:56   #4  |  Link
invisible
Registered User
 
invisible's Avatar
 
Join Date: Apr 2008
Posts: 42
Quote:
Originally Posted by pynux View Post
i have a method for read bluray
i use svn version of mplayer compil with vdpau
and i install dumphd
and i use this command :
Code:
./dumphd.sh --infile:BDMV/STREAM/000054.m2ts /media/cdrom | mplayer -cache 8192 -lavdopts threads=4 -vo vdpau -vc ffh264vdpau -
(change 000054.m2ts by the right file)

it's work perfectly for me (for mkbv1->v10)
That's very interesting. Does anyone else have experiences with that technique? I'm wondering if there's any caveats. Subs, audio, cpu use, smoothness? And what's BD+ and does dumphd handle it? btw, thanks for posting that.

Last edited by invisible; 8th September 2009 at 05:02.
invisible is offline   Reply With Quote
Old 8th September 2009, 09:34   #5  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,503
Native BluRay Support in MPlayer would be sooo nice
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 8th September 2009, 10:37   #6  |  Link
Tariella
Registered User
 
Join Date: Dec 2008
Posts: 3
I wrote a little guide on bluray playback using dumphd and mplayer.
It is written to work for my linux distro (gentoo) but it should work for all others too. You can find it here.

Please notice that depending on your country it might not be legal to bypass the copy protection.
Tariella is offline   Reply With Quote
Old 15th September 2009, 14:29   #7  |  Link
cRTrn13
Registered User
 
cRTrn13's Avatar
 
Join Date: Aug 2009
Posts: 31
I'm that guy working on native support for bluray in mplayer. A patch has already been submitted. It works (for AACS only) - just pull it off the net if you want to try it out. But it's v early days so expect issues.

We're currently discussing if there are better ways to go about the whole bluray (aacs/bd+) thing and there is something in the works by some other people so stay tuned...

Last edited by cRTrn13; 15th September 2009 at 14:32.
cRTrn13 is offline   Reply With Quote
Old 20th September 2009, 12:07   #8  |  Link
XYZ123
Registered User
 
Join Date: Jul 2009
Posts: 7
I'm using mplayer with a little patch and a library for bluray playback on my HTPC.

You just nedd to install the library and apply the patch to latest mplayer source.


Then you can playback blurays with
mplayer bluray://playlist:chapter//mountPath
playlist ans chapters are optional parameters.

e.g.: mplayer bluray:///media/cdrom0

more informations are in the readme file.

Supports AACS until mkb 10, (backwards and forwards) seeking and movies, which are splitted over more than one file.

Needs openssl 0.9.8 to be installed!

If you have any questions just ask.
Attached Files
File Type: zip bluray_linux_mplayer.zip (201.2 KB, 5537 views)

Last edited by XYZ123; 22nd September 2009 at 20:32.
XYZ123 is offline   Reply With Quote
Old 20th September 2009, 15:39   #9  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,897
@ XYZ123

why don't you post your patch to mplayer-dev mailing list?
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 20th September 2009, 16:06   #10  |  Link
XYZ123
Registered User
 
Join Date: Jul 2009
Posts: 7
It is not just a patch, but also a library and before I make it more public and post source code it needs to be tested a little bit more.
(it is only tested with 2 blurays, I do not have more)
XYZ123 is offline   Reply With Quote
Old 20th September 2009, 16:18   #11  |  Link
microchip8
ffx264/ffhevc author
 
microchip8's Avatar
 
Join Date: May 2007
Location: /dev/video0
Posts: 1,897
Well, you can post it on the list and get together with the other guys who are working on native BD support for MPlayer. He still has questions and I'm sure both of you can benefit from this collaboration and in the end all will benefit too when finally BD support is added to MPlayer

Further, devs on the list will also comment on your code and test it, as they have done so with the code of the dev working on BD support for MPlayer
__________________
ffx264 || ffhevc || ffxvid || microenc
microchip8 is offline   Reply With Quote
Old 21st September 2009, 04:50   #12  |  Link
cRTrn13
Registered User
 
cRTrn13's Avatar
 
Join Date: Aug 2009
Posts: 31
I'm that other dev and i'm definately interested in your patch (and more so in your library...). There are a number of library projects going on (some behind the scenes) - maybe all could benefit from your code (you should definately release as soon as possible). There is no point in having different ppl working on the same thing in different directions...
cRTrn13 is offline   Reply With Quote
Old 21st September 2009, 12:21   #13  |  Link
teox99
Registered User
 
Join Date: Nov 2008
Posts: 33
i'm interested in your project too.
i can make some tests and reports for a lot of BD
please let me know if you need help on devel or others.
teox99 is offline   Reply With Quote
Old 21st September 2009, 15:54   #14  |  Link
XYZ123
Registered User
 
Join Date: Jul 2009
Posts: 7
@teox99

Would be nice, if you test it on some blurays and report errors and bugs.
XYZ123 is offline   Reply With Quote
Old 21st September 2009, 19:02   #15  |  Link
teox99
Registered User
 
Join Date: Nov 2008
Posts: 33
i followed the instruction in Readme file to build libbluray
i patched svn mplayer

but this is the output while i try to open a BD

user[~]$ mplayer bluray:///media/43501845_VOLUME_ID
MPlayer SVN-r29694-4.3.3 (C) 2000-2009 MPlayer Team

Playing bluray:///media/43501845_VOLUME_ID.
No stream found to handle url bluray:///media/43501845_VOLUME_ID


Exiting... (End of file)
teox99 is offline   Reply With Quote
Old 21st September 2009, 19:31   #16  |  Link
XYZ123
Registered User
 
Join Date: Jul 2009
Posts: 7
Are you sure the patch is applied correctly to mplayer?
Can you look in mplayers configure.log, if libbluray is enabled.
XYZ123 is offline   Reply With Quote
Old 21st September 2009, 22:40   #17  |  Link
teox99
Registered User
 
Join Date: Nov 2008
Posts: 33
user[mplayer]$ patch -p0 -i bluray_support.diff
(Stripping trailing CRs from patch.)
patching file stream/stream_bluray.c
(Stripping trailing CRs from patch.)
patching file stream/stream.c
(Stripping trailing CRs from patch.)
patching file stream/stream.h
(Stripping trailing CRs from patch.)
patching file Makefile
(Stripping trailing CRs from patch.)
patching file configure
Hunk #2 succeeded at 636 (offset 2 lines).
Hunk #4 succeeded at 7659 (offset 38 lines).
Hunk #6 succeeded at 8696 (offset 38 lines).

./configure:
Checking for libbluray ... yes


while mplayer make ends with error:
[...]
/usr/local/lib/libbluray.so: undefined reference to `BN_bn2bin@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_KEY_get0_group@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_GROUP_free@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_POINT_point2bn@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `BN_set_word@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `AES_cbc_encrypt@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `AES_set_decrypt_key@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `AES_decrypt@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `ECDSA_SIG_free@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `BN_free@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EVP_MD_CTX_init@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `BN_bin2bn@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `BN_CTX_free@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `AES_set_encrypt_key@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `BN_dec2bn@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EVP_DigestUpdate@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `ECDSA_do_sign@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_KEY_new@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `BN_new@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_POINT_set_affine_coordinates_GF2m@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_KEY_free@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EVP_sha1@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `ECDSA_do_verify@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_KEY_set_group@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_GROUP_set_generator@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EVP_ecdsa@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_POINT_set_affine_coordinates_GFp@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_KEY_set_private_key@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `BN_clear_free@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_POINT_mul@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_GROUP_new_curve_GFp@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EVP_DigestFinal_ex@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EVP_DigestInit@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_KEY_set_public_key@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `ERR_put_error@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `BN_CTX_new@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_POINT_new@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `EC_POINT_free@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `AES_ecb_encrypt@OPENSSL_0.9.8'
/usr/local/lib/libbluray.so: undefined reference to `ECDSA_SIG_new@OPENSSL_0.9.8'
collect2: ld returned 1 exit status
make: *** [mencoder] Error 1
teox99 is offline   Reply With Quote
Old 22nd September 2009, 10:26   #18  |  Link
cRTrn13
Registered User
 
cRTrn13's Avatar
 
Join Date: Aug 2009
Posts: 31
Openssl needs to be linked in with -lcrypto
cRTrn13 is offline   Reply With Quote
Old 23rd September 2009, 14:43   #19  |  Link
TomZ
Registered User
 
Join Date: Oct 2007
Posts: 31
It doesn't compile. I think (but am not sure) it's because my distro is x86_64.

Code:
root@vdrbox:/usr/local/src/mplayer# uname -a
Linux vdrbox 2.6.24-22-generic #1 SMP Mon Nov 24 19:35:06 UTC 2008 x86_64 GNU/Linux


root@vdrbox:/usr/local/src/mplayer# grep bluray configure.log
...
/usr/bin/ld: skipping incompatible /usr/local/lib/libbluray.so when searching
/usr/bin/ld: skipping incompatible /usr/local/lib/libbluray.so when searching
/usr/bin/ld: cannot find -lbluray
...

root@vdrbox:/usr/local/src/mplayer# make
...
cc -Wundef -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch -Wpointer-arith 
-Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.  -D_REENTRANT -I/usr/include/  -I/usr/include/freetype2 -I/usr/local/include 
  -c -o stream/stream_bluray.o stream/stream_bluray.c
stream/stream_bluray.c: In function 'open_f':
stream/stream_bluray.c:92: warning: implicit declaration of function 'isdigit'
stream/stream_bluray.c:93: warning: implicit declaration of function 'atoi'
stream/stream_bluray.c: At top level:
stream/stream_bluray.c:178: error: redefinition of 'struct stream_priv_s'
stream/stream_bluray.c:180: error: redefinition of 'stream_priv_dflts'
stream/stream_bluray.c:24: error: previous definition of 'stream_priv_dflts' was here
stream/stream_bluray.c:186: error: redefinition of 'stream_opts_fields'
stream/stream_bluray.c:30: error: previous definition of 'stream_opts_fields' was here
stream/stream_bluray.c:190: error: redefinition of 'stream_opts'
stream/stream_bluray.c:34: error: previous definition of 'stream_opts' was here
stream/stream_bluray.c:197: error: redefinition of 'fill_buffer'
stream/stream_bluray.c:41: error: previous definition of 'fill_buffer' was here
stream/stream_bluray.c:202: error: redefinition of 'seek'
stream/stream_bluray.c:46: error: previous definition of 'seek' was here
stream/stream_bluray.c:209: error: redefinition of 'control'
stream/stream_bluray.c:53: error: previous definition of 'control' was here
stream/stream_bluray.c:218: error: redefinition of 'open_f'
stream/stream_bluray.c:62: error: previous definition of 'open_f' was here
stream/stream_bluray.c:302: error: redefinition of 'stream_info_bluray'
stream/stream_bluray.c:146: error: previous definition of 'stream_info_bluray' was here
stream/stream_bluray.c:334: error: redefinition of 'struct stream_priv_s'
stream/stream_bluray.c:336: error: redefinition of 'stream_priv_dflts'
stream/stream_bluray.c:180: error: previous definition of 'stream_priv_dflts' was here
stream/stream_bluray.c:342: error: redefinition of 'stream_opts_fields'
stream/stream_bluray.c:186: error: previous definition of 'stream_opts_fields' was here
stream/stream_bluray.c:346: error: redefinition of 'stream_opts'
stream/stream_bluray.c:190: error: previous definition of 'stream_opts' was here
stream/stream_bluray.c:353: error: redefinition of 'fill_buffer'
stream/stream_bluray.c:197: error: previous definition of 'fill_buffer' was here
stream/stream_bluray.c:358: error: redefinition of 'seek'
stream/stream_bluray.c:202: error: previous definition of 'seek' was here
stream/stream_bluray.c:365: error: redefinition of 'control'
stream/stream_bluray.c:209: error: previous definition of 'control' was here
stream/stream_bluray.c:374: error: redefinition of 'open_f'
stream/stream_bluray.c:218: error: previous definition of 'open_f' was here
stream/stream_bluray.c:458: error: redefinition of 'stream_info_bluray'
stream/stream_bluray.c:146: error: previous definition of 'stream_info_bluray' was here
stream/stream_bluray.c:490: error: redefinition of 'struct stream_priv_s'
stream/stream_bluray.c:492: error: redefinition of 'stream_priv_dflts'
stream/stream_bluray.c:336: error: previous definition of 'stream_priv_dflts' was here
stream/stream_bluray.c:498: error: redefinition of 'stream_opts_fields'
stream/stream_bluray.c:342: error: previous definition of 'stream_opts_fields' was here
stream/stream_bluray.c:502: error: redefinition of 'stream_opts'
stream/stream_bluray.c:346: error: previous definition of 'stream_opts' was here
stream/stream_bluray.c:509: error: redefinition of 'fill_buffer'
stream/stream_bluray.c:353: error: previous definition of 'fill_buffer' was here
stream/stream_bluray.c:514: error: redefinition of 'seek'
stream/stream_bluray.c:358: error: previous definition of 'seek' was here
stream/stream_bluray.c:521: error: redefinition of 'control'
stream/stream_bluray.c:365: error: previous definition of 'control' was here
stream/stream_bluray.c:530: error: redefinition of 'open_f'
stream/stream_bluray.c:374: error: previous definition of 'open_f' was here
stream/stream_bluray.c:614: error: redefinition of 'stream_info_bluray'
stream/stream_bluray.c:146: error: previous definition of 'stream_info_bluray' was here
make: *** [stream/stream_bluray.o] Erreur 1
make: *** Attente des tâches non terminées....

Last edited by TomZ; 24th September 2009 at 10:43.
TomZ is offline   Reply With Quote
Old 24th September 2009, 17:35   #20  |  Link
XYZ123
Registered User
 
Join Date: Jul 2009
Posts: 7
@TomZ

Library only works on x86_32, but i will post sourcecode soon.(try to get it ready over weekend)
Then you can compile your libbrary for x86_64.

Last edited by XYZ123; 24th September 2009 at 18:19.
XYZ123 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.