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
linuxluemmel Wrote:My plugin does calculate the size of the rip.
Doe remove the part that calculate the size and it should run

Yes ... With the part that removes css from the iso I have a little problem.
If you would use this modified script inside france ... it would be illegal.

The right corrections to the shell-script follows ....
Regards
Hans

This correction would work correct. ( But I still have a little problem with removing css)


Code:
cd $2

# Now we rip the dvd

# rip the vob without CSS on my hardrive:
vobcopy -m -o $2/ISO > ~/dvdripper/dvdimport-output.log 2> ~/dvdripper/dvdimport-error.log
RETVAL1=$?

#rebuild an .iso image without css encryption:
mkisofs -dvd-video -o $2/$3 $2/ISO/* > ~/dvdripper/dvdimport-output.log 2> ~/dvdripper/dvdimport-error.log
RETVAL2=$?

rm -Rf $2/ISO/*
# Now it is time to check if all is done without a error



# We are finishd with the ripping ...
# Therefore we deleting the ripper-flag-files
# if the above dd command exit with error-code 0

rm ~/RIPPING_STARTET
rm ~/RIPPING_FILE


# Ok we have error with dd
#I ve commented this part for the moment as i don't know how to adapt it to my ripping process.

if [ $RETVAL1 -nq 0 ] ; then
    touch > ~/RIPPING_ERROR
    echo there was error by ripping $1 >> ~/RIPPING_ERROR
    echo vobcopy error code was $RETVAL1 >> ~/RIPPING_ERROR
    echo See the the log-files inside $2 >> ~/RIPPING_ERROR

    cp ~/RIPPING_ERROR ~/dvdripper/ripping_error
    exit 1
fi

if [ $RETVAL2 -nq 0 ] ; then
    touch > ~/RIPPING_ERROR
    echo there was error by ripping $1 >> ~/RIPPING_ERROR
    echo mkisofs error code was $RETVAL2 >> ~/RIPPING_ERROR
    echo See the the log-files inside $2 >> ~/RIPPING_ERROR

    cp ~/RIPPING_ERROR ~/dvdripper/ripping_error
    exit 1
fi


exit
Thanks for the tip. Will try this after work.

I just gave a look in the python sdcript to remove the size size and DD pid check. The script is huge i will investigate on this part later.

About the illegality concern, as soon as I changed the scripts myself, that wouldn't involve you in anything.
Removing css encryption could be illegal in France yes, but there's a kind of tolerance concerning why you remove it. On my side it's just to allow playing my backup with the software of my choice.

I've decided to cross the line. Smile

Cheers.

.
hotlobster Wrote:Thanks for the tip. Will try this after work.

I just gave a look in the python sdcript to remove the size size and DD pid check. The script is huge i will investigate on this part later.

About the illegality concern, as soon as I changed the scripts myself, that wouldn't involve you in anything.
Removing css encryption could be illegal in France yes, but there's a kind of tolerance concerning why you remove it. On my side it's just to allow playing my backup with the software of my choice.

I've decided to cross the line. Smile

Cheers.

.


Here is the my code to check if dd is running ...

Code:
# We need a pid of the above process ... otherwise we could not kill the process :)

        complet_command = "ps -axu |grep ' dd ' |grep -v grep |awk '{print $2}' >" +  directory + "/PID"    
        status = os.system("%s" % (complet_command))

Modified code to look for vobcopy

Code:
# We need a pid of the above process ... otherwise we could not kill the process :)

        complet_command = "ps -axu |grep ' vobcopy ' |grep -v grep |awk '{print $2}' >" +  directory + "/PID"    
        status = os.system("%s" % (complet_command))

It's inside the function execute ......
Regrards
Hans
You're too fast, will test this tonight.

You're my lord. ^^

Cheers.

Edit: Tested, and it works as a charm like this.
Hey guys I need some help. I can't get the SSH to work without a password. My user name is 'xbmc'. I followed the instructions on the wiki for the script but when I try
$ssh xbmc@localhost
it still asks me for a password. I am running Karmic and I am wondering if that makes a difference at all. Thank you for your time and help in advance.

-Will
Man I am getting frustrated. I have tried everything that I can find to get this passwordless ssh thing working and I am still stuck. I tried everything in this guidehttp://www.debian-administration.org/articles/152 but it still doesn't work. Not sure what to do.

-Will
Bahndit Wrote:Man I am getting frustrated. I have tried everything that I can find to get this passwordless ssh thing working and I am still stuck. I tried everything in this guidehttp://www.debian-administration.org/articles/152 but it still doesn't work. Not sure what to do.

-Will

Hello Will

You said you user-name of your linux-system is xbmc.
I try to help you to find the problem.

1.) Login as user xbmc with your password and prefered interface (gnome,kde,xface)
2.) Open a terminal
3.) command to execute : whoami
4.) The return value should be xbmc
5.) The next step is to install openssh-server and openssh-client
6.) command to execute : sudo apt-get install openssh-client openssh-server
7.) you have to give the password of your user (xbmc) to complete the command
8.) By now we could login over ssh with password ....
9.) ssh xbmc@localhost
10.) SSH is now asking for the password ... If you type in the correct password you are now connected over ssh.
11.) type exit to close the ssh-connection -> your are now again inside the terminal from
point 2.)

12.) Preparing the account to login over ssh without a password

13.) command to execute : ssh-keygen -t rsa

Warning :
This command is now asking for a password .... do not input any password.
Leave it blank .....


14.) command to execute : ssh-copy-id -i ~/.ssh/id_rsa.pub xbmc@localhost

Warning :
This command will ask for the password of the user xbmc.
Give in the password.

15.) After this command is successfull executed it is not longer needet to give any password over ssh for user xbmc@localhost


16.) command to execute : ssh xbmc@localhost

This command should direct make a login as user xbmc over ssh without any password
confirmation,


17.) I hope it works now for you .... Big Grin

Regards from switzerland
Hans
Hello to all users of my scripts :-)

I do allready work on the release 0.6C for Linux.

- I try to integrate the streaming part over vlc (unicast and multicast)
- native AC3 sound inside transcoding
- Improved Handling of the script
- I try to integrate a function to burn recordings from my mythtv backend
to dvd. IMHO I dont like to start mythbackend only to burn a recorded
show.
- replacement icon for Release 9.11 of xbmc. (it looks hoorible with beta 2 9.11)


And the most wanted feature of all :-)

I do work on the blue-ray part ....... I have a blue-ray drive now :-)

* Do not expect a full iso rip of a blue-ray .. the rip will be made to h264

I will inform about my progress.

Best regards from switzerland
Hans
can someone make a script to install Luemmel's DVD-Ripper (Script) for linux and all of its dependencies and setup
Hi Linuxluemmel

I had an error in the python script with some dvd.

While using Confirmed Transcode, dvd-red ends up with script error just after selecting the encoding directory with this log:

Quote:18:13:34 T:2725862256 M:1243856896 NOTICE: input /home/xbmc/Storage/Downloads/Lettherightonein.iso
18:13:34 T:2725862256 M:1243856896 NOTICE: transcoding directory /home/xbmc/Storage/Downloads
18:13:34 T:2725862256 M:1244274688 NOTICE: Traceback (most recent call last):
18:13:34 T:2725862256 M:1244274688 NOTICE: File "/home/xbmc/.xbmc/scripts/My Scripts/dvd-red/default.py", line 2433, in ?
18:13:34 T:2725862256 M:1244418048 NOTICE: mydisplay = MainClass()
18:13:34 T:2725862256 M:1244418048 NOTICE: File "/home/xbmc/.xbmc/scripts/My Scripts/dvd-red/default.py", line 1757, in __init__
18:13:34 T:2725862256 M:1244418048 NOTICE: do_transcode(True)
18:13:34 T:2725862256 M:1244418048 NOTICE: File "/home/xbmc/.xbmc/scripts/My Scripts/dvd-red/default.py", line 1047, in do_transcode
18:13:34 T:2725862256 M:1244418048 NOTICE: file_video = open((os.getenv("HOME") + '/lsdvd-out'),'r')
18:13:34 T:2725862256 M:1244418048 NOTICE: IOError
18:13:34 T:2725862256 M:1244418048 NOTICE: :
18:13:34 T:2725862256 M:1244418048 NOTICE: [Errno 0] Error: '/home/xbmc/lsdvd-out'
18:13:34 T:2725862256 M:1244418048 ERROR: Scriptresult: Error

lsdvd-out have this inside:

Quote:Title: 01, Length: 01:49:53.170 Chapters: 09, Cells: 09, Audio streams: 03, Subpictures: 02
Title: 02, Length: 00:00:00.180 Chapters: 02, Cells: 02, Audio streams: 03, Subpictures: 02
Title: 03, Length: 00:00:00.180 Chapters: 02, Cells: 02, Audio streams: 03, Subpictures: 02
Title: 04, Length: 00:00:00.180 Chapters: 02, Cells: 02, Audio streams: 03, Subpictures: 01
Title: 05, Length: 00:00:02.010 Chapters: 05, Cells: 05, Audio streams: 03, Subpictures: 01
Title: 06, Length: 00:00:00.180 Chapters: 02, Cells: 02, Audio streams: 03, Subpictures: 02

And here is the structure of the iso:

Quote:+ title 1:
+ vts 1, ttn 1, cells 0->8 (2275230 blocks)
+ angle(s) 1
+ duration: 01:49:53
+ size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 25.000 fps
+ autocrop: 70/72/0/0
+ chapters:
+ 1: cells 0->0, 215298 blocks, duration 00:10:54
+ 2: cells 1->1, 380405 blocks, duration 00:18:03
+ 3: cells 2->2, 206356 blocks, duration 00:09:37
+ 4: cells 3->3, 233587 blocks, duration 00:11:04
+ 5: cells 4->4, 263953 blocks, duration 00:12:52
+ 6: cells 5->5, 269153 blocks, duration 00:12:21
+ 7: cells 6->6, 262688 blocks, duration 00:13:25
+ 8: cells 7->7, 443785 blocks, duration 00:21:36
+ 9: cells 8->8, 5 blocks, duration 00:00:00
+ audio tracks:
+ 1, Svenska (AC3) (5.1 ch) (iso639-2: swe), 48000Hz, 448000bps
+ subtitle tracks:
+ 1, Nederlands (iso639-2: nld) (Bitmap)
+ 2, Francais (iso639-2: fra) (Bitmap)


EDIT: Forget it. After restarting XBMC it works again. Strange.
I am having a hard time with this, I install the folder blue-pill in the scripts folder and I still cannot get it to execute, maybe I am missing something?
theprogramguy Wrote:I am having a hard time with this, I install the folder blue-pill in the scripts folder and I still cannot get it to execute, maybe I am missing something?

Sorry ,, I can not help

- Welcome to the forum
- no system information provided
- no log-file
- Have you read the readme on the project site ? http://code.google.com/p/luemmels-dvd-ri...BluePill6B

CU Hans
theprogramguy Wrote:I am having a hard time with this, I install the folder blue-pill in the scripts folder and I still cannot get it to execute, maybe I am missing something?

If you are using Windows, perhaps you put it in the scripts folder under "C:\Program Files\XBMC\Scripts"? If so, it should be under "C:\Documents and Settings\{User Name}\Application Data\XBMC\scripts" instead. Just replace {User Name} with the currently logged in user name.
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