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 December 2008, 13:48   #1  |  Link
oldwally2
Registered User
 
Join Date: Nov 2008
Posts: 16
Linux blu-ray noob

Hi, I recently got a Pioneer BDC-S02 blu-ray player which uses firmware 1.07 08/05/29, according to aacskeys-0.3.5.
Java6 is installed.
I use Ubuntu 8.10 and dumphd-0.51, a Radeon 4850 and AnyDvd HD to play blu-ray on vista 32bit when not in linux as blu-ray won't play over dvi and hdmi does not allow 2560x1600 desktop resolution which is standard for the dell 30" monitor I bought especially to watch blu-ray on. (and play games )
In other words, everything is legal as I went out of my way to try and ensure that there would be no problems with hdcp etc. but still it did not work.
Thank goodness for Slysoft and the work of the people on this forum.
I want to play blu-ray with linux (specifically, 2001: A Space Odyssey) and have studied these forums and tried with aacskeys and dumphd, as mentioned above.
DumpHd gives the disc id but also the error messages of
"Loading aacskeys library .......FAILED
no aacskeys in java.library.path"
and later on
"Searching disc in key database....
Disc not found in key database"
Then I tried aacskeys and that gave a lot of info (with the warning message about not posting it on the web) but then stated that:

"The given Host Certficate / Private Key has been revoked by your drive."

Can someone please explain what I need to do next as I believe from reading this forum that it should be possible to play this MKBv4 disc on Ubuntu 8.10?
I found the 2001:A Space Odyssey key on this forum but still no luck.

Many thanks, oldwally2.
oldwally2 is offline   Reply With Quote
Old 7th December 2008, 14:32   #2  |  Link
HymnToLife
Ubuntu French Roast
 
HymnToLife's Avatar
 
Join Date: Apr 2006
Location: Bordeaux, France
Posts: 191
Quote:
Originally Posted by oldwally2 View Post
"The given Host Certficate / Private Key has been revoked by your drive."
I think if you can't get the VID straight away with aacskeys, you'll have to bruteforce it using DumpVID in Windows. At least that's what I do when I see this error, of course there might be other ways I don't know of, but doing that will work.

Then when you have the VID, you can feed it to aacskeys, which will give you the VUK, which in turn you can feed to DumpHD.
__________________
Code:
Copy Protection:  A clever method of preventing incompetent pirates from
		   stealing software and legitimate customers from using it.
From http://www.gnu.org/fun/jokes/software.terms.html
HymnToLife is offline   Reply With Quote
Old 7th December 2008, 15:24   #3  |  Link
oldwally2
Registered User
 
Join Date: Nov 2008
Posts: 16
Thanks HymnToLife, I have searched a bit more and found doom9's guide on how to use aacskeys (https://forum.doom9.org/showthread.php?t=123111&page=11)

and hopefully that will do the trick.

Many thanks, oldwally2.
oldwally2 is offline   Reply With Quote
Old 7th December 2008, 17:34   #4  |  Link
oldwally2
Registered User
 
Join Date: Nov 2008
Posts: 16
I used aacskeys and dumphd and with a bit of trial and error managed to put the corrrect data in the right place in the KEYDB.cfg file so that dumphd ran.
There were quite a few "Required CPS Unit Key / Sequence not present" error messages but dumphd kept going and completed its work.
In the destination directory I pointed dumphd to there are now 4 folders (BACKUP, CLIPINF, PLAYLIST and STREAM) and 2 files (index.bdmv and MovieObject.bdmv)
The problem is what to do next?
i tried to get xine and mplayer to play the .m2ts files in the STREAM folder but only got an error message.
I realise this is a real noob question but at the moment that is what I am.
Thanks for any help, oldwally2.
oldwally2 is offline   Reply With Quote
Old 7th December 2008, 18:00   #5  |  Link
HymnToLife
Ubuntu French Roast
 
HymnToLife's Avatar
 
Join Date: Apr 2006
Location: Bordeaux, France
Posts: 191
Now that you have your decrypted streams, you can use eac3to to remux them into a MKV container, which you will be able to play in mplayer or re-encode in mencoder. More info in this guide.
__________________
Code:
Copy Protection:  A clever method of preventing incompetent pirates from
		   stealing software and legitimate customers from using it.
From http://www.gnu.org/fun/jokes/software.terms.html
HymnToLife is offline   Reply With Quote
Old 8th December 2008, 08:38   #6  |  Link
yeye69
Registered User
 
