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
I had a quick look before I left and the preview file was just green.

Any ideas?
Pete_London Wrote:I had a quick look before I left and the preview file was just green.

Any ideas?

Ok I never saw this ....

What Linux-System do you use ?
Are you using at least transcode 1.07 ?
I could send you a list of my versions of all

- libdvdread
- ffmpeg

Ok as it seems the preview is made ....
Do you have a iso file if you rip ??

Or is the rip only a few mb long ... this would indicate a problem
with libdvdcss

Do you use a transcode version witch is not linked against libdvdcss ?

I'm sure we find a way to make your proof of concept workable ... LOL

Greetings from the land of rain.
Hans
OK.. am about to get stuck into getting this working... and it's okay because the system will be based in Spain.

The ISO is only 4.5MB so you've given me ideas to look at.

Will try what you've said and reply again soon.
OK... here's what's happening:

Code:
xbmc@yes:~$ ./dvdrip.sh /dev/sr0 /dvdrip catch22.iso
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
libdvdread: Invalid title IFO (VTS_01_0.IFO).
Can't open the title 1 info file.
(probe_dvd.c) failed to probe DVD title information
[transcode] auto-probing source /dev/sr0 (failed)
[transcode] V: import format    | unknown  (V=(null)|A=(null))
[transcode] warning : no option -x found, option -i ignored, reading from "/dev/zero"
[transcode] V: import frame     | 720x576  1.25:1  
XXX: zoom=yes pre_clip=yes
[transcode] V: pre clip frame   | 720x540 (18,0,18,0)
[transcode] V: zoom             | 352x288  1.15:1 (Lanczos3)
[transcode] V: bits/pixel       | 0.710
[transcode] V: decoding fps,frc | 25.000,0
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x2000  AC3          [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_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
[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
[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"
[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 | done
[transcode] encoded 1 frames (0 dropped, 0 cloned), clip length   0.04 s
starting dvdpreview.sh script
dvdpreview.sh runs now in the background
starting dvddd.sh script
dd runs now in the background

Unfortunately while I'm great at fixing lots of techie stuff, this is going right over my head until I grasp the concept... hopefully that will be soon..

Thanks

Pete
[quote=Pete_London]OK... here's what's happening:

Code:
xbmc@yes:~$ ./dvdrip.sh /dev/sr0 /dvdrip catch22.iso
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
libdvdread: Invalid title IFO (VTS_01_0.IFO).
Can't open the title 1 info file.
(probe_dvd.c) failed to probe DVD title information

[/quote]

Hello pete

As I see you are using transcode 1.07 ... this is good .)

But the message

Can't open the title 1 info file.

Indicates a problem ....

Could you use a lsdvd -a /dev/sr0 or as a alnternativr lsdvd -a /dev/dvd

Get you any error from the above commands  ?

On my workstation I did ....
[CODE]
user@user-laptop:~$ dpkg -l | grep libdvd
ii  libdvdcss2                                 1.2.10-0.2medibuntu1                     Simple foundation for reading DVDs - runtime
ii  libdvdnav4                                 4.1.3-3                                  DVD navigation library
ii  libdvdread4                                4.1.3-4ubuntu2                           library for reading DVDs
user@user-laptop:~$

Do you also have a Ubuntu based System ?

Greetings
Jon
OK... turns out I didn't have lsdvd installed... and yes.. I'm running the latest ubuntu.

Here's what lsdvd says:

Code:
xbmc@yes:~$ lsdvd -a /dev/sr0
libdvdread: Using libdvdcss version 1.2.10 for DVD access
Disc Title: EC_100465
Title: 01, Length: 01:56:41.000 Chapters: 22, Cells: 22, Audio streams: 06, Subpictures: 29
    Audio: 1, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 6, AP: 0, Content: Undefined, Stream id: 0x80
    Audio: 2, Language: fr - Francais, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x81
    Audio: 3, Language: de - Deutsch, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x82
    Audio: 4, Language: it - Italiano, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x83
    Audio: 5, Language: es - Espanol, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x84
    Audio: 6, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x85

Title: 02, Length: 00:03:21.000 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 00
    Audio: 1, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x80

Title: 03, Length: 00:00:00.090 Chapters: 01, Cells: 01, Audio streams: 00, Subpictures: 00

Longest track: 01

and here's the latest result:

Code:
xbmc@yes:~$ ./dvdrip.sh /dev/sr0 /dvdrip catch22.iso
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/3: 22 chapter(s), 1 angle(s), title set 1
(dvd_reader.c) title playback time: 01:56:41.00  7002 sec
(dvd_reader.c) [Chapter 01] 00:00:00.000 , block from 0 to 230235
(dvd_reader.c) [Chapter 02] 00:07:23.480 , block from 230236 to 436408
(dvd_reader.c) [Chapter 03] 00:13:51.880 , block from 436409 to 643950
(dvd_reader.c) [Chapter 04] 00:20:22.640 , block from 643951 to 841848
(dvd_reader.c) [Chapter 05] 00:26:41.440 , block from 841849 to 967318
(dvd_reader.c) [Chapter 06] 00:30:36.520 , block from 967319 to 1120349
(dvd_reader.c) [Chapter 07] 00:35:24.120 , block from 1120350 to 1207292
(dvd_reader.c) [Chapter 08] 00:38:07.400 , block from 1207293 to 1271146
(dvd_reader.c) [Chapter 09] 00:40:07.720 , block from 1271147 to 1636558
(dvd_reader.c) [Chapter 10] 00:51:38.840 , block from 1636559 to 1714539
(dvd_reader.c) [Chapter 11] 00:54:06.360 , block from 1714540 to 1834835
(dvd_reader.c) [Chapter 12] 00:57:55.920 , block from 1834836 to 1971115
(dvd_reader.c) [Chapter 13] 01:02:12.920 , block from 1971116 to 2117484
(dvd_reader.c) [Chapter 14] 01:06:48.560 , block from 2117485 to 2273084
(dvd_reader.c) [Chapter 15] 01:11:39.440 , block from 2273085 to 2391881
(dvd_reader.c) [Chapter 16] 01:15:25.960 , block from 2391882 to 2570582
(dvd_reader.c) [Chapter 17] 01:21:04.560 , block from 2570583 to 2787083
(dvd_reader.c) [Chapter 18] 01:27:53.920 , block from 2787084 to 3008129
(dvd_reader.c) [Chapter 19] 01:34:53.480 , block from 3008130 to 3205144
(dvd_reader.c) [Chapter 20] 01:41:11.680 , block from 3205145 to 3266476
(dvd_reader.c) [Chapter 21] 01:43:07.680 , block from 3266477 to 3467039
(dvd_reader.c) [Chapter 22] 01:49:29.440 , block from 3467040 to 3694890
[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 @ 16:9
XXX: zoom=yes pre_clip=yes
[transcode] V: pre clip frame   | 720x768 (-96,0,-96,0)
[transcode] V: zoom             | 352x288  1.63: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    | 0x2000  AC3          [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: language         | en
[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 @ 720x768
[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
[import_dvd.so] tccat -T 1,1,1 -i "/dev/sr0" -t dvd -d 0 -L | tcdemux -a 0 -x ac3 -S 0 -M 1 -d 0 | tcextract -t vob -x ac3 -a 0 -d 0 | tcdecode -x ac3 -d 0 -s 1.000000,1.000000,1.000000 -A 0
[import_dvd.so] tccat -T 1,1,1 -i "/dev/sr0" -t dvd -d 0 | tcdemux -s 0x80 -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 0x00000136
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000008a1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000021d4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00388341
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00388346
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0039adfa
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0039cd90
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_03_1.VOB (0x0039cd90)!!
libdvdread: Elapsed time 0
libdvdread: Found 3 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"
[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"
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 0x00000136
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000008a1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000021d4
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00388341
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00388346
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x0039adfa
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0039cd90
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_03_1.VOB (0x0039cd90)!!
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0


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

The file size for the iso now looks like it might be right..... preview.mpg looks like it's worked - I'll look at the iso in the morning and then move onto transcoding Smile

Thank you muchly so far!

Pete
Pete_London Wrote:OK... turns out I didn't have lsdvd installed... and yes.. I

The file size for the iso now looks like it might be right..... preview.mpg looks like it's worked - I'll look at the iso in the morning and then move onto transcoding Smile

Thank you muchly so far!

Pete

Ok ... LOL you're welcome anytime with your proof of concept ;-=
Jon

BTW lsdvd was not in the list of sofware to install ?
OK I did changed the list of software to install -> lsdvd is now included ....

In my mythbuntu system 9.04 it was not needed to install lsdvd ...
Thanks for the tip
Hi Jon,

I have not yet used the interface, but it seems to be working with a few points worth noting:

1. lsdvd says the english track is track 1 but your script needs it to be track 0. This resulted in an error when I tried to burn track 6 (track 7 not found) and in getting french (track 2) when I asked for track 1.

2. The DVD I am using transcodes to about 2GB in h264. Is there a way to optionally make this a bit smaller for older movies that don't look that great to begin with?

3. Can we place the transcoded movies into a network share that exists in xbmc without having to create a samba share from linux?

Thanks,

Pete
Hello.

I´ve tryed both scripts (04GBlued and 05GRed) on my Mythbuntu 9.04 machine. The blue one seems to work well in a sample DVD.

I have a problem with ssh configuration to run the red one. Following the readme file:

- ssh-keygen -t rsa: asks for a password twice and I leave it blank hiting Enter. Then says that the public key has been generated and shows a picture of dots and stars (kind of signature)

- ssh-copy-id -i ~/.ssh/id_rsa.pub user@localhost (changin user by "my user"): asks about trusting localhost; I answer yes; says that localhost has been added to trusted hosts. Then it seems to make a connection; asks for the password; I hit Enter and says connection refused

- Testing ssh with "ssh user@localhost ./dvdrip.sh /dev/sr0 /dvdrip change-me.iso" (changin user by "my user"): it asks for the password; I hit Enter; it says thath it is a wrong password and disconnects.

Any idea about what may I be doing wrong?

Thank you.
Pete_London Wrote:Hi Jon,

I have not yet used the interface, but it seems to be working with a few points worth noting:

1. lsdvd says the english track is track 1 but your script needs it to be track 0. This resulted in an error when I tried to burn track 6 (track 7 not found) and in getting french (track 2) when I asked for track 1.

xbmc@yes:~$ lsdvd -a /dev/sr0
libdvdread: Using libdvdcss version 1.2.10 for DVD access
Disc Title: EC_100465
Title: 01, Length: 01:56:41.000 Chapters: 22, Cells: 22, Audio streams: 06, Subpictures: 29
Audio: 1, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 6, AP: 0, Content: Undefined, Stream id: 0x80
Audio: 2, Language: fr - Francais, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x81
Audio: 3, Language: de - Deutsch, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x82
Audio: 4, Language: it - Italiano, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x83
Audio: 5, Language: es - Espanol, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x84
Audio: 6, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined, Stream id: 0x85

This is the output your dvd

All indexes are shown as 1-6 but my scripts translate the entrys to 0-5 (witch is correct)



2. The DVD I am using transcodes to about 2GB in h264. Is there a way to optionally make this a bit smaller for older movies that don't look that great to begin with?

3. Can we place the transcoded movies into a network share that exists in xbmc without having to create a samba share from linux?

Thanks,

Pete


hello Pete

1.) The scrip is right ... Indexes for the audio-languages do not start with 1
they start with 0 (transcode starts with index 0). The Indexes for
the titles of a dvd do start with 1.

2.) The transcode process to h264 is made with handbrake. As I remember
correctly there was a quality factor as a optional parameter to handbrake.

3.) No,sorry ! because the script only see the file-system of the linux itself
If you add a smb share to xbmc and this share is not mounted the script
doesn't see the remote filesystem.


Best regards
Hans
Telko Wrote:Hello.

Any idea about what may I be doing wrong?

Thank you.

1.) Did it generate the ssh file in your home directory ~/.ssh
2.) Are you running the system with uid 0 / root ?
3.) Let us make a example ....

you created the ssh-key ...
you did copy the ssh-key

After this copy of the key the ssh-server deamon should never asking anymore for a password ...

you username is for example xbm
try :

ssh xbmc@localhost

and you should be inside your home-directory loged in wihtout any password.
Could you send the ssh-logs to a pastebin ?

Best regards
Hans
Thanks Hans..

I think I had another failure as I walked out the door to come to work... I'll be back on the case in 10 hours.

Cheers,

Pete
Problem with ssh solved.

The key was in the 2nd step. When I did "ssh-copy-id -i ~/.ssh/id_rsa.pub user@localhost " I was prompted for a password. I thought it was the ssh password so I left it empty. Finally I realized that it was asking my user password in my PC.

When I entered the password, the key was copied and it worked as described.

May be you should add this in the readme so that no one makes the same mistake.

Thank you.
Telko Wrote:Problem with ssh solved.

The key was in the 2nd step. When I did "ssh-copy-id -i ~/.ssh/id_rsa.pub user@localhost " I was prompted for a password. I thought it was the ssh password so I left it empty. Finally I realized that it was asking my user password in my PC.

When I entered the password, the key was copied and it worked as described.

May be you should add this in the readme so that no one makes the same mistake.

Thank you.

This will be written in the readme
Thanks for the feedback

On the point to copy the id .... you have to put in your own password ... because only after the ssh-key is copyd you
can login without a password ...


Best regards
Jon
Hi Jon, or is it Hans (or both?)

Everything works fine from the command line but nada happens from the XBMC interface... how do I find a log of what's going wrong? the ones in ~/dvdripper are empty.

Thanks,

Pete
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