Kodi Community Forum

Full Version: [RELEASE] Luemmel's DVD-Ripper (Script) for Linux, Mac, and Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
Windows version let the disc run for a little bit and then tried and it more or less said it was running and then quit.

I know its not on your getting around to doing things with it at the moment just wanted to let you know what I've tried doesn't work at all in windows well at least for me running XP. The dd.exe file does directly, but not through XBMC.
kizer Wrote:Windows version let the disc run for a little bit and then tried and it more or less said it was running and then quit.

I know its not on your getting around to doing things with it at the moment just wanted to let you know what I've tried doesn't work at all in windows well at least for me running XP. The dd.exe file does directly, but not through XBMC.

Normaly this happens if the key to css is not open ....
Let me guess ... Your iso has a size of 5-6 MB and it is finished ....
Did you watch a few secounds of the movie ?
As long the door (css) is closed , the dd process can not copy the dvd.
At the moment you watch the movie , the door (css) is open wide and you can copy the dvd.
Aslong the door is not opened .... dd could not copy the dvd.
Under windows the scheduler service must be running to start the dd process.
Regards
Hans
Hello ;-)

I do work on the network ripping part with netcat ... I would like to test two scripts I working on ...

Later I made them puplic to be tested by a few other geeks :_=

Regards
Hans
Here is the script for the master part

Code:
#!/bin/bash
###########################################################
# scriptname : dvdmaster.sh                               #
###########################################################
#                                                         #
# RELEASE 0.5H luemmels-dvd-ripper                        #
#                                                         #
# This script is part of luemmels-dvd-ripper script for   #
# xbmc and is licenced under the gpl-licence              #
#                                                         #
# http://code.google.com/p/luemmels-dvd-ripper            #
#                                                         #
###########################################################
#                                                         #
# author     : hans weber                                 #
#                                                         #
# parameters :                                            #
#                                                         #
# $1 port for communication                               #
# $2 directory to store the remote-dvd rip                #
#                                                         #
# description :                                           #
# stores a remote ripped dvd iso-image on the local disk  #
###########################################################


# Define the counting commands we expect inside the script

EXPECTED_ARGS=2

# Error-codes

E_BADARGS=1
E_TOOLNOTF=2


OUTPUT_ERROR=~/dvdripper/dvdmaster-error.log

if [ $# -lt $EXPECTED_ARGS ]; then
  echo "Usage: dvdmaster.sh p1 p2"
  echo "                                      "
  echo "[p1] port for netcat to listen"
  echo "[p2] directory for rip"                                    
  echo "                                      "
  echo "dvdmaster.sh was called with wrong arguments" > $OUTPUT_ERROR                        
  exit $E_BADARGS
fi

# Define the commands we will be using inside the script ...

REQUIRED_TOOLS=`cat << EOF
nc
date
EOF`

# Check if all commands are found on your system ...

for REQUIRED_TOOL in ${REQUIRED_TOOLS}
do
   which ${REQUIRED_TOOL} >/dev/null 2>&1    
   if [ $? -eq 1 ]; then
        echo "ERROR! \"${REQUIRED_TOOL}\" is missing. ${0} requires it to operate." > $OUTPUT_ERROR  
        echo "       Please install \"${REQUIRED_TOOL}\"." > $OUTPUT_ERROR  
        exit $E_TOOLNOTF
   fi        
done

cd $2

# Generate a filename based on time

NOW=$(date +"%b-%d-%y-%H-%M")
ISOFILE="ripped-iso-$NOW.iso"
COMMAND="dd of=$2/$ISOFILE"

echo netcat will be startet as server with the following arguments
echo nc -l -p $1 -w 3600 -c "$COMMAND"
nc -l -p $1 -c "$COMMAND"

exit

and here is the slave part
Code:
#!/bin/bash
###########################################################
# scriptname : dvdslave.sh                                #
###########################################################
#                                                         #
# RELEASE 0.5H luemmels-dvd-ripper                        #
#                                                         #
# This script is part of luemmels-dvd-ripper script for   #
# xbmc and is licenced under the gpl-licence              #
#                                                         #
# http://code.google.com/p/luemmels-dvd-ripper            #
#                                                         #
###########################################################
#                                                         #
# author     : hans weber                                 #
#                                                         #
# parameters :                                            #
#                                                         #
# $1 port for communication                               #
# $2 device for ripping                                   #
# $3 ip-adress of remote system where the rip is saved    #
#                                                         #
# description :                                           #
# stores a dvd iso-image on a remote network disk         #
###########################################################


# Define the counting commands we expect inside the script

EXPECTED_ARGS=3

# Error-codes

E_BADARGS=1
E_TOOLNOTF=2


OUTPUT_ERROR=~/dvdripper/dvdslave-error.log

if [ $# -lt $EXPECTED_ARGS ]; then
  echo "Usage: dvdslave.sh p1 p2 p3"
  echo "                                      "
  echo "[p1] port for netcat to listen"
  echo "[p2] dvd-device"          
  echo "[p3] IP-Adress of remote-system"                        
  echo "                                      "
  echo "dvdslave.sh was called with wrong arguments" > $OUTPUT_ERROR                        
  exit $E_BADARGS
fi

# Define the commands we will be using inside the script ...

REQUIRED_TOOLS=`cat << EOF
nc
EOF`

# Check if all commands are found on your system ...

for REQUIRED_TOOL in ${REQUIRED_TOOLS}
do
   which ${REQUIRED_TOOL} >/dev/null 2>&1    
   if [ $? -eq 1 ]; then
        echo "ERROR! \"${REQUIRED_TOOL}\" is missing. ${0} requires it to operate." > $OUTPUT_ERROR  
        echo "       Please install \"${REQUIRED_TOOL}\"." > $OUTPUT_ERROR  
        exit $E_TOOLNOTF
   fi        
done


# Generate a filename based on time


transcode -i $2 -c 1-200 -o /dev/null --export_prof vcd > /dev/null 2>&1


echo netcat will be startet as client with the following arguments
echo nc $3 $1 -q 10 -c "dd if=$2"

nc $3 $1 -q 10 -c "dd if=$2"

exit

Any kind of feedback would be nice ....
At least there is allmost no feedback at all ;-(

Regards hans
Hi Hans...

I just want to thank you for all your work and support... you really do embrace the spirit of open source Smile

It's very much appreciated.

Pete
Pete_London Wrote:Hi Hans...

I just want to thank you for all your work and support... you really do embrace the spirit of open source Smile

It's very much appreciated.

Pete

Hey Paul

Thanks for the roses ;-)

It is a pleasure to help poeple like you ;-)

BTW Has anybody out there tested the 2 scripts above ?
They do work over localhost and should also work over any
network connection ?

Thanks for testing
Hans
Hello to all users of my users ...

There is still a feedback form ....

http://code.google.com/p/luemmels-dvd-ri...i/Feedback

I do still working on 0.5H for linux ....

Regards
Hans

PS :
What about to burning recorded shows to dvd from mythtv Huh?
Are you able to select a drive on the network to rip the disc to as opposed to a local drive?
Rardgerard Wrote:Are you able to select a drive on the network to rip the disc to as opposed to a local drive?

Yes ....

Of course ... You have a few options

1.) make the network drive permament ... make a entry inside fstab

