[RELEASE] Luemmel's DVD-Ripper (Script) for Linux, Mac, and Windows

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
linuxluemmel Offline
Member+
Posts: 872
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #41
Hello to all ;_=)

Ok here is the release ...

http://luemmels-dvd-ripper.googlecode.co...x-0.5B.tar

and the Readme for 0.5b

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


Please read it carefully .... There are a lot software packages that should be installed If you wish transcode to divx / h264 / ogg-vorbis

- All log-files from transcode and dd are located inside ~/dvdripper
- Audio-Selection is now corrected
- You can stop anytime a rip-job / even If you exit the script and comes later back !!!!!

Best regards ...
Linuxluemmel
find quote
The-Boxhead Offline
Member+
Posts: 943
Joined: May 2005
Reputation: 17
Location: Norway
Post: #42
your script sounds very nice !

i followed your guide, since im no linux guru i made a few mistakes
and misunderstood some of your guideance Wink

however i got to this:
ssh xbmc@localhost ./dvdrip.sh /dev/sr0 /dvdrip change-me.iso

which in turn got me this output:

Code:
(T: XBMCLive)xbmc@XBMCLive:~$ ssh xbmc@localhost ./dvdrip.sh /dev/sr0 /dvdripper change-me.iso
./dvdrip.sh: line 20: cd: /dvdripper: No such file or directory
transcode v1.0.7 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg, 2004-2008 Transcode Team
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Using libdvdcss version 1.2.10 for DVD access
(dvd_reader.c) DVD title 1/4: 9 chapter(s), 1 angle(s), title set 1
(dvd_reader.c) title playback time: 01:39:19.02  5960 sec
(dvd_reader.c) [Chapter 01] 00:00:00.000 , block from 0 to 226062
(dvd_reader.c) [Chapter 02] 00:10:27.120 , block from 226063 to 474546
(dvd_reader.c) [Chapter 03] 00:23:01.120 , block from 474547 to 662058
(dvd_reader.c) [Chapter 04] 00:32:05.560 , block from 662059 to 803865
(dvd_reader.c) [Chapter 05] 00:39:11.960 , block from 803866 to 914166
(dvd_reader.c) [Chapter 06] 00:45:10.240 , block from 914167 to 1251370
(dvd_reader.c) [Chapter 07] 01:00:43.640 , block from 1251371 to 1478375
(dvd_reader.c) [Chapter 08] 01:12:16.280 , block from 1478376 to 1776111
(dvd_reader.c) [Chapter 09] 01:27:40.840 , block from 1776112 to 1992500
[import_dvd.so] v0.4.0 (2003-10-02) (video) DVD | (audio) MPEG/AC3/PCM
[export_mp2enc.so] v1.0.10 (2004-09-27) (audio) MPEG 1/2
[export_mpeg2enc.so] v1.1.10 (2003-10-30) (video) MPEG 1/2
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source /dev/sr0 (ok)
[transcode] V: import format    | MPEG-2 DVD PAL (V=dvd|A=dvd)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | 720x576  1.25:1  encoded @ 4:3
XXX: zoom=yes pre_clip=no
[transcode] V: zoom             | 352x288  1.22:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.710
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x50    MPEG layer-2 [48000,16,2]
[transcode] A: export format    | 0x50    MPEG layer-2 [48000,16,2]  128 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | 0@1000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
[transcode] V: IA32/AMD64 accel | using sse memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_dvd.so] tccat -T 1,1,1 -i "/dev/sr0" -t dvd -d 0 -L | tcdemux -a 0 -x mp3 -S 0 -M 1 -d 0 | tcextract -t vob -x mp2 -a 0 -d 0 | tcdecode -x mp2 -d 0
[import_dvd.so] tccat -T 1,1,1 -i "/dev/sr0" -t dvd -d 0 | tcdemux -s 0xc0 -x mpeg2 -S 0 -M 1 -d 0 | tcextract -t vob -a 0 -x mpeg2 -d 0 | tcdecode -x mpeg2 -d 0 -y yv12
[import_dvd.so] delaying DVD access by 3 second(s)
.libdvdread: Using libdvdcss version 1.2.10 for DVD access

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000120
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00006385
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00006acf
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
..[export_mpeg2enc.so] *** init-v *** !
[export_mp2enc.so] *** init-v *** !
[export_mpeg2enc.so] cmd=mpeg2enc -v 0 -I 0 -f 1 -F 3 -n p  -a 2  -o "/dev/null"
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[decode_mpeg2.c] libmpeg2 acceleration: none (plain C)
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000120
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00006385
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00006acf
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
[export_mp2enc.so] export profile changed samplerate: 48000 -> 44100 Hz.
[export_mp2enc.so] export profile changed bitrate: 128 -> 224 kbps.
[export_mp2enc.so] (46/4096) cmd=mp2enc -v 0 -r 44100 -b 224 -s -o "/dev/null"