Join Date: Apr 2008
Posts: 39
Quote:
Originally Posted by HymnToLife View Post
Now that you have your decrypted streams, you can use eac3to to remux them into a MKV container, which you will be able to play in mplayer or re-encode in mencoder. [/url].
Are you sure the streams decrypted? Mplayer play excellent .m2ts files, in some cases one needs to write "-demuxer lavf" in mplayer's options.
To a topicstarter:what error mplayer show?
yeye69 is offline   Reply With Quote
Old 8th December 2008, 13:11   #7  |  Link
HymnToLife
Ubuntu French Roast
 
HymnToLife's Avatar
 
Join Date: Apr 2006
Location: Bordeaux, France
Posts: 191
Quote:
Originally Posted by yeye69 View Post
Are you sure the streams decrypted?
Yes, the whole point of DumpHD is that it decrypts the streams. Otherwise, why would it need the VUK of the disc?
__________________
Code:
Copy Protection:  A clever method of preventing incompetent pirates from
		   stealing software and legitimate customers from using it.
From http://www.gnu.org/fun/jokes/software.terms.html
HymnToLife is offline   Reply With Quote
Old 8th December 2008, 13:59   #8  |  Link
oldwally2
Registered User
 
Join Date: Nov 2008
Posts: 16
Firstly, thanks for the suggestions.
I downloaded eac3to and booted into vista but just had errors when I tried to use it to change the m2ts container to an mkv container. ( I think "container" is the right term from reading some posts here)
Anyway, it did not work for me and whilst I realize that many of the people who are responsible for all the good work on this forum seem to be using virtualization and dual-booting etc I prefer to try and find out how to do these things within linux.
This is not because of any ideological belief or concern about "purity" but simply that I find it difficult enough (with my trial and error method) working out what to do in linux without having to grapple with vista's issues as well, especially vista's commandline issues.
So, following on from yeye69's suggestion of using "mplayer -demuxer lavf /mypathto/BDMV/STREAM/00000.m2ts"
it seemed to work without anything happening (ie no video screen appeared) as the following message says:

"Playing /media/Big/HomeTheatre/2001/2001/BDMV/STREAM/00000.m2ts.

Exiting... (End of file)"

This message takes only about 5 secs to come up.
Whilst 00000.m2ts is only one of many m2ts files it is the first and largest (6.3GB) so I believe this is the best bet.
Trying the other m2ts files (ie 00009.m2ts) results in the same thing happening.
Anyway, any further suggestions are very welcome.
Thanks, oldwally2.
oldwally2 is offline   Reply With Quote
Old 8th December 2008, 14:54   #9  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by oldwally2 View Post
Anyway, it did not work for me and whilst I realize that many of the people who are responsible for all the good work on this forum seem to be using virtualization and dual-booting etc I prefer to try and find out how to do these things within linux.
Wine should run eac3to just fine.

Quote:
So, following on from yeye69's suggestion of using "mplayer -demuxer lavf /mypathto/BDMV/STREAM/00000.m2ts"
it seemed to work without anything happening (ie no video screen appeared) as the following message says:

"Playing /media/Big/HomeTheatre/2001/2001/BDMV/STREAM/00000.m2ts.

Exiting... (End of file)"
Either your MPlayer is outdated (let me guess, 1.0rc2, which is over a year old), or there is something wrong with the decrypted files.
nm is offline   Reply With Quote
Old 8th December 2008, 16:07   #10  |  Link
ggking7
Registered User
 
Join Date: Sep 2006
Posts: 249
Quote:
Wine should run eac3to just fine.
The problem I have with eac3to via wine is it can't mux to mkv because that requires a DirectShow filter. This means it can only -demux to elementary streams which don't contain timecode information. Muxing with mkvmerge after that leaves the a/v out of sync.
ggking7 is offline   Reply With Quote
Old 8th December 2008, 16:20   #11  |  Link
yeye69
Registered User
 
Join Date: Apr 2008
Posts: 39
Quote:
Either your MPlayer is outdated (let me guess, 1.0rc2, which is over a year old), or there is something wrong with the decrypted files
He uses Ubuntu 8.10 - it's a lastest version of this distro, mplayer must not be so old. Please, type here mplayer version. Then try to encode some part of any m2ts-files, for example, like that(duration 1 minute, insteed of -alang en, try -aid "here_put_a_number"):

Code:
mencoder -ss 0:00:01 -endpos 60 "00003.m2ts" -o /dev/null -vf softskip,harddup -aspect 1.7778 -alang en -channels 6 -oac copy -ovc x264 -x264encopts pass=1:bitrate=7000:turbo=2:me=umh:me_range=24:nodct_decimate:nointerlaced:8x8dct:nofast_pskip:trellis=1:partitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:keyint=240:keyint_min=24:psy_rd=0.5,0.3:frameref=3:bframes=3:b_adapt=1:nob_pyramid:weight_b:direct_pred=auto:subq=7:chroma_me:cabac:deblock:vbv_maxrate=25000:vbv_bufsize=14475:aud:level_idc=40:threads=auto:ssim:psnr -passlogfile h264.log