2.) make a little change to my scripts .... do the mount inside the scripts...

The remote filesystem can be allmost anything ....

smb
cif
nfs
fuse

I would prefer 1.) over 2.)

Regards
Hans
I need some help. I read the instructions but still can't figure out how to get this thing working. I'm using Win XP sp3 and I installed the DD.exe.

My problem is installing the script. I put the default.py file in the scripts directory but when I go to the scripts menu I don't see this script to run.

Also, i'm unclear about the value for the DVD ? If my dvd is G: what should I make this value?
poundman Wrote:I need some help. I read the instructions but still can't figure out how to get this thing working. I'm using Win XP sp3 and I installed the DD.exe.

My problem is installing the script. I put the default.py file in the scripts directory but when I go to the scripts menu I don't see this script to run.

Also, i'm unclear about the value for the DVD ? If my dvd is G: what should I make this value?

1.) Weclcome to the xbmc forum :-)

2.) There is a section insde FAQ on http://www.xbmc.org how to install scripts properly

3.) The dd needs to be installed inside C:\Windows\system32

4.) try dd --list to show the values for your dvd-drive

5.) The scheduler-service on windows hase to be running or my script makes nothing

6.) Everey DVD you would like to rip has to be viewed .... a few secounds long.


Regards
Linuxluemmel
hello to all ;-)

Like you see on the screenshoot ... The progress-bar for the rip-process is working


Image


Has someone tested the netcat scripts ?

Regards Hans
Hello ;-

There are some important notes on my script :

- If your Linux-Box automaticly mount inserted dvds disable this behavior.
If the dvd is in use mounted the command dd will not start proberly ....

- As soon the Job could be killed signal -9 over the script I post the new version
0.1C

- Should now running on Mac too ...

CU Hans
Sakero Wrote:Hello ;-

There are some important notes on my script :

- If your Linux-Box automaticly mount inserted dvds disable this behavior.
If the dvd is in use mounted the command dd will not start proberly ....

- As soon the Job could be killed signal -9 over the script I post the new version
0.1C

- Should now running on Mac too ...

CU Hans

Do I guess right you are a MacUser ?
I removed the MacPart since version 0.3

I had none feedback (for Mac) about :

- that dd is working to copy a dvd
- that a mac has ssh client and server
- The dvd-device name for a mac
- The directory-structure about mac
- That a part of the scripts do run on mac (should they run ?)

That's the reason I completly removed the mac-part from the source.


The plue-pill (for linux and windows) has version 0.4G

The red-pill (only for linux) has version 0.5G

Release 0.1C was not more than a concept-study of me. (not even beta)

Regards
Hans
Really really cool program, exactly what i was looking for. Would be super great if you could implement support for blue ray =)
keep up the good work



linuxluemmel Wrote:Well ... so you tested the script with ntsc dvd ... ok expect 0.5C in the next days ...

Well , in the future plans I see that my script could rip blue-ray ... to h264 ...
Native blue ray would need to mutch space .... 10 movies and your hd would be filled ..

But rembember ,,,, my little project that I started at june 2009 ist still beta ....
it is ugly ... it may works ... and in the near future there is may a release far away from beta

Regards
hans
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44