XBMC Community Forum
[Windows] One Button DVD/BluRay Ripping using a Launcher from within XBMC - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: Tips, tricks, and step by step guides (/forumdisplay.php?fid=110)
+--- Thread: [Windows] One Button DVD/BluRay Ripping using a Launcher from within XBMC (/showthread.php?tid=105168)

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


- cank - 2012-02-26 21:32

I am just learning xbmc and found your add-on. I can't seem to get it to work. when I click to run AutoRipDVD it opens both my DVD and my Blu-Ray drive even if there is media in them.
Do I need to launch AutoRipDVD in StandAlone(normal PC executable) or File Launcher (e.g. game emulator) and do I need to change any of the settings other than in the .bat file?
Let me know if a debug file is needed or if I am just dumb and missing something simple.
thanks


- Spinalcrack - 2012-02-26 23:45

cank Wrote:I am just learning xbmc and found your add-on. I can't seem to get it to work. when I click to run AutoRipDVD it opens both my DVD and my Blu-Ray drive even if there is media in them.
Do I need to launch AutoRipDVD in StandAlone(normal PC executable) or File Launcher (e.g. game emulator) and do I need to change any of the settings other than in the .bat file?
Let me know if a debug file is needed or if I am just dumb and missing something simple.
thanks

You need to set up Advanced Launcher to launch as a pc executable the file "LaunchAutoRipDVD.vbs"

It should only eject the drive if there is no media (or media that is not in DVD or Blu-Ray format) in the drive. It will also only default to the first dvd/blu-ray drive letter that has a disc in it and that drive letter needs to be between d and z. So if you have a drive f: and a drive h:, and media in both it will use f: If you have your drives set to a, b or c for some reason try changing the line in the .bat file where it says

Code:
For /f %%# In ('Mountvol^|Findstr [d-z]:\\') Do (
        Fsutil fsinfo drivetype %%#|Find "CD-ROM">Nul&&(Set "CDROM=%%~d#"))
If Not Defined CDROM call :NoDrive

to

Code:
For /f %%# In ('Mountvol^|Findstr [a-z]:\\') Do (
        Fsutil fsinfo drivetype %%#|Find "CD-ROM">Nul&&(Set "CDROM=%%~d#"))
If Not Defined CDROM call :NoDrive

If that doesn't work, try deleting the above completely from the .bat file (make a copy backup first), and find the next section that reads:


Code:
for /f "tokens=6" %%t in ('vol %CDROM%') do @set volid=%%t
echo: %volid%

and change where it says 'vol %CDROM%' to read your drive letter instead. ie. if you know your DVD drive letter is say k: then change it to 'vol K:'

If you have two drives and want to use this script for both, I would install two copies in two different directories and manually change the .bat files to point to each drive and then in Advance Launcher just call on AutoRipDVD and the other AutoRipBluRay or something.

Otherwise the script will just either only use the hardcoded drive letter you changed %CDROM% to, or using the scan method it will find the first drive with a disc in it and use that.

Hopefully this is clear, but if you have any other questions please just ask.


- cank - 2012-02-27 03:31

Spinalcrack Wrote:You need to set up Advanced Launcher to launch as a pc executable the file "LaunchAutoRipDVD.vbs"

The only thing that shows up in the directory for AutoripDVD is the .bat file.
I tried setting up the AutoRipDVD folder as a source and then the root drive, however, both only show the .bat file in that folder (and it is in there when browsing with windows).

I have all the settings checked in Appearance-Settings that show hidden files and parent folder...


- Spinalcrack - 2012-02-27 03:52

cank Wrote:The only thing that shows up in the directory for AutoripDVD is the .bat file.
I tried setting up the AutoRipDVD folder as a source and then the root drive, however, both only show the .bat file in that folder (and it is in there when browsing with windows).

I have all the settings checked in Appearance-Settings that show hidden files and parent folder...


I just tried setting the advanced launcher to point at the .bat file directly and it still works totally fine.

Make sure you choose DOS as the emulator.

Double check you have the settings spelled and set correctly with the proper quotes and slashes, and makemkv is installed and working.

Then try setting it to the .bat again. Put in a known working legit dvd or blu-ray and try running it again.

That's all I can really suggest as I have it running on three separate machines and it is working correctly and anyone that has downloaded it hasn't had an issue.

Setting it to the .bat should work totally fine.


any news? - TheOutlawEzE - 2012-02-28 07:44

Was wondering if there are any fixes for Eden and new version of makemkv. Seems to think for a second and then kick out the disc, makemkv work on its own but script doesn't. thanks in advance for any advice!


- Spinalcrack - 2012-02-28 15:34

TheOutlawEzE Wrote:Was wondering if there are any fixes for Eden and new version of makemkv. Seems to think for a second and then kick out the disc, makemkv work on its own but script doesn't. thanks in advance for any advice!

Hmmm.. I have not had any issue. If it's not finding the disk that doesn't have anything to do with Eden, and is just windows scripting. I'll test the script tonight on another machine and try and add in an option to specify the drive (with the method I mentioned earlier in the thread, but I'll add an option to change in the bat option), which should fix the issue.

I'll work on this tonight when I get home. Thanks for your patience guys.


Updated version - Spinalcrack - 2012-02-29 06:46

Ok, so I tested this out all night and couldn't duplicate the problems some were having, but figured if people were having issues I should approach this another way.

So, please re-read the first post in this thread and download the new version using the links there.

The big changes are, I took out the auto detect drive feature, and added an option to set the drive in the AutoRipDVD.bat file. It defaults to D: but you can change this to whatever drive letter you wish now.

I also added a splash screen to indicate that there is no media in the drive or it's damaged so you can tell if the script is failing or if there may be something wrong with the drive or disk.

I also added a LaunchAutoRipDVD.exe file, for Advanced Launcher to point to. This should stop any flickering that may have happened on launch, and will make it easier to work on more systems.

One thing that I should point out as well, is that the script is set to run the 64bit version. If you have a 32 bit version of windows running, then change in AutoRipDVD.bat the following by removing the number 64:

Code:
cd /d "%IntDir%"
makemkvcon64.exe --minlength=%RipMinSeconds% mkv disc:0 all "%RipDir%%volid%"

So it reads like this for 32 bit

Code:
cd /d "%IntDir%"
makemkvcon.exe --minlength=%RipMinSeconds% mkv disc:0 all "%RipDir%%volid%"

Let me know how it goes guys.


- TheOutlawEzE - 2012-03-01 06:24

Fixed! you the man, saved my backside! big props for the fast response and polite disposition towards a newbie.


- Spinalcrack - 2012-03-01 06:38

TheOutlawEzE Wrote:Fixed! you the man, saved my backside! big props for the fast response and polite disposition towards a newbie.

Oh awesome, I am super glad this version corrected the issue. Enjoy Smile


RE: [WINDOWS] - One Button DVD/BluRay Ripping using a Launcher from within XBMC - GJackson - 2012-03-15 02:43

Thank you for making this, it's nice and convenient to rip from within XBMC. I think I noticed a slight problem... if I rip a DVD with a space in the disc title,, the program ejects the DVD with a beep. My music library is left with an empty folder that matches the name of the disc up to the space. Is this a problem with your script or MakeMKV?