mencoder -ss 0:00:01 -endpos 60 "00003.m2ts" -o "00003.avi" -vf softskip,harddup -aspect 1.7778 -alang en -channels 6 -oac copy -ovc x264 -x264encopts pass=2:bitrate=7000:me=umh:me_range=24:nodct_decimate:nointerlaced:8x8dct:nofast_pskip:trellis=1:partitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:keyint=240:keyint_min=24:psy_rd=0.5,0.3:frameref=3:bframes=3:b_adapt=1:nob_pyramid:weight_b:direct_pred=auto:subq=7:chroma_me:cabac:deblock:vbv_maxrate=25000:vbv_bufsize=14475:aud:level_idc=40:threads=auto:ssim:psnr -passlogfile h264.log

sleep 2

/usr/bin/mkvmerge  "00003.avi"    -o "00003.mkv"
yeye69 is offline   Reply With Quote
Old 8th December 2008, 16:24   #12  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by yeye69 View Post
He uses Ubuntu 8.10 - it's a lastest version of this distro, mplayer must not be so old.
It is: http://packages.ubuntu.com/intrepid/mplayer
nm is offline   Reply With Quote
Old 8th December 2008, 16:41   #13  |  Link
yeye69
Registered User
 
Join Date: Apr 2008
Posts: 39
Yes, I see. There is only one way - a compiling the latest version of mplayer from svn
yeye69 is offline   Reply With Quote
Old 8th December 2008, 18:11   #14  |  Link
oldwally2
Registered User
 
Join Date: Nov 2008
Posts: 16
Ok, here's the latest update in this little saga.
I went to the mplayer site and downloaded the latest release that I could find (mplayer-export-snapshot.tar.bz2) and compiled it but still it could not play the m2ts files and gave the same error message as the older version which cames with Ubuntu8.10.
I then tried yeye69's latest suggestion with the following results:

vic@comp2:/usr/local/bin$ "mencoder -ss 0:00:01 -endpos 60 /media/Big/HomeTheatre/2001/2001/BDMV/STREAM/00000.m2ts -o /dev/null -vf softskip,harddup -aspect 1.7778 -alang en -channels 6 -oac copy -ovc x264 pass=1:bitrate=7000:turbo=2:me=umh:me_range=24:nodct_decimate:nointerlaced:8x8dct:nofast_pskip:trellis=1artitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:keyint=240:keyint_min=24sy_rd=0.5,0.3:frameref=3:bframes=3:b_adapt=1:nob_pyramid:weight_b:direct_pred=auto:subq=7:chroma_me:cabac:deblock:vbv_maxrate=25000:vbv_bufsize=14475:aud:level_idc=40:threads=auto:ssimsnr -passlogfile h264.log
MEncoder SVN-r28111 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 0 data: 0x0 - 0x9413c000
demux: File doesn't contain the selected audio or video stream.
MPEG: Missing video stream!? Contact the author, it may be a bug
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.

Exiting..."

So it seems it doesn't like m2ts files, even with mencoder being the updated one.

I have been following what ggking7 has been doing and since he has got some blu-ray discs to work in linux I thought I would see if I could also succeed.
However, as he points out above, he has run into some problems.
I'm sure that sooner or later we will be able to play blu-ray in linux but understandably with all the changes going on in terms of new aacskeys and BD+ schemes it is necessary to concentrate on making sure that new blu-ray titles can play within windows for those who have purchased these discs.
Anyway, thanks for everyones help.
Cheers, oldwally2.
oldwally2 is offline   Reply With Quote
Old 8th December 2008, 18:15   #15  |  Link
HymnToLife
Ubuntu French Roast
 
HymnToLife's Avatar
 
Join Date: Apr 2006
Location: Bordeaux, France
Posts: 191
I will reinstall Ubuntu on my main computer soon-ish and see what I can come up with. It can't be that hard to play back streams when you have them decrypted...
__________________
Code:
Copy Protection:  A clever method of preventing incompetent pirates from
		   stealing software and legitimate customers from using it.
From http://www.gnu.org/fun/jokes/software.terms.html
HymnToLife is offline   Reply With Quote
Old 8th December 2008, 19:18   #16  |  Link
yeye69
Registered User
 
Join Date: Apr 2008
Posts: 39
Quote:
demux: File doesn't contain the selected audio or video stream.
Try also -demuxer lavf in mencoder encoding options. Maybe audio truck number mismatched, use also -nosound instead -alang en -channels 6 -oac copy .

Download this:

http://mediainfo.sourceforge.net

and run to know a video and audio streams information

Last edited by yeye69; 8th December 2008 at 19:24.
yeye69 is offline   Reply With Quote
Old 8th December 2008, 19:39   #17  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by oldwally2 View Post
I downloaded eac3to and booted into vista but just had errors when I tried to use it to change the m2ts container to an mkv container. ( I think "container" is the right term from reading some posts here)
Anyway, it did not work for me
Quote:
success: format: 0 data: 0x0 - 0x9413c000
demux: File doesn't contain the selected audio or video stream.
MPEG: Missing video stream!? Contact the author, it may be a bug
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.
Evidence points to a broken file. If -demuxer lavf doesn't help either, you could still try some Windows players like MPC HC to be sure. Or MediaInfo, as yeye69 suggested.
nm is offline   Reply With Quote
Old 9th December 2008, 11:57   #18  |  Link
KenD00
Registered User
 
Join Date: Jan 2007
Location: Internet
Posts: 378
Quote:
Originally Posted by oldwally2 View Post
I used aacskeys and dumphd and with a bit of trial and error managed to put the corrrect data in the right place in the KEYDB.cfg file so that dumphd ran.
There were quite a few "Required CPS Unit Key / Sequence not present" error messages but dumphd kept going and completed its work.
Your files are not decrypted. DumpHD ignores most of the errors to decrypt as much as it can from your disc but displays them. Missing CPS Unit Keys WILL lead to unsuccessful decryption. Your trail and error wasn't successful, your key entry in the database is wrong, can you post it please?

KenD00 is offline   Reply With Quote
Old 9th December 2008, 12:53   #19  |  Link
oldwally2
Registered User
 
Join Date: Nov 2008
Posts: 16
Thanks KenD00, here are the aacskeys info:

vic@comp2:~/bluray/aacskeys-0.3.5/bin/linux32$ ./aacskeys -sa /media/cdrom0
aacskeys 0.3.5 by arnezami, KenD00

Current path: /home/vic/bluray/aacskeys-0.3.5/bin/linu
x32

WARNING: the following contains sensitive information about your drive.
DO NOT publish this on a forum or anywhere else on the internet.
Otherwise your drive may be revoked!

MKBv: 4
Processing key: F190A1E8178D80643494394F8031D9C8
Encrypted C-value: 411A51CF1CECC302EC1F37EA31DA6BCA
Corresponding uv: 000000A0

Decrypted C-value: 4452FECBB8F87DF1E7E9CB0FC78E9975
Media key: 4452FECBB8F87DF1E7E9CB0FC78E99D5

Encrypted verification data: 36818CBE9B8E8AF335B6DAA8E8CA20FB
Decr verif data should be: 0123456789ABCDEF
Decrypted verification data: 0123456789ABCDEF95D2DB5BA667FB43

Drive FW info: 1.07 08/05/29 PIONEER
AACS Version: 01
Number of concurrent AGIDs: 1
Supports BN generation: YES
BN Block Count: 1
Inserted medium AACS protected: YES

Host Private Key (Hpriv): 4737676058D7029452514F0AB186DC4CCA8C578F
Host certificate (Hcert): 0200005CFFFF0000000C00006E3DEB679B9A16AD
FAA8E30878767BA6EB2A9B415385AD1181B4446C
31E9A5DD2AB808B364FF15885BAC490964318C9B
F8029FCF76F688A54FBDA03F6D9332EF04E5A613
12DA85880A4D9CBB79D8602E
Host Nonce (Hn): XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

AGID: 00

The given Host Certficate / Private Key has been revoked by your drive.


ERROR: SENDHOSTCHAL: SK: 0x5, ASC: 0x6F, ASCQ: 0x00, errnr: -2

vic@comp2:~/bluray/aacskeys-0.3.5/bin/linux32$

and the KEYDB.cfg info:

62EBF96BD622861742FE858E29C3F239F3619BEB = 2001: A Space Odyssey | D | 0000-00-00 | V | F190A1E8178D80643494394F8031D9C8

I presume that the error is that the last long set of data in the KEYDB.cfg is the Processing key from aacskeys and I should have put another set of data here instead.
Anyway, I hope that this info will show my mistake.

Thanks, oldwally2.
oldwally2 is offline   Reply With Quote
Old 9th December 2008, 13:19   #20  |  Link
KenD00
Registered User
 
Join Date: Jan 2007
Location: Internet
Posts: 378
If you want to post aacskeys output then don't use the -s switch but the -v switch, the warning message is there for a reason.

Well, i didn't expect that mistake, but using a Processing Key as VUK won't work. You need to have the VUK of the disc. Regarding your BD-Drive you can't get this information with linux alone, you need windows and a licensed software player to get the Volume ID.

In the first post of the DumpHD thread you can find links to a tutorial on how to proceed in your situation, follow the steps outlined there to get the VUK of your disc.

KenD00 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 02:34.


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