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
[OSlog] Warning current user and ssh-command mismatch

The ssh command is configured inside the settings of the addon.
You have to get the correct name inside the settings and the error never come back ...

do correct to broco@localhost

All processes with a heavy io are very slow executed over python from xbmc.

Inside the readme is all explained ...

http://code.google.com/p/swiss-army-knif...ADME.Linux
Ah ok, thanks very much for this explanation.
Now the Add-On starts but ripping DVDs is still not possible.
The xbmc-log provides the following informations:

Code:
16:54:40 T:140451704240192 M:3011035136   DEBUG: ADDON: cpluff: 'Suspicious plug-in descriptor content in /home/broco/.xbmc/addons/script.video.swiss.army.knife/addon.xml, line 11, column 5 (ignoring unexpected element provides and its contents).'
16:54:40 T:140451704240192 M:3010908160   DEBUG: ADDON: cpluff: 'Plug-in script.video.swiss.army.knife has been installed.'
16:54:50 T:140450683672336 M:2953113600   DEBUG: Process - The source file to load is /home/broco/.xbmc/addons/script.video.swiss.army.knife/default.py
16:54:50 T:140450683672336 M:2953113600   DEBUG: Process - Setting the Python path to /home/broco/.xbmc/addons/script.video.swiss.army.knife:/usr/lib/xbmc/addons/script.module.pil/lib:/usr/lib/xbmc/addons/script.module.pysqlite/lib:/usr/lib/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
16:54:50 T:140450683672336 M:2953113600   DEBUG: Process - Entering source directory /home/broco/.xbmc/addons/script.video.swiss.army.knife
16:54:52 T:140450683672336 M:2948550656 WARNING: CreateFile, successfuly opened </home/broco/.xbmc/addons/script.video.swiss.army.knife/resources/lib/Linux.py> instead of </home/broco/.xbmc/addons/script.video.swiss.army.knife/resources/lib/linux.py>
16:54:52 T:140450683672336 M:2948554752  NOTICE: [swiss-army-knife]: [GUIlog] addon-startet
16:54:52 T:140450683672336 M:2948554752  NOTICE: [swiss-army-knife]: [GUIlog] loading-configuration
16:54:52 T:140450683672336 M:2948132864  NOTICE: [swiss-army-knife]: [OSlog]  Current-user      : [broco]
16:54:52 T:140450683672336 M:2948132864  NOTICE: [swiss-army-knife]: [OSlog]  SSH-user expected : [broco@localhost]
16:54:52 T:140450683672336 M:2948132864  NOTICE: [swiss-army-knife]: [OSlog]  current user is listed inside the ssh-command
16:54:52 T:140450683672336 M:2948395008  NOTICE: [swiss-army-knife]: [OSlog]  Command to log inside ssh:echo "check-mkv.sh " >> /home/broco/.xbmc/userdata/addon_data/script.video.swiss.army.knife/log/ssh-log
16:54:52 T:140450683672336 M:2948395008  NOTICE: [swiss-army-knife]: [OSlog]  OSRun start
16:54:52 T:140450683672336 M:2948124672  NOTICE: [swiss-army-knife]: [OSlog]  Command to run :ssh broco@localhost /home/broco/.xbmc/addons/script.video.swiss.army.knife/shell-linux/check-mkv.sh
16:54:53 T:140450683672336 M:2946297856  NOTICE: [swiss-army-knife]: [OSlog]  OSRun end
16:54:53 T:140450683672336 M:2946797568  NOTICE: [swiss-army-knife]: [GUIlog] create main-menu
16:54:54 T:140450683672336 M:2948046848   DEBUG: unable to load /home/broco/.xbmc/addons/script.video.swiss.army.knife/resources/language/German/strings.xml: Failed to open file at line 0
16:54:58 T:140450683672336 M:2945904640  NOTICE: [swiss-army-knife]: [OSlog]  file delete : /home/broco/.xbmc/userdata/addon_data/script.video.swiss.army.knife/log/ssh-log
16:54:59 T:140450683672336 M:2945925120  NOTICE: [swiss-army-knife]: [OSlog]  state.sh command ready to start
16:54:59 T:140450683672336 M:2945409024  NOTICE: [swiss-army-knife]: [OSlog]  Command to log inside ssh:echo "dvd0.sh /dev/sr0" >> /home/broco/.xbmc/userdata/addon_data/script.video.swiss.army.knife/log/ssh-log
16:54:59 T:140450683672336 M:2945409024  NOTICE: [swiss-army-knife]: [OSlog]  OSRun start
16:54:59 T:140450683672336 M:2946416640  NOTICE: [swiss-army-knife]: [OSlog]  Command to run :ssh broco@localhost /home/broco/.xbmc/addons/script.video.swiss.army.knife/shell-linux/dvd0.sh /dev/sr0  > /dev/null 2>&1 &
16:54:59 T:140450683672336 M:2946412544  NOTICE: [swiss-army-knife]: [OSlog]  OSRun end
16:54:59 T:140450683672336 M:2946412544  NOTICE: [swiss-army-knife]: [OSlog]  state.sh command executed
16:55:14 T:140450683672336 M:2946064384  NOTICE: [swiss-army-knife]: [OSlog]  Timeout 15 secounds reached for track-file  ...

In XBMC the error message for both (transcode dvd and ripp dvd to iso) says

