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:Could you please provide a little bit more information ?

Is your system 32 or 64 ? (Ubuntu ... I guess)
Could you turn on verbose log of the sshd ?
Kernel-Release (self compiled or distro-kernel)
What version of xbmc are you using ... ?
(downloaded or self compiled or svn-release)
As stated in my signature:
XBMCLive - which actually is Ubuntu Karmic
Kernel-Release - distro kernel
XBMC version - 9.11 final

Quote:Have you looked on this

https://bugs.launchpad.net/ubuntu/+sourc...bug/332198

Regards
Hans alias Jon

Nope, haven't looked at your link. Now I have... Wink
It reffers to ask-keypass-gnome I don't even have gnome installed, just ask-keypass.

I'll try if I can put the openssh daemon or ask-keypass into verbose mode.
What else is different between launching it from console or XBMC.
http://luemmels-dvd-ripper.googlecode.co.../livecd.sh


This release 3 downloads the script automatic from the project-side .....


inside a terminal do ....

wget http://luemmels-dvd-ripper.googlecode.co.../livecd.sh
chmod 777 livecd.sh
Hi Hans. I went over to the wiki page for your plugin (http://code.google.com/p/luemmels-dvd-ri.../RedPill6B) and saw the list of required software for the redpill. I'm a linux n00b and just got my first linux machine today (ASRock 330HT) and using an Ubuntu minimal install (Karmic).

Is the quickest way to install all the required software to install the Medibuntu repository? Will that include everything I need to rip DVDs and transcoding?
adave Wrote:Hi Hans. I went over to the wiki page for your plugin (http://code.google.com/p/luemmels-dvd-ri.../RedPill6B) and saw the list of required software for the redpill. I'm a linux n00b and just got my first linux machine today (ASRock 330HT) and using an Ubuntu minimal install (Karmic).

Is the quickest way to install all the required software to install the Medibuntu repository? Will that include everything I need to rip DVDs and transcoding?

Download the installer script and it shoudl run fine ... and install all needed
software

CU Hans
Would it be possible with your dvd ripper to simply copy the VIDEO_TS folder to a new folder titled with the movie title?
So Batman Begins dvd will be saved to:
D:\Movies\Batman Begins
and this folder will contain Video_TS

Reason I ask: I never understood why people want ISO rips. It's slower (especially over the network) then simple VIDEO_TS rip.
zilexa Wrote:Would it be possible with your dvd ripper to simply copy the VIDEO_TS folder to a new folder titled with the movie title?
So Batman Begins dvd will be saved to:
D:\Movies\Batman Begins
and this folder will contain Video_TS

Reason I ask: I never understood why people want ISO rips. It's slower (especially over the network) then simple VIDEO_TS rip.

I for one like iso ... ( I own 32 DVD's)
I see If you own a few hundreds dvd's, this is may not
the best format to copy ...

And yes, I know there are a lot of dvd's that dd can not copy (bad sectors and others)
But transcoding to mpeg2 or h264 should work anyway ...

I found a solution to copy problematic dvd's

the old way to copy the dvd inside my scripts (0.6B) is like the following ...

lsdvd -a && dd if=/dev/sr0 of=/dvdripp/name-of-dvd.iso


In the next Release of the script (0.6C) I would like to copy the dvd with
the following command.

lsdvd -a && ddrescue -n -v -b2048 /dev/sr0 /dvdripp/name-of-dvd.iso

I guess with the above command some of the problematic dvd's with bad sectors and other nice copy protection features can be ripped to a iso.

To install the command do the following ...

sudo apt-get install gddrescue

If a lot of users of my scipt could confirm that a lot of problem dvd's
could be ripped this way I would change it inside the release 0.6C

Regards
Hans
Hans! First off I want to say thanks so much for the time and effort you have put in to help the XBMC community! I am new to linux, I just built a box with ubuntu 9.11 and install xbmc. Now I am installing your script but I have a few problems. For one I think I have all the software installed but im not sure, im having a hard time finding volname and wkisofs. The script is installed correctly and shows up fine in xbmc, under tools in your script I ran the software checker and everything said "ok" but when I go to transcode dvd it says cannot write to location or something similar. I am pretty sure I set the permissions on my /dvdrip folder to read and write though. Please can you help me work through this problem thanks.
amngaff Wrote:Hans! First off I want to say thanks so much for the time and effort you have put in to help the XBMC community! I am new to linux, I just built a box with ubuntu 9.11 and install xbmc. Now I am installing your script but I have a few problems. For one I think I have all the software installed but im not sure, im having a hard time finding volname and wkisofs. The script is installed correctly and shows up fine in xbmc, under tools in your script I ran the software checker and everything said "ok" but when I go to transcode dvd it says cannot write to location or something similar. I am pretty sure I set the permissions on my /dvdrip folder to read and write though. Please can you help me work through this problem thanks.

Inside the settings is the right directory selected ?
Where is your dvd-ripping directory ?
What is the login-name of you ?

Please provide as example the following :

ls -al /dvdripp

Regards
Hans
Im not sure what ls -a /dvdrip means but here goes:

XBMC Settings - Rip and Transcode Directory: home/stingray/Videos/dvdrip

Dvdripper directory: home/stingray/dvdripper (do i need to have a "-" in dvdripper- so it would look like this dvd-ripper?)

login name: stingray

stingray@StingRay:~$ ls -al /dvdripp
ls: cannot access /dvdripp: No such file or directory
haha never mind I just figured it out and successfully ripped and iso and transcoded a dvd through the terminal!! The iso was 4gb and the mpeg4 was right around 4gb. is there anyway I can set a size limit on these so it will rip to be around 1 or 2 gb? Also im just curious on how the blueray is coming along. THANKS HANS!!!
amngaff Wrote:haha never mind I just figured it out and successfully ripped and iso and transcoded a dvd through the terminal!! The iso was 4gb and the mpeg4 was right around 4gb. is there anyway I can set a size limit on these so it will rip to be around 1 or 2 gb? Also im just curious on how the blueray is coming along. THANKS HANS!!!

Ok ... You're weclome ....


I do still work on the support for bluray ...
But there is one thing .... the best solution would be to integrate mkmv inside my script , but mkmv is not a open source software .
and for this reason I can not integrate mkmv inside my scipt

In the mean time I do work on the release 0.6C. This Release will be puplished soon ...

- Adaptable quality factor for handbrake
- dd will be replaced with ddrescue
- A few adaptions to the shell-scripts
- AC3 sound for Transcoding
- Improved ripping over the network

Regards
Hans
Wow, sounds interesting! But I'd prefer to choose WinX DVD Ripper for Mac i have found recently, easy to use and the publisher is giving away the new edition, a big money saving Smile
linuxluemmel Wrote:Ok ... You're weclome ....


I do still work on the support for bluray ...
But there is one thing .... the best solution would be to integrate mkmv inside my script , but mkmv is not a open source software .
and for this reason I can not integrate mkmv inside my scipt

Regards
Hans

Hi Hans. Thanks for your continued hard work on this script. I wanted to add a little bit of insight around the bluray ripping and MakeMKV. Since MakeMKV is not open source, is there a way you can add it as an optional feature for a user who has purchased a license of MakeMKV? For example, the bluray playing plugin by magnetism (http://forum.xbmc.org/showthread.php?tid=67420) works in a similar way. The user has to map the makemkvcon command file from within the plugin and that's the only way the plugin will work. If you don't have MakeMKV installed, the plugin will not work for the user.

This way you only allow bluray ripping as an optional feature for people who go out and purchase the MakeMKV software. For users who don't want to buy it, they can continue ripping DVDs with your script. Any thoughts?
I´m having a hard time getting this to work.
installed with livecd.sh and i´ve read everything i could find about installing it.
At the most i got it to transcode 128mb? No progressbar or nothing appears, just returns to mainmenu?
Help please.
If i could get this to work it would be a perfect for me =).

Code:
HandBrake 0.9.3 (2008112300) - http://handbrake.fr/
4 CPUs detected
Opening /dev/sr0...
Scanning title 2...
Scanning title 2...
+ title 2:
  + vts 1, ttn 2, cells 0->19 (3402304 blocks)
  + duration: 01:51:35
  + size: 720x576, aspect: 1.78, 25.000 fps
  + autocrop: 0/0/2/2
  + chapters:
    + 1: cells 0->0, 104216 blocks, duration 00:03:28
    + 2: cells 1->1, 83080 blocks, duration 00:02:44
    + 3: cells 2->2, 286908 blocks, duration 00:09:08
    + 4: cells 3->3, 79438 blocks, duration 00:02:34
    + 5: cells 4->4, 133420 blocks, duration 00:04:19
    + 6: cells 5->5, 167609 blocks, duration 00:05:26
    + 7: cells 6->6, 115328 blocks, duration 00:03:44
    + 8: cells 7->7, 192158 blocks, duration 00:06:16
    + 9: cells 8->8, 175062 blocks, duration 00:05:42
    + 10: cells 9->9, 246288 blocks, duration 00:08:21
    + 11: cells 10->10, 109918 blocks, duration 00:03:44
    + 12: cells 11->11, 90570 blocks, duration 00:03:03
    + 13: cells 12->12, 153558 blocks, duration 00:04:59
    + 14: cells 13->13, 158568 blocks, duration 00:05:23
    + 15: cells 14->14, 338678 blocks, duration 00:11:06
    + 16: cells 15->15, 111935 blocks, duration 00:03:36
    + 17: cells 16->16, 342100 blocks, duration 00:11:11
    + 18: cells 17->17, 291233 blocks, duration 00:09:33
    + 19: cells 18->18, 68163 blocks, duration 00:02:12
    + 20: cells 19->19, 154074 blocks, duration 00:05:05
  + audio tracks:
    + 1, English (AC3) (5.1 ch), 48000Hz, 448000bps
    + 2, Francais (AC3) (2.0 ch), 48000Hz, 192000bps
    + 3, Deutsch (AC3) (2.0 ch), 48000Hz, 192000bps
    + 4, Italiano (AC3) (2.0 ch), 48000Hz, 192000bps
    + 5, Espanol (AC3) (2.0 ch), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng)
    + 2, English (iso639-2: eng)
    + 3, Slovenian (iso639-2: slv)
    + 4, Francais (iso639-2: fra)
    + 5, Deutsch (iso639-2: deu)
    + 6, Svenska (iso639-2: swe)
    + 7, Dansk (iso639-2: dan)
    + 8, Norsk (iso639-2: nor)
    + 9, Suomi (iso639-2: fin)
    + 10, Nederlands (iso639-2: nld)
    + 11, Bulgarian (iso639-2: bul)
    + 12, Islenska (iso639-2: isl)
    + 13, Portugues (iso639-2: por)
    + 14, Unknown (iso639-2: und)
    + 15, Greek, Modern (iso639-2: ell)
    + 16, Hrvatski (iso639-2: hrv)
    + 17, Arabic (iso639-2: ara)
    + 18, Turkish (iso639-2: tur)
    + 19, Polish (iso639-2: pol)
    + 20, Italiano (iso639-2: ita)
    + 21, Espanol (iso639-2: spa)
    + 22, Romanian (iso639-2: ron)
    + 23, Czech (iso639-2: ces)
    + 24, Magyar (iso639-2: hun)
No accelerated IMDCT transform found
ERROR: dvd: DVDReadBlocks failed (72633), skipping to vobu 72665
ERROR: dvd: DVDReadBlocks failed (104217), skipping to vobu 104421
ERROR: dvd: DVDReadBlocks failed (187297), skipping to vobu 187493
ERROR: dvd: DVDReadBlocks failed (474205), skipping to vobu 474388
ERROR: dvd: DVDReadBlocks failed (474389), skipping to vobu 474644
ERROR: dvd: DVDReadBlocks failed (474645), skipping to vobu 474853
ERROR: dvd: DVDReadBlocks failed (553643), skipping to vobu 553896
ERROR: dvd: DVDReadBlocks failed (553897), skipping to vobu 554151
ERROR: dvd: DVDReadBlocks failed (687063), skipping to vobu 687323
ERROR: dvd: DVDReadBlocks failed (2546735), skipping to vobu 2546934
ERROR: dvd: DVDReadBlocks failed (2546935), skipping to vobu 2547198
ERROR: dvd: DVDReadBlocks failed (2547199), skipping to vobu 2547436
ERROR: dvd: DVDReadBlocks failed (2547437), skipping to vobu 2547678
ERROR: dvd: DVDReadBlocks failed (2547679), skipping to vobu 2547922
ERROR: dvd: DVDReadBlocks failed (2547923), skipping to vobu 2548292
ERROR: dvd: DVDReadBlocks failed (2548293), skipping to vobu 2548544
ERROR: dvd: DVDReadBlocks failed (2548545), skipping to vobu 2548776
ERROR: dvd: DVDReadBlocks failed (2548777), skipping to vobu 2549008
ERROR: dvd: DVDReadBlocks failed (2549009), skipping to vobu 2549249
ERROR: dvd: DVDReadBlocks failed (2888835), skipping to vobu 2889030
ERROR: dvd: DVDReadBlocks failed (2889031), skipping to vobu 2889287
ERROR: dvd: DVDReadBlocks failed (3382931), skipping to vobu 3383170
ERROR: dvd: DVDReadBlocks failed (3401899), skipping to vobu 16777217

Rip done!
HandBrake has exited.
Hi Hans. I'm trying to get your script up and running on my new asrock 330 running minimal ubuntu. I followed all of the steps you described in your wiki but am still having trouble launching the script. here is the section from the xbmc log

13:58:28 T:2768833392 M:1644371968 NOTICE: -->Python Interpreter Initialized<--
13:58:28 T:2768833392 M:1644371968 DEBUG: Process - The source file to load is special://home/scripts/My Scripts/dvd-red/default.py
13:58:28 T:2768833392 M:1644371968 DEBUG: Process - Setting the Python path to /home/orion/.xbmc/scripts/My Scripts/dvd-red:/usr/share/xbmc/system/python/python24.zip:/usr/share/xbmc/system/python/lib/python24.zip:/usr/share/xbmc/system/python/lib/python2.4/:/usr/share/xbmc/system/python/lib/python2.4/plat-linux2:/usr/share/xbmc/system/python/lib/python2.4/lib-tk:/usr/share/xbmc/system/python/lib/python2.4/lib-dynload
13:58:28 T:2768833392 M:1644371968 DEBUG: Process - Entering source directory /home/orion/.xbmc/scripts/My Scripts/dvd-red
13:58:28 T:2768833392 M:1644371968 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/time.so. flags: 2
13:58:28 T:2768833392 M:1644498944 DEBUG: Loading: /home/orion/.xbmc/temp/time.so
13:58:28 T:2768833392 M:1644498944 DEBUG: RegisterExtensionLib, adding time.so (0x9de3588)
13:58:28 T:2768833392 M:1644498944 DEBUG: xbp_dlsym - load symbol inittime
13:58:29 T:2768833392 M:1644490752 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/strop.so. flags: 2
13:58:29 T:2768833392 M:1644490752 DEBUG: Loading: /home/orion/.xbmc/temp/strop.so
13:58:29 T:2768833392 M:1644490752 DEBUG: RegisterExtensionLib, adding strop.so (0xaa291e60)
13:58:29 T:2768833392 M:1644490752 DEBUG: xbp_dlsym - load symbol initstrop
13:58:29 T:2768833392 M:1644490752 NOTICE: ------------------------------------------------------------
13:58:29 T:2768833392 M:1644490752 NOTICE: dvd-red RC-1 Version: 0.6B Date: 10-29-2009
13:58:29 T:2768833392 M:1644490752 NOTICE: ------------------------------------------------------------
13:58:29 T:2768833392 M:1644490752 NOTICE: xbmc language selected : english
13:58:29 T:2768833392 M: 0 NOTICE: path to strings.xml : /home/orion/.xbmc/scripts/My Scripts/dvd-red/resources/language/english
13:58:29 T:2768833392 M:1644490752 NOTICE: path to settings : /home/orion/.xbmc/scripts/My Scripts/dvd-red/config/settings
13:58:29 T:2768833392 M:1644490752 NOTICE: path to ssh-scripts : /home/orion/.xbmc/scripts/My Scripts/dvd-red/ssh/
13:58:29 T:2768833392 M:1644490752 NOTICE: PRE-10.5 r28256
13:58:29 T:2768833392 M:1644490752 NOTICE: eula was accepted
13:58:29 T:2768833392 M:1644490752 NOTICE: this script will use this default settings :
13:58:29 T:2768833392 M:1644490752 NOTICE: default dvd-device:[/dev/sr0]
13:58:29 T:2768833392 M:1644490752 NOTICE: default rip-directory:[/home/orion/dvdripper]
13:58:29 T:2768833392 M:1644490752 NOTICE: default transcode-dir:[/home/orion/dvdripper]
13:58:29 T:2768833392 M:1644490752 NOTICE: default ssh-command:[ssh user@localhost]
13:58:29 T:2768833392 M:1644490752 NOTICE: default audio-1:[en]
13:58:29 T:2768833392 M:1644490752 NOTICE: default audio-2:[none]
13:58:29 T:2768833392 M:1644490752 NOTICE: default subtitle:[none]
13:58:29 T:2768833392 M:1644490752 NOTICE: default transcode:[3]
13:58:29 T:2768833392 M:1644490752 NOTICE: default size single-layer dvd:[4706074624]
13:58:29 T:2768833392 M:1644490752 NOTICE: default startport for netcat communication (6 ports are used) :[4000]
13:58:29 T:2768833392 M:1644490752 INFO: Loading skin file: DialogSelect.xml
13:58:29 T:2768833392 M:1644490752 DEBUG: Load DialogSelect.xml: 37.27ms
13:58:29 T:3061102480 M:1644490752 DEBUG: ------ Window Init (DialogSelect.xml) ------
13:58:29 T:3061102480 M:1644490752 DEBUG: Alloc resources: 0.01ms (0.01 ms skin load)
13:58:31 T:3061102480 M:1639919616 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0
13:58:31 T:3061102480 M:1639919616 DEBUG: OnKey: 61480 pressed, action is Down
13:58:31 T:3061102480 M:1639919616 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0
13:58:31 T:3061102480 M:1639919616 DEBUG: OnKey: 61480 pressed, action is Down
13:58:31 T:3061102480 M:1639919616 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0
13:58:31 T:3061102480 M:1639919616 DEBUG: OnKey: 61480 pressed, action is Down
13:58:31 T:3061102480 M:1639919616 DEBUG: SDLKeyboard: scancode: 111, sym: 273, unicode: 0, modifier: 0
13:58:31 T:3061102480 M:1639919616 DEBUG: OnKey: 61478 pressed, action is Up
13:58:32 T:3061102480 M:1639919616 DEBUG: SDLKeyboard: scancode: 111, sym: 273, unicode: 0, modifier: 0
13:58:32 T:3061102480 M:1639919616 DEBUG: OnKey: 61478 pressed, action is Up
13:58:32 T:3061102480 M:1639919616 DEBUG: SDLKeyboard: scancode: 111, sym: 273, unicode: 0, modifier: 0
13:58:32 T:3061102480 M:1639919616 DEBUG: OnKey: 61478 pressed, action is Up
13:58:33 T:3061102480 M:1639931904 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0
13:58:33 T:3061102480 M:1639931904 DEBUG: OnKey: 61480 pressed, action is Down
13:58:33 T:3061102480 M:1639931904 DEBUG: SDLKeyboard: scancode: 36, sym: 13, unicode: 13, modifier: 0
13:58:33 T:3061102480 M:1639931904 DEBUG: OnKey: 61453 pressed, action is Select
13:58:34 T:3061102480 M:1639931904 DEBUG: ------ Window Deinit (DialogSelect.xml) ------
13:58:34 T:2768833392 M:1644249088 NOTICE: menu ripping default selected
13:58:34 T:2768833392 M:1644249088 NOTICE: a dd process is runnig
13:58:34 T:2768833392 M:1644249088 INFO: -->Python script returned the following error<--
13:58:34 T:2768833392 M:1644249088 ERROR: Error Type: exceptions.ValueError
13:58:34 T:2768833392 M:1644249088 ERROR: Error Contents: invalid literal for int():
13:58:34 T:2768833392 M:1644253184 ERROR: Traceback (most recent call last):
File "/home/orion/.xbmc/scripts/My Scripts/dvd-red/default.py", line 2424, in ?
mydisplay = MainClass()
File "/home/orion/.xbmc/scripts/My Scripts/dvd-red/default.py", line 1581, in __init__
size_of_rip = int(f.readline())
ValueError: invalid literal for int():
13:58:34 T:2768833392 M:1644253184 INFO: -->End of Python script error report<--
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