clean up | frame threads | unload modules | cancel signal | internal threads |[transcode] encoded 1 frames (0 dropped, 0 cloned), clip length   0.04 s
done
starting dvdpreview.sh script
dvdpreview.sh runs now in the background
starting dvddd.sh script
dd runs now in the background
(T: XBMCLive)xbmc@XBMCLive:~$
(T: XBMCLive)xbmc@XBMCLive:~$

but i get no iso in the folder just some more log files.
it doesent seem to actually start ripping.

i also tried the script directly from xbmc but i get a error that
the iso output directory has no write access. ?

okay figured out the error in the terminal:
ssh xbmc@localhost ./dvdrip.sh /dev/sr0 /dvdrip change-me.iso

should be:
ssh xbmc@localhost ./dvdrip.sh /dev/sr0 /home/xbmc/dvdrip change-me.iso

Smile

now its ripping an iso to my dvdrip folder Smile
(This post was last modified: 2009-07-12 23:23 by The-Boxhead.)
find quote
linuxluemmel Offline
Member+
Posts: 872
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #43
The-Boxhead Wrote:your script sounds very nice !

i followed your guide, since im no linux guru i made a few mistakes
and misunderstood some of your guideance Wink

however i got to this:
ssh xbmc@localhost ./dvdrip.sh /dev/sr0 /dvdrip change-me.iso

which in turn got me this output:

Code:
(T: XBMCLive)xbmc@XBMCLive:~$ ssh xbmc@localhost ./dvdrip.sh /dev/sr0 /dvdripper change-me.iso
./dvdrip.sh: line 20: cd: /dvdripper: No such file or directory
transcode v1.0.7 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg, 2004-2008 Transcode Team
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Using libdvdcss version 1.2.10 for DVD access
(dvd_reader.c) DVD title 1/4: 9 chapter(s), 1 angle(s), title set 1
(dvd_reader.c) title playback time: 01:39:19.02  5960 sec
(dvd_reader.c) [Chapter 01] 00:00:00.000 , block from 0 to 226062
(dvd_reader.c) [Chapter 02] 00:10:27.120 , block from 226063 to 474546
(dvd_reader.c) [Chapter 03] 00:23:01.120 , block from 474547 to 662058
(dvd_reader.c) [Chapter 04] 00:32:05.560 , block from 662059 to 803865
(dvd_reader.c) [Chapter 05] 00:39:11.960 , block from 803866 to 914166
(dvd_reader.c) [Chapter 06] 00:45:10.240 , block from 914167 to 1251370
(dvd_reader.c) [Chapter 07] 01:00:43.640 , block from 1251371 to 1478375
(dvd_reader.c) [Chapter 08] 01:12:16.280 , block from 1478376 to 1776111
(dvd_reader.c) [Chapter 09] 01:27:40.840 , block from 1776112 to 1992500
[import_dvd.so] v0.4.0 (2003-10-02) (video) DVD | (audio) MPEG/AC3/PCM
[export_mp2enc.so] v1.0.10 (2004-09-27) (audio) MPEG 1/2
[export_mpeg2enc.so] v1.1.10 (2003-10-30) (video) MPEG 1/2
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source /dev/sr0 (ok)
[transcode] V: import format    | MPEG-2 DVD PAL (V=dvd|A=dvd)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | 720x576  1.25:1  encoded @ 4:3
XXX: zoom=yes pre_clip=no
[transcode] V: zoom             | 352x288  1.22:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.710
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x50    MPEG layer-2 [48000,16,2]
[transcode] A: export format    | 0x50    MPEG layer-2 [48000,16,2]  128 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | 0@1000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
[transcode] V: IA32/AMD64 accel | using sse memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_dvd.so] tccat -T 1,1,1 -i "/dev/sr0" -t dvd -d 0 -L | tcdemux -a 0 -x mp3 -S 0 -M 1 -d 0 | tcextract -t vob -x mp2 -a 0 -d 0 | tcdecode -x mp2 -d 0
[import_dvd.so] tccat -T 1,1,1 -i "/dev/sr0" -t dvd -d 0 | tcdemux -s 0xc0 -x mpeg2 -S 0 -M 1 -d 0 | tcextract -t vob -a 0 -x mpeg2 -d 0 | tcdecode -x mpeg2 -d 0 -y yv12
[import_dvd.so] delaying DVD access by 3 second(s)
.libdvdread: Using libdvdcss version 1.2.10 for DVD access

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000120
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00006385
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00006acf
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
..[export_mpeg2enc.so] *** init-v *** !
[export_mp2enc.so] *** init-v *** !
[export_mpeg2enc.so] cmd=mpeg2enc -v 0 -I 0 -f 1 -F 3 -n p  -a 2  -o "/dev/null"
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[decode_mpeg2.c] libmpeg2 acceleration: none (plain C)
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000120
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00006385
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00006acf
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
[export_mp2enc.so] export profile changed samplerate: 48000 -> 44100 Hz.
[export_mp2enc.so] export profile changed bitrate: 128 -> 224 kbps.
[export_mp2enc.so] (46/4096) cmd=mp2enc -v 0 -r 44100 -b 224 -s -o "/dev/null"


