Win One Button DVD/BluRay Ripping using a Launcher from within XBMC
Ok kyrios hope this is enough lol

Code:
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: AutoRipDVD is brought to you by Spinalcracker                
:: Modified by Akevit
:: Modified again by Jason Hurley :)                                                                                        :
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@Echo on                                                                                                                                                
Setlocal enableextensions
:: Enable Delayed Expansion allows for loops to iterate through each variable by using ! instead of % when calling variable
Setlocal enabledelayedexpansion                                                                                                                                
:: ScriptPath is now dynamically hardcoded to wherever the AutoRipDVD.bat file is, script will break If you move location of this file
Set ScriptPath=%~dp0
Set ScriptPath=%ScriptPath:~0,-1%
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Change the following variables to match your setup
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    :: DriveLetter=The drive letter of your DVD or Blu-Ray drive ie. D: or G: etc
    Set DriveLetter=D:

    :: RipDir=Where you want your DVD ripped to ie. your xbmc movie folder
    Set RipDir=E:\UncompressedMovies

    :: Encoded Directory of where it saves
    Set EncodeDir=E:\movies\

    :: IntDir=Where you installed MakeMKV to
    Set IntDir=C:\Program Files (x86)\MakeMKV

    :: RipMinSeconds=Minimum time In seconds that should be ripped off disk to avoid getting previews etc.  Default is 3600 seconds or 1 hour
    Set RipMinSeconds=3600

    :: Eject Disc after ripping?
    Set EjectDisc=No

    :: Show splash screens
    Set ShowSplash=Yes
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::: Media Companion
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::Open MediaCompanion. Since there was no installation, you just run the downloaded executable. Select the “Movies” tab in the first row, and then the
::“Folders” tab in the second row. Click “Add Movie Folder Browser” and navigate to wherever you’re storing your movies. Click OK, and then click
::“Save & Quick Refresh”. MC will search the folder(s) you specified for media items. Note that it hasn’t scraped anything yet.

::On the second tab row (still in Movies) select “Movie Preferences”. These settings are all optional, except that “Use Folder Names for Scraping”
::(near the bottom left) MUST be checked.

    :: Sets Media Companion Directory ( For those that use this setting make sure you look at XMBC Set Scan of media Companion
    :: http://mediacompanion.codeplex.com/ (requires .net 4.0)
    Set MediaDir=i:\MediaCompanion3.500
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: HANDBRAKE SETTINGS
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    

    :: Sets the install path to handbrake
    Set Handbrakepath=C:\Program Files (x86)\HandBrake CLI\
    
    :: Log Handbrake?
    Set Handbrakelog=Yes
    Set HandbrakelogDirectory=%scriptpath%

    
    :: Experimental procedure to only encode the largest extracted MKV and append .delete to the others and delete
    Set encodeLargestOnly=Yes
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::: HANDBRAKE SETTINGS PART 2 - Below Settings do not matter if Advanced mode is on
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    :: Using Handbrake to compress - Yes or No?
    Set Handbrake=Yes    

    :: Keep backup of original file after compression? (Otherwise original full quality video will be deleted from Hard Drive -- They're quite large)
    Set KeepHDVersion=Yes
    

    :: Enter profile For handbrake settings to use (see end of this file)
    Set HBsettings=720pMedium

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: XBMC Settings For Library Update
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    :: Media Companion Folders need to be Set in Media Companion Prior To Running this Scan.
    ::Sets Scan of Media Companion
    Set MediaComp=Yes    

    :: Update XBMC Library Upon completion?
    :: NOTE: CURL For Windows MUST BE INSTALLED: http://curl.haxx.se/download.html
    Set UpdateXBMC=Yes

    :: Add arbitrary NFO.txt file For file If wanted
    :: Will need to manually add URL to NFO file For scraper to work
    Set AddNFO=No

    ::*** Which version of XBMC are you using? Enter FroDo or Eden
    Set XBMCversion=Frodo

    :: Set logIn details For XBMC HTTP access (settings found In XBMC Network settings)
    Set XBMCuser=xbmc
    Set XBMCpass=xbmc
    Set XBMCurl=127.0.0.1
    Set XBMCport=8082
    Set cURLpath=I:\curl\curl.exe
9.1 Cinema Room htpc with Kodi Matrix & emby server~Epson EH-TW9300~Homemade 8ft pj screen~AVR~Yamaha RX-A3070~Speakers~Monitor Audio RX6 Fronts & RX Centre~RXFX Surrounds~250's Rears~180's Front Presence~BK XXLS400 Sub~8033C AntiMode~HarmonyOne
 
Reply


Messages In This Thread
[No subject] - by Spinalcrack - 2011-07-10, 23:22
New forum member is here - by Geatteevold - 2012-08-23, 03:11
[No subject] - by Johnnovision - 2011-07-12, 22:39
[No subject] - by patm95 - 2011-07-13, 05:03
[No subject] - by Spinalcrack - 2011-07-13, 05:40
[No subject] - by realjobe - 2011-07-13, 13:30
[No subject] - by Spinalcrack - 2011-07-13, 14:20
[No subject] - by publicENEMY - 2011-12-09, 04:40
RE: - by apr0mpt - 2013-01-16, 23:53
[No subject] - by Valdysses - 2012-02-25, 19:17
[No subject] - by Spinalcrack - 2012-02-26, 00:30
[No subject] - by cank - 2012-02-26, 21:32
[No subject] - by Spinalcrack - 2012-02-26, 23:45
[No subject] - by cank - 2012-02-27, 03:31
[No subject] - by Spinalcrack - 2012-02-27, 03:52
any news? - by TheOutlawEzE - 2012-02-28, 07:44
[No subject] - by Spinalcrack - 2012-02-28, 15:34
Updated version - by Spinalcrack - 2012-02-29, 06:46
[No subject] - by TheOutlawEzE - 2012-03-01, 06:24
[No subject] - by Spinalcrack - 2012-03-01, 06:38
*** Major Bug Fix *** - by Spinalcrack - 2012-08-06, 21:42
RE: One Button DVD/BluRay Ripping using a Launcher from within XBMC - by wints - 2012-12-04, 21:40
Logout Mark Read Team Forum Stats Members Help
One Button DVD/BluRay Ripping using a Launcher from within XBMC9