Quote:INFO:
File swiss-army-knife/media/state could not be opened

I checked the Readme but I find no hint about what to do.
Increase timeout here http://code.google.com/p/swiss-army-knif...b/Linux.py

Line 362 increase the value

Du must aber einer eine verdammt gut Hardware haben dass sie solange benötigt ....

The function is definied on line 318 inside svn
I released 0.6.13 with a few little things ...

- Updated makemkv to version 1.5.8
- updated setup.sh

Please have a look inside addoon-Manager ...
Regards Hans
Hey Hans,

First of all, this all looks great. I know this is old, but I'm still using XBMC 9.11 and am trying to use Blue Pill 0.6B on Linux, the latest version on the Google code page (http://code.google.com/p/luemmels-dvd-ri...BluePill6B).

However, whenever I try to rip a DVD to an iso-image, the script tells me there is no disc in the drive! I can't seem to figure out why it can't see the disc. Do you know why this might be?
What is the device for the dvd device ? Is it /dev/sr0 ?
I had a similliar issue with 9.11 because the xbmc function DriveState ....
On my old notebook with ubuntu 9.04 and XBMC 9.11 everything was working
fine. Then I switched to 10.04 and 9.11 and had the problem in the link above ...

It allways said that were no dvd inside the drive ....
It seems that on some systems the return values is different ....

http://forum.xbmc.org/showthread.php?tid...tate%28%29

You may could try to determine your needed values and then use the this values inside
the default.py.

Regards Hans
linuxluemmel Wrote:What is the device for the dvd device ? Is it /dev/sr0 ?
I had a similliar issue with 9.11 because the xbmc function DriveState ....
On my old notebook with ubuntu 9.04 and XBMC 9.11 everything was working
fine. Then I switched to 10.04 and 9.11 and had the problem in the link above ...

It allways said that were no dvd inside the drive ....
It seems that on some systems the return values is different ....

http://forum.xbmc.org/showthread.php?tid...tate%28%29

You may could try to determine you needed values and then use the right values inside
the default.py.

Regards Hans

Yes, the device is /dev/sr0. This is interesting, because XBMC isn't showing me a "Play Disc" menu item either, even though there is a disc inserted. So it is a problem with XBMC?

How exactly do I fix the problem? Copy and paste the code at that link (http://forum.xbmc.org/showthread.php?tid...tate%28%29) into the DVD Ripper script? Where do I do that?

Thank you so much for the prompt response and for helping me out.
Because xbmc says no disc -> my script also say "no disc"
I show you in the next post how to fix ....
I may takes some minutes .... I try to make make them local ....
BB Soon
Code:
else:
                         dvd_info = xbmc.getDVDState()
                         if dvd_info == 0:
                            drive_not_ready()
                         elif dvd_info == 3:
                            drive_no_dvd()
                         elif dvd_info == 4:
                            state = do_ripp(False)

This contruct is used multiple times inside default.py
You can fin this match with a editor very easy.
if you run the code from the last post you see the return values on your hardware.
Run it with a dvd inside
Run it with no dvd ...

Inside the ripper-script the return value 0,3,4 are used.

Or If would to try remove any dvd-test :

Code:
else:
                            state = do_ripp(False)

CU I go sleep by now ... ;-)
linuxluemmel Wrote:[CODE]

CU I go sleep by now ... ;-)

Thanks so much for your help. Unfortunately, this does not completely solve the problem. It gets past the disc check, but gives me a script error afterwards.

I am guessing the problem is this: The script no longer checks for a DVD, so it proceeds, but then when it goes to play the DVD for a few seconds (since this is the Blue Pill version), it fails because it *can't* play the DVD, since XBMC still thinks there is no DVD in the drive. I'm probably one of the only people having this problem (because I was trying to avoid the complexity of the Red Pill version), so it's fine. I will test it on Windows.

Thanks again!
It is a guess that you are not the only person with this problem.
I saw this :
http://forum.xbmc.org/showthread.php?tid=79629
Dharma may come in the next couple of days ... I would wait and install
the new addon.
Regards Hans
Inside 0.6.13 of the addon please replace inside setup.sh line 512

dpkg -i akemkv-v1.5.8-oss_20100818-1_i386.deb
with
dpkg -i makemkv-v1.5.8-oss_20100818-1_i386.deb

I do repack the zip tonight ...
OK I made a commit R20 with a updated release 0.6.13
Feedback please.
I added a few lines into log , if you get any error about files that can not be read.
Inside release 0.6.14 all timeout values are changeable over the settings.
Hello

Thanks for all of your effort on this linuxluemmel. I am having the same issues as broco and tried your solution below:

linuxluemmel Wrote:Increase timeout here http://code.google.com/p/swiss-army-knif...b/Linux.py

Line 362 increase the value

Du must aber einer eine verdammt gut Hardware haben dass sie solange benötigt ....

The function is definied on line 318 inside svn

However, nothing comes back - I increased the time out to 80 (and received the same issue), then 800 and nothing happens.

Thanks

Niko
i know this was asked a few posts back but i couldn't figure out the answer (i also read the readme file)

im running xbmc as a different user (mylin) and this is how i ran the setup
Code:
sudo bash setup.sh mylin

everything installed ok, but when i run the addon, i get the msg "Configured ssh-user is not current user" .. when ps aux i see xbmc running under mylin user ?

how can i fix that?

thanks
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