clean up | frame threads | unload modules | cancel signal | internal threads |[transcode] encoded 1 frames (0 dropped, 0 cloned), clip length   0.04 s
done
starting dvdpreview.sh script
dvdpreview.sh runs now in the background
starting dvddd.sh script
dd runs now in the background
(T: XBMCLive)xbmc@XBMCLive:~$
(T: XBMCLive)xbmc@XBMCLive:~$

but i get no iso in the folder just some more log files.
it doesent seem to actually start ripping.

i also tried the script directly from xbmc but i get a error that
the iso output directory has no write access. ?

okay figured out the error in the terminal:
ssh xbmc@localhost ./dvdrip.sh /dev/sr0 /dvdrip change-me.iso

should be:
ssh xbmc@localhost ./dvdrip.sh /dev/sr0 /home/xbmc/dvdrip change-me.iso

Smile

now its ripping an iso to my dvdrip folder Smile



As I saw this

T: XBMCLive)xbmc@XBMCLive:~$ ssh xbmc@localhost ./dvdrip.sh /dev/sr0 /dvdripper change-me.iso
./dvdrip.sh: line 20: cd: /dvdripper: No such file or directory

It was clear .... it was startet with the wrong directory ....

If something is not clear I try to help ...

BTW : I would symlink the directory /dvdrip to your greatest partition

ln -s /media/big-mama-partition /dvdrip

and you don't have to touch the directory inside the script ...

regards from switzerland
Linuxluemmel
find quote
linuxluemmel Offline
Member+
Posts: 872
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #44
The-Boxhead Wrote:your script sounds very nice !
i followed your guide, since im no linux guru i made a few mistakes
and misunderstood some of your guideance Wink

Ok You may help me to produce a better help and documentation ....

I do working as system engineer since many years with linux and windows
....
therefore sometimes I do not thinking about poeple who don't know linux very well ...

You could give me some hints ....

Hans
find quote
The-Boxhead Offline
Member+
Posts: 943
Joined: May 2005
Reputation: 17
Location: Norway
Post: #45
Okay ripping dvd works.

Some sugestions:

each time i start to rip a dvd i have to go trough the same screens, typing in with my remote all the info needed to change. This is not user friendly.
There should be some way to config these settings so that the ripping starts right away after you have choosen the iso name. then im thinking of:
/dev/sr0
/dvdrip
/ssh user@localhost

About the /dvdrip - this only works if you symlink. to use a local folder in the home directory you need to edit the line to: /home/xbmc/dvdrip

I also bellive that when you have setup your enviroment the only popup for the user should be about the iso file name, and possibly a "start" button.
theres to much popups now Wink

also a bug:
if you try to enter a directory that doesent exist it will crash.

Also when the ripping actually starts a progress bar in would be nice.
Possibly with a "pause" and "cancel" button on it.

