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 25th September 2009, 10:13   #21  |  Link
TomZ
Registered User
 
Join Date: Oct 2007
Posts: 31
Good news, thanks !
Once you have posted the source code, i'll give you all feedbacks as i can.
TomZ is offline   Reply With Quote
Old 6th October 2009, 00:26   #22  |  Link
TomZ
Registered User
 
Join Date: Oct 2007
Posts: 31
Any news ?...
TomZ is offline   Reply With Quote
Old 6th October 2009, 23:48   #23  |  Link
eLupus
Registered User
 
Join Date: Jan 2003
Posts: 46
I'd be interested in that lib aswell for integration into xbmc.. To start with without the decryption support. Ie only the parsing of playlists (and the timestamp seek support if you added it)
eLupus is offline   Reply With Quote
Old 7th October 2009, 18:29   #24  |  Link
JohnAStebbins
Registered User
 
Join Date: Oct 2008
Posts: 114
eLupus, have a look at this post.
This is a library and example programs I wrote for parsing BD playlists and clipinfo. The clipinfo defines random access points that you need for seeking. You are welcome to use it. It's gpl, though I haven't added proper copyright notices to all the source files yet. Current source is here. I'm open to any suggestions on changes that would make it more usable for you.
JohnAStebbins is offline   Reply With Quote
Old 9th October 2009, 14:56   #25  |  Link
Graf_Zahl
Registered User
 
Join Date: Oct 2009
Posts: 1
Can i help you by testing the mplayer patch? I have many Blurays and i'm very motivated to help you and your developing!

With many greetz
Graf_Zahl
Graf_Zahl is offline   Reply With Quote
Old 9th October 2009, 21:54   #26  |  Link
pynux
Registered User
 
Join Date: Aug 2009
Location: PARIS
Posts: 49
Me too
pynux is offline   Reply With Quote
Old 12th October 2009, 13:34   #27  |  Link
eLupus
Registered User
 
Join Date: Jan 2003
Posts: 46
JohnAStebbins:

Nice. I had looked at that code once before in the past. It looks about what we need. If you feel like helping improving it abit, it would be nice to libify it. Ie have the code return structures instead of output to stdout.

Also, we need to be able to replace the stdio open/close/read calls in xbmc. We usually do this by means of replacing symbols at linking time (ie no change in the source required). But it's normally cleaner to have a struct with callbacks for read/write/open/close. Still this is of much lower priority.

Joakim
eLupus is offline   Reply With Quote
Old 12th October 2009, 14:29   #28  |  Link
kreet
Registered User
 
Join Date: Jul 2009
Posts: 41
xyz123 and all: were working on a new libbluray project which will hopefully include full aacs/bd+ support. were looking for developers to contribute. our ultimate goal is plugins for mplayer/vlc to do full bluray support.

http://forum.doom9.org/showthread.php?t=150014 - thread here
http://my-trac.assembla.com/libbluray/ - project space
kreet is offline   Reply With Quote
Old 12th October 2009, 15:25   #29  |  Link
eLupus
Registered User
 
Join Date: Jan 2003
Posts: 46
kreet:
From a player point of view (xbmc).. Decryption is of lesser interest compared to playlist/clip/timestamp parsing. A user can always decrypt externally. But at some point he'll need to play the data. Playing the m2ts files directly is far from optimal.
eLupus is offline   Reply With Quote
Old 12th October 2009, 17:32   #30  |  Link
JohnAStebbins
Registered User
 
Join Date: Oct 2008
Posts: 114
eLubus, if you have another look at my code, you'll see it's already split into a library and some example programs. The example programs just use the library to obtain data structures (like you were asking for) and filter/format the data for output. The library is in bdtools subdir and the examples are in the src subdir. mpls_parse.h and clpi_parse.h contain the public interfaces. There's really not much to it from a users point of view.

I would be glad to abstract the IO routines. That's going to be necessary eventually anyway if I want to hook in a decryption library at some point. Do you have any preferred interface for registering the IO functions you'll be using?
JohnAStebbins is offline   Reply With Quote
Old 12th October 2009, 18:10   #31  |  Link
eLupus
Registered User
 
Join Date: Jan 2003
Posts: 46
Ah. missed that. Will have a look at it again.

On the io abstraction side I have no real preference. I think best would be to do what seems most valid for hooking up a decryption library.

Perhaps just a struct for open/close/read wich take a filename with path relative to the root of the bd structure with a file device that is some opaque pointer. Ie 64 bit on 64bit operating systems instead of a standard file device int.
eLupus is offline   Reply With Quote
Old 12th October 2009, 18:13   #32  |  Link
eLupus
Registered User
 
Join Date: Jan 2003
Posts: 46
Quote:
struct fileio
{
void* (*open)(const char* filename, int mode);
int (*read)(void* fd, char* buf, int count);
void (*close)(void* fd)
};
And have that passed to the library on init.
eLupus is offline   Reply With Quote
Old 12th October 2009, 22:43   #33  |  Link
kreet
Registered User
 
Join Date: Jul 2009
Posts: 41
eLupus, JohnAStebbins: please consider contributing and combining efforts with our project. we aim to provide a full solution, including a bd-vfs implementation and all necessary routines for managing playlists, clips and eventually bd-j menus and applications.
kreet is offline   Reply With Quote
Old 18th November 2009, 13:07   #34  |  Link
prolinux
Registered User
 
