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. |
7th October 2009, 17:29 | #24 | Link |
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. |
12th October 2009, 12:34 | #27 | Link |
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 |
12th October 2009, 13:29 | #28 | Link |
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 |
12th October 2009, 14:25 | #29 | Link |
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. |
12th October 2009, 16:32 | #30 | Link |
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? |
12th October 2009, 17:10 | #31 | Link |
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. |
12th October 2009, 21:43 | #33 | Link |
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.
|
22nd November 2009, 15:50 | #36 | Link |
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 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) 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 ? |
22nd November 2009, 17:00 | #37 | Link | |
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 2,641
|
Quote:
|
|
22nd November 2009, 18:38 | #38 | Link |
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. |
22nd November 2009, 21:15 | #40 | Link |
Registered User
Join Date: Nov 2009
Posts: 8
|
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' |
Thread Tools | Search this Thread |
Display Modes | |
|
|