I love your work and cant wait for the burn to dvd to become a feature Smile
this script has a high waf factor when tweaked a little Wink

gonna try transcoding soon and report back.
find quote
linuxluemmel Offline
Member+
Posts: 872
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #46
The-Boxhead Wrote:Okay ripping dvd works.

Some sugestions:

each time i start to rip a dvd i have to go trough the same screens, typing in with my remote all the info needed to change. This is not user friendly.
There should be some way to config these settings so that the ripping starts right away after you have choosen the iso name. then im thinking of:
/dev/sr0
/dvdrip
/ssh user@localhost

About the /dvdrip - this only works if you symlink. to use a local folder in the home directory you need to edit the line to: /home/xbmc/dvdrip

I also bellive that when you have setup your enviroment the only popup for the user should be about the iso file name, and possibly a "start" button.
theres to much popups now Wink

also a bug:
if you try to enter a directory that doesent exist it will crash.

Also when the ripping actually starts a progress bar in would be nice.
Possibly with a "pause" and "cancel" button on it.

I love your work and cant wait for the burn to dvd to become a feature Smile
this script has a high waf factor when tweaked a little Wink

gonna try transcoding soon and report back.

Most of the things you said are allready in the pipeline ...

if you define 1. time ->

-the source dvd
-the rip directory
-the proper ssh-command

should be fine ....
I will try to write this settings into a configuration-file ...

and BTW beta software has a lot of changes during development .-)

Thanks for the feedback ...
Linuxluemmel :_)
find quote
The-Boxhead Offline
Member+
Posts: 943
Joined: May 2005
Reputation: 17
Location: Norway
Post: #47
okay transcoding Smile

from my terminal-
./dvd2mpeg2.sh /dev/sr0 /home/xbmc/dvd-rip dvdvolume 1 1

works like a charm.

but from xbmc i just get tossed back to the main script after i have entered
where to store the transcoded file... no options for formats etc ?

okay EDIT:
./dvd2mpeg2.sh /dev/sr0 /home/xbmc/dvd-rip dvdvolume 1 1

that line transcodes the dvd directly from the disc...

i tried to use the iso file from xbmc....
find quote
The-Boxhead Offline
Member+
Posts: 943
Joined: May 2005
Reputation: 17
Location: Norway
Post: #48
i get carried away you know Smile thanks for all the hard work i know
you put into this. and i understand that this is beta but i gonna try and help
you as much as i can with testing.

i could also write up some new setup guidelines, but maybe wait
until you are at a more stable state ?

I also think that adding a file browser window to select ripping directory would
be a huge improvement.
find quote
linuxluemmel Offline
Member+
Posts: 872
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #49
The-Boxhead Wrote:i get carried away you know Smile thanks for all the hard work i know
you put into this. and i understand that this is beta but i gonna try and help
you as much as i can with testing.

i could also write up some new setup guidelines, but maybe wait
until you are at a more stable state ?

I also think that adding a file browser window to select ripping directory would
be a huge improvement.

Thanks :-=) I don't look on the time I needed. I never programmed in python before
1. june .... I still learning .... BTW The xbmc-script engine enables you to do allmost
anything ...

Yes there is a lot ow work to do ....
If you would like to help me to produce a better documentation ... fine .. you are my hero ;-)

In a week I would like to produce version 05.C in witch all settings storend inside
a configuration directory ~/dvdripper/configuration and the parameters for device
and ssh and directory never come up anymore :_=

This week I should also prepare some documentations for my students ;-)

TX you
Linuxluemmel
(This post was last modified: 2009-07-13 01:11 by linuxluemmel.)
find quote
linuxluemmel Offline
Member+
Posts: 872
Joined: Jun 2009
Reputation: 0
Location: Lucern / Switzerland
Post: #50
The-Boxhead Wrote:Okay ripping dvd works.

this script has a high waf factor when tweaked a little Wink

gonna try transcoding soon and report back.

Could you please tell me what you mean with waf-factor ?

ok ... my native language is German but waf .... I miss maybe something ....

CU Hans


Edit
OK I got it :_)

http://en.wikipedia.org/wiki/Woman_acceptance_factor

I have a also a WAF at home .... LOL
(This post was last modified: 2009-07-13 08:54 by linuxluemmel.)
find quote
Post Reply