Join Date: Nov 2009
Posts: 8
libbluray sources for x86_64

Is thera a chance to get the libbluray sources for x86_64 ?
prolinux is offline   Reply With Quote
Old 20th November 2009, 04:20   #35  |  Link
dmzkrsk
Registered User
 
Join Date: Aug 2009
Posts: 1
Same here
How to patch mplayer on x86_64?
New libbluray has no mplayer patch yet
dmzkrsk is offline   Reply With Quote
Old 22nd November 2009, 15:50   #36  |  Link
prolinux
Registered User
 
Join Date: Nov 2009
Posts: 8
mplayer compile problem on Fedora 11 32bit

have a problem when compiling svn mplayer with applied bluray_support.diff patch on Fedora 11 32bt.

Code:
-lncurses -lpng -lz -lmng -lz -ljpeg -lungif -lasound -ldl -lpthread -lfreetype -lfontconfig  -lz -lbz2 -L/usr/local/lib -lbluray -lpthread -ldl -rdynamic  -lm  -lXext -lX11 -lpthread -lXss -lXv -lXinerama -lXxf86vm -lXxf86dga -lGL -ldl -lSDL -lpthread
/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
libssl is linked against libcrypto

Code:
# ldd /usr/lib/libssl
libssl3.so        libssl.a          libssl.so         libssl.so.0.9.8k  libssl.so.8       
[root@fc11-32 tmp]# ldd /usr/lib/libssl.so
	linux-gate.so.1 =>  (0x006c7000)
	libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x03abd000)
	libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x03aea000)
	libcom_err.so.2 => /lib/libcom_err.so.2 (0x00909000)
	libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x03b94000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x00110000)
	libcrypto.so.8 => /usr/lib/libcrypto.so.8 (0x0392c000)
	libdl.so.2 => /lib/libdl.so.2 (0x00fb4000)
	libz.so.1 => /lib/libz.so.1 (0x00399000)
	libc.so.6 => /lib/libc.so.6 (0x00a57000)
	libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x03b88000)
	libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x03bba000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00250000)
	/lib/ld-linux.so.2 (0x0019f000)
	libselinux.so.1 => /lib/libselinux.so.1 (0x003b9000)
installed libssl
Code:
# ll /usr/lib/libssl.*
-rw-r--r--. 1 root root  475252 21. Nov 20:09 /usr/lib/libssl.a
lrwxrwxrwx. 1 root root      16 21. Nov 20:26 /usr/lib/libssl.so -> libssl.so.0.9.8k
-rwxr-xr-x. 1 root root 1360672 21. Nov 19:55 /usr/lib/libssl.so.0.9.8k
lrwxrwxrwx. 1 root root      16 21. Nov 20:26 /usr/lib/libssl.so.8 -> libssl.so.0.9.8k

any help ?
prolinux is offline   Reply With Quote
Old 22nd November 2009, 17:00   #37  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
Quote:
Originally Posted by prolinux View Post
have a problem when compiling svn mplayer with applied bluray_support.diff patch on Fedora 11 32bt.

Code:
-lncurses -lpng -lz -lmng -lz -ljpeg -lungif -lasound -ldl -lpthread -lfreetype -lfontconfig  -lz -lbz2 -L/usr/local/lib -lbluray -lpthread -ldl -rdynamic  -lm  -lXext -lX11 -lpthread -lXss -lXv -lXinerama -lXxf86vm -lXxf86dga -lGL -ldl -lSDL -lpthread
You didn't show the complete command, but are you missing -lssl ?
nm is offline   Reply With Quote
Old 22nd November 2009, 18:38   #38  |  Link
prolinux
Registered User
 
Join Date: Nov 2009
Posts: 8
ssl is now in the link line, but the compilations still fails.

-ffast-math -lncurses -lpng -lz -lmng -lz -ljpeg -lungif -lasound -ldl -lpthread -lfreetype -lfontconfig -lz -lbz2 -L/usr/local/lib -lbluray -lpthread -ldl -rdynamic -lm -L/usr/lib -lssl -lXext -lX11 -lpthread -lXss -lXv -lXinerama -lXxf86vm -lXxf86dga -lGL -ldl -lSDL -lpthread
/usr/local/lib/libbluray.so: undefined reference to `BN_bn2bin@OPENSSL_0.9.8'
...

Last edited by prolinux; 22nd November 2009 at 19:34.
prolinux is offline   Reply With Quote
Old 22nd November 2009, 19:39   #39  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,643
Move -lssl before -lbluray.
nm is offline   Reply With Quote
Old 22nd November 2009, 21:15   #40  |  Link
prolinux
Registered User
 
Join Date: Nov 2009
Posts: 8
Quote:
Originally Posted by nm View Post
Move -lssl before -lbluray.
always the same problem
Code:
libpostproc/libpostproc.a libswscale/libswscale.a -ffast-math  -lssl   -lncurses -lsmbclient -lpng -lz -lmng -lz -ljpeg -lungif -lasound   -lfreetype -lfontconfig  -lz -lbz2 -L/usr/local/lib -lbluray   -rdynamic  -lm  -lXext -lX11 -lXss -lXv -lXinerama -lXxf86vm -lXxf86dga -lGL -lSDL -lpthread
/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'
prolinux 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 15:11.


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