Luemmel's DVD-Ripper Script - Python Development Discussion (Linux, Mac, and Windows)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Information  Luemmel's DVD-Ripper Script - Python Development Discussion (Linux, Mac, and Windows)
Post: #1
Hello to all Smile

I'm a XBMC user since last week and for some good reasons I will produce in the near future a few scripts...

My first script for XBMC I created:

1.) DVD.PY

With my old ugly GUI, the MythTV frontend, I had the possibility to rip a DVD-Video to to my harddrive,. but since I moved to XBMC as my new frontend I want the same functions like in the old MythTV frontend.

Pro:
- ask at starting where to store the dvd
- ask at starting witch device should be used
- ask for the filename inlcuding the extension iso
- the script don't use libdvdcss anyway .... it uses dd for copy
- the iso copy plays perfectly inside xbmc (add a source)

Contra:
- German Language ... (look inside the script ... easy to change)
- Runs only on linux
- Have no progress bar (will come later)
- It is a Alpha version
- It is my first xbmc script
- Relies on the dd command to read disk sectors and dd does not come with Windows

[EDIT]:
Luemmel's DVD-Ripper has a new home, you can download and get updates here:
http://code.google.com/p/luemmels-dvd-ripper/

With the best greetings from Switzerland

Regards / Hans
(This post was last modified: 2009-06-10 15:53 by Gamester17.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #2
if you change the default rip-directory in dvd.py

# Directory where to store rips
dvd_dir = '/dvdrip'

to something other like

dvd_dir = '/home/user/dvdrip'


then you should also change the line :

complet_command = command + '> /dvdrip/dvdimport.log &'

to your new settings
complet_command = command + '> /home/user/dvdrip/dvdimport.log &'

CU Hans
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #3
Code removed by linuxluemmel
(This post was last modified: 2009-06-14 23:12 by linuxluemmel.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #4
Hello Fellows ;-)

Could somebody with a MacOS X and XBMC 9.04 try to change
the line .

sys.platform.startswith('linux')

to

sys.platform.startswith('darwin')

and try to run the script ?

I dont have a MacOS-X to test ....

If this would working I would make the changes to the script .... Big Grin

With the best greeting from switzerland
Hans



PS : For Windows may this could help ....


http://software.intel.com/en-us/articles...r-windows/
(This post was last modified: 2009-06-05 10:59 by linuxluemmel.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #5
Hello to all .-)

In the past 2 days i received a lot of emails asking to make a port to other
operating systems than linux. Ok, I wonna do it, if enough poeple would help
to clean the code from ugly errors .. (and may give some feedbak ... )


I will release 0.1C with support for Mac-OS in 1-2 days. It should be a easy part
because a dd command is inside the system.

cu hans
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #6
Hello ;-)

There are some important notes on my script :

- If your Linux-Box automaticly mount inserted dvd's 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
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #7
hello .-)

I tried to paste the code of the new script into the window ...

Not possible because it was to large ... I will make 2 Parts .....



Code removed by linuxluemmel
(This post was last modified: 2009-06-14 23:10 by linuxluemmel.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #8
Code removed by linuxluemmel
(This post was last modified: 2009-06-14 23:10 by linuxluemmel.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #9
Code remove by linuxluemmel
(This post was last modified: 2009-06-14 23:11 by linuxluemmel.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #10
Code remove by linuxluemmel
(This post was last modified: 2009-06-14 23:11 by linuxluemmel.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #11
Code remove by linuxluemmel
(This post was last modified: 2009-06-14 23:12 by linuxluemmel.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #12
Code remove by linuxluemmel
(This post was last modified: 2009-06-14 23:12 by linuxluemmel.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #13
Hello .)

After removing a lot of typos and a better errror-handling inside the script ...
The script leaves alpha state and will come Beta ....

The first Beta Release will have :

- preview a few secounds of the movie
- calculate size for rip
- May I hear a few words from a Mac-OS X User to improve that part ...
(I guess it works but without any feedback it's not easy ....)

With the best greetings from switzerland ...

Hans
(This post was last modified: 2009-06-06 22:58 by linuxluemmel.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #14
Code remove by linuxluemmel
(This post was last modified: 2009-06-14 23:13 by linuxluemmel.)
find quote
linuxluemmel Offline
Donor
Posts: 870
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #15
Code remove by linuxluemmel
(This post was last modified: 2009-06-14 23:13 by linuxluemmel.)
find quote
Post Reply