image
image

|


Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old May 6th, 2006, 06:01 AM
ulrik's Avatar
Registered User
 
Join Date: Apr 2001
Location: Germany
Posts: 1,360
Thanks: 0
Thanked 0 Times in 0 Posts
ulrik is on a distinguished road
Command line DVD extraction/decss

Hi all,

I am currently developing an application to manage movie-collections, including features to automatically encode contents into different formats etc.

On of the next features I want to implement is DVD Import. Since I don't have to reinvent the wheel, I am searching a good, stable, proven command line app which removes the CSS protection and region code of a DVD, basically "MacTheRipper" for the command line.

I have searched some time now but can't find anything decent, do any if you know such an application?

any help is greatly appreciated!

best regards

Ulrik
__________________
Ulrik
Reply With Quote
  #2  
Old May 6th, 2006, 08:44 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
micon is on a distinguished road
use dvdbackup

i´m using dvdbackup for this ...

google for it and you can find a dvdbackup.c which you can compile on your mac. (see below how i made it...)

-----------------------------------------------------------------------------------------
* install libdvdread with DarwinPorts

* download dvdbackup.c see --> http://dvd.chevelless230.com/dvdback...up.html.webloc

* build it
gcc -o dvdbackup -I /opt/local/var/db/dports/software/libdvdread/0.9.4_0+libdvdcss/opt/local/include/ -L/opt/local/var/db/dports/software/libdvdread/0.9.4_0+libdvdcss/opt/local/lib/ -ldvdread dvdbackup.c
Reply With Quote
  #3  
Old May 8th, 2006, 09:03 AM
ulrik's Avatar
Registered User
 
Join Date: Apr 2001
Location: Germany
Posts: 1,360
Thanks: 0
Thanked 0 Times in 0 Posts
ulrik is on a distinguished road
thanx, that did the trick

now I am facing a different "problem". I seem to be unable to find a way to start the DVD Player from the shell with the parameter to open a DVD saved on disk.
/usr/bin/open doesn't work, and I see no way of launching the DVD Player.app directly via a shell command AND provide it with a file. Am I right in assuming that this is not possible?

on another node: where is the configuration for the open command? I'd like to parse it to check for default media players...
__________________
Ulrik
Reply With Quote
  #4  
Old May 8th, 2006, 09:06 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
micon is on a distinguished road
then use the VLC player (see http://www.videolan.org/ )
besides this is the better DVD Player ;-) ...
Reply With Quote
  #5  
Old May 8th, 2006, 11:21 AM
ulrik's Avatar
Registered User
 
Join Date: Apr 2001
Location: Germany
Posts: 1,360
Thanks: 0
Thanked 0 Times in 0 Posts
ulrik is on a distinguished road
I am using the VLC player But I want the User to be able to also use different players. Currently, it is possible to define a Player for each Format, while the standard config is to let "open" handle it.

But I fixed the problem. It was a problem in the path-escape-function. When I called
/usr/bin/open /tmp/te\ st.mp4

it didn't work (worked from within terminal, as did "/usr/bin/open '/tmp/te st.mp4'. I finally got everything working by calling this from within my application:

/usr/bin/open file:/tmp/te%20st.mp4

treating it as an URL. that did the trick
__________________
Ulrik
Reply With Quote
  #6  
Old June 24th, 2008, 01:37 PM
Registered User
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
jeepers58 is on a distinguished road
Hi Everyone,

I followed Micon's directions to build dvdbackup on my Powerbook 10.4.x. While his directions were spot on, I had problems using the MacPort libdvdread and libdvdcds libs. ld complained the symbols table was missing a link(s). I'm not saying there is something wrong with the Macport libs, it might be my setup. My solution was to try the FINK dvdread and dvdcss libraries. After installing the libraries the dvdbackup.c compiled without a hitch 1st time. Once again I am not faulting the Macport libs, perhaps it was something stupid like a syntax error on my part or something more involved. If you have similar issues try using FINK libs.

Rather than rip then burn a new DVD for a backup, my personal perference is to create an iso image and store it on my home fileserver. I prefer the iso image because it is only one file to manage. mkisofs is a great tool for this purpose. While it is not bundled on Tiger, (I don't know about Leopard) , it is bundled with DVD imager pkg. If you download and mount the DVD imager pkg you can copy just the mkisofs binary from the pkg and install it on your system.

Once dvdbackup has pulled the data off the DVD. I cd to the directory where the newly copied VIDEO_TS is located on your hard drive and execute mkisofs
"mkisofs -dvd-video -o /var/tmp/dvd_name.iso ." On my computer (1.67GHZ powerpc) it will take a couple of hours to create the image, once it is done I mount the iso image "hdid /var/tmp/dvd_name.iso" and then play a little bit of the DVD and jump to a couple of chapters to see if things work OK. If the image passes inspection then it is moved to the fileserver.

If the DVD does not have DeCSS then follow the directions from the link below.
http://www.slashdotdash.net/articles...s-x-tiger-10-4

While I can mount the iso image from the fileserver I have yet to get it to play smoothly using VLC. The problem may be the fact I am using a wireless 802.11g connection to try and stream the content. For now I simply copy the image back to the laptop and then play it from the local drive.
Reply With Quote
Reply

Thread Tools

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line ftp? Mac Osxtopus Unix & X11 5 August 27th, 2002 08:55 AM
Defrag with Command Line? smilinggoat Mac OS X System & Mac Software 2 June 20th, 2002 02:33 PM
Command Line? unlearnthetruth Mac OS X System & Mac Software 4 February 20th, 2002 01:33 AM
command line->GUI? macavenger Software Programming & Web Scripting 1 January 27th, 2002 04:43 PM
Command line executables..? jmmistrot Software Programming & Web Scripting 3 October 12th, 2001 02:19 PM


All times are GMT -5. The time now is 07:29 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.