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:Please try try to run shell-commands direct .....
You can find a overview of all shell-commands inside the wiki-pages
of the project.

OK, so I started at State.sh. Immediately something funny. Output:

Code:
----------------------------------------------------------------------------
script    : state.sh
version   : 0.6.14 [swiss-army-knife addon]
copyright : (C) <2010>  <[email protected]>
changed to /home/johan/.xbmc/addons/script.video.swiss.army.knife/shell-linux
----------------------------------------------------------------------------

INFO [media:[BLURAY]]

----------------------- script rc=0 -----------------------------

There is definitely a DVD in the drive! I looked in the script and tried the individual commands. First dvd+rw-mediainfo /dev/sr0:

Code:
INQUIRY:                [Optiarc ][BD ROM BC-5500H ][1.B0]
GET [CURRENT] CONFIGURATION:
Mounted Media:         10h, DVD-ROM
Current Write Speed:   8.0x1385=11080KB/s
Write Speed #0:        8.0x1385=11080KB/s
Write Speed #1:        6.0x1385=8310KB/s
Write Speed #2:        4.0x1385=5540KB/s
Write Speed #3:        3.3x1385=4571KB/s
Write Speed #4:        2.4x1385=3324KB/s
Write Speed #5:        2.0x1385=2770KB/s
GET [CURRENT] PERFORMANCE:
Write Performance:     3.3x1385=4571KB/s@0 -> 8.0x1385=11080KB/s@3853487
Speed Descriptor#0:    00/3853487 [email protected]=5540KB/s [email protected]=11080KB/s
Speed Descriptor#1:    00/3853487 [email protected]=5540KB/s [email protected]=8310KB/s
Speed Descriptor#2:    00/3853487 [email protected]=5540KB/s [email protected]=5540KB/s
Speed Descriptor#3:    00/3853487 [email protected]=5540KB/s [email protected]=4571KB/s
Speed Descriptor#4:    00/3853487 [email protected]=3463KB/s [email protected]=3324KB/s
Speed Descriptor#5:    00/3853487 [email protected]=3463KB/s [email protected]=2770KB/s
READ DVD STRUCTURE[#0h]:
Media Book Type:       00h, DVD-ROM book [revision 0]
Legacy lead-out at:    1957424*2KB=4008804352
DVD-ROM media detected, exiting...

So this confirms media is DVD-ROM. lsdvd -a /dev/sr0 yields:

Code:
libdvdread: Using libdvdcss version 1.2.10 for DVD access
Please send bug report - no VTS_TMAPT ??
libdvdread: Can't seek to block 415047
libdvdread: Can't seek to block 415047
libdvdread: Invalid IFO for title 3 (VTS_03_0.IFO).
Can't open ifo 3!

So somehow, this fails. Don't know why. VTS_03_0.IFO is there on the disk. I can read it no problem and XBMC plays the DVD happily.

However, I noticed that XFCE automounts the DVD. So I unmounted the device and tried again. This time, it worked OK! Next, I tried scripts dvd-achapters and dvd-atracks again, using /media/EARTH instead of /dev/sr0, and this works as well.

Next I tried dvd-iso.sh. This does not work on /media/... directory, so I unmounted again and retried on /dev/sr0. This time, it failed because the directory .../addon-data/...../tmp did not exist. I created that tmp folder and now it's working...

So: you may want to include some more checks on whether or not a disk is mounted, and whether folders are present before trying to create files.

Finally, I don't know why a second attempt to run the script would crash XBMC, previously...
Inside the setup.sh script all directorys are made.
Code:
if [ ! -e /home/$1/.xbmc/userdata/addon_data/script.video.swiss.army.knife/dvd/tmp ] ; then
      mkdir /home/$1/.xbmc/userdata/addon_data/script.video.swiss.army.knife/dvd/tmp
      chown -R $1:$1 /home/$1/.xbmc/userdata/addon_data/script.video.swiss.army.knife/dvd/tmp
   fi


This is the reason you should allways run setup.sh after a update or upgrade. I do not check for directorys that are created by setup.sh every time the script is executed.
I do check that the main scripts (excluding setup.sh) not are executed as user root and test against $SHELL /bin/bash is allready inside svn.
OK fellows :-)
For those of you that would like a other language than english the point to send me svn-diffs is arrived. Moments ago I did a checkout inside svn with my native language German.

Please do send the patches as svn diffs against current trunk (0.6.15) and not
the last stable release 0.6.14
Please use the track system on the project url to submit diffs.
The addon speaks by now :
* English
* German


BTW :
If someone of the native english speakers could have a fast look on my
foolish english strings would be nice. (Send also a diff ,-)

I had a problem with the addon after I added a german description inside addon.xml so please do only send converted strings.xml

Regards Hans

sorry : If someone is starting translating a language please report here , or I have at least 20 versions
of every language from 20 different poeple.
linuxluemmel Wrote:OK fellows :-)
I had a problem with the addon after I added a german description inside addon.xml so please do only send converted strings.xml
Hello, there is just only one thing to modify... change the first </description> to </summary> in your previous version of the addon.xml file and it will probably work Smile (the xml wasn't correctly parsed)

Is there a way to test the translation I have done (strings.xml / french) with the current version available in the repository ?
Yes ...this is possible ... I addded a few ids into release 0.6.15
copy the folder into the actual release 0.6.14 and change the default language to French .
I guess it should work ... :-)


PS : Merci beaucoup pour ta travaille ;-) c'etais très gentil
Ok, I will test it and send you the file if it works.

PS : De rien... Smile
So the french translation is on the way ...
addon speaks english / german / french soon
Regards Hans
Moments ago I submitted the french language to svn.
The addon.xml is also corrected for translators.

Best regards
Hans
A few days after release of Dharma I do release 0.6.15 with a few enhancements

- transcode dvd to mkv (same container like bluray)
- transocde dvd to h264 low-profile
- transcode dvd to Apple Iphone optimized size
- transcode dvd to Sony PSP optimized size

If you would like to see your own native language inside the Addon please make a svn checkout and send me back the diffs.

the svn release speaks

* English
* German
* French

I hope I get some more translations until Dharma is finished ...
dvd transcoding profiles for sony psp and apple-iphone can be tested over my svn trunk.
By now you can integrate up to 9 shell-scripts you have into the addon inside the expert-mode

Possible actions :

- copy files to a nas
- connect / disconnect vpn service

and many others ....

You need a svn-checkout for the release 0.6.15 to use this functions.
I made a few screenshoots from the next release 0.6.15

[url=Image Uploaded with ImageShack.us]Image Uploaded with ImageShack.us[/url]

[url=Image Uploaded with ImageShack.us]Image Uploaded with ImageShack.us[/url]


Image
Uploaded with ImageShack.us
Hi im (very) new to linux and Im having trouble running setup.sh, I keep getting

bash: ./setup.sh: Permission denied

this is the script im trying to run

[email]user@User:~/.xbmc/addons/script.video.swiss.army.knife[/email]/shell-linux$ ./setup.sh user

is that right?

any help would be amazing Smile
How did you install the script ?
Release 0.6.15 over svn ?
Or version 0.6.14 with the addon-manager ?

open a terminal and go inside the directory with shell-scripts

chmod +x *sh

And the file can be executed ,-)
linuxluemmel Wrote:How did you install the script ?
Release 0.6.15 over svn ?
Or version 0.6.14 with the addon-manager ?

open a terminal and go inside the directory with shell-scripts

chmod +x *sh

And the file can be executed ,-)


Hi, thanks for quick reply im running (well trying to) version 0.6.14 with addon manager

here is what i get now;

----------------------- script rc=3 -----------------------------
-----------------------------------------------------------------
[email]user@User:~/.xbmc/addons/script.video.swiss.army.knife[/email]/shell-linux$ ./setup.sh user

----------------------------------------------------------------------------
script : setup.sh
version : 0.6.14 [swiss-army-knife addon]
copyright : © <2010> <[email protected]>
changed to /home/user/.xbmc/addons/script.video.swiss.army.knife/shell-linux
----------------------------------------------------------------------------
./setup.sh: line 39: E_DPKG: command not found
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