Advertisement
kyrios2021

AutoRipDVD

Dec 2nd, 2012
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.38 KB | None | 0 0
  1. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2. :: AutoRipDVD is brought to you by Spinalcracker
  3. :: Modified by Akevit
  4. :: Modified again by Jason Hurley :) :
  5. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  6. @Echo on
  7. Setlocal enableextensions
  8. :: Enable Delayed Expansion allows for loops to iterate through each variable by using ! instead of % when calling variable
  9. Setlocal enabledelayedexpansion
  10. :: ScriptPath is now dynamically hardcoded to wherever the AutoRipDVD.bat file is, script will break If you move location of this file
  11. Set ScriptPath=%~dp0
  12. Set ScriptPath=%ScriptPath:~0,-1%
  13. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  14. :: Change the following variables to match your setup
  15. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  16. :: DriveLetter=The drive letter of your DVD or Blu-Ray drive ie. D: or G: etc
  17. Set DriveLetter=D:
  18.  
  19. :: RipDir=Where you want your DVD ripped to ie. your xbmc movie folder
  20. Set RipDir=G:\UncompressedMovies
  21.  
  22. :: Encoded Directory of where it saves
  23. Set EncodeDir=G:\movies\
  24.  
  25. :: IntDir=Where you installed MakeMKV to
  26. Set IntDir=C:\Program Files (x86)\MakeMKV
  27.  
  28. :: RipMinSeconds=Minimum time In seconds that should be ripped off disk to avoid getting previews etc. Default is 3600 seconds or 1 hour
  29. Set RipMinSeconds=3600
  30.  
  31. :: Eject Disc after ripping?
  32. Set EjectDisc=No
  33.  
  34. :: Show splash screens
  35. Set ShowSplash=No
  36. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  37. ::: Media Companion
  38. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  39. :::Open MediaCompanion. Since there was no installation, you just run the downloaded executable. Select the “Movies” tab in the first row, and then the
  40. ::“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
  41. ::“Save & Quick Refresh”. MC will search the folder(s) you specified for media items. Note that it hasn’t scraped anything yet.
  42.  
  43. ::On the second tab row (still in Movies) select “Movie Preferences”. These settings are all optional, except that “Use Folder Names for Scraping”
  44. ::(near the bottom left) MUST be checked.
  45.  
  46. :: Sets Media Companion Directory ( For those that use this setting make sure you look at XMBC Set Scan of media Companion
  47. :: http://mediacompanion.codeplex.com/ (requires .net 4.0)
  48. Set MediaDir=c:\MediaCompanion3.500
  49. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  50. :: HANDBRAKE SETTINGS
  51. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  52.  
  53.  
  54. :: Sets the install path to handbrake
  55. Set Handbrakepath=C:\Program Files\Handbrake
  56.  
  57. :: Log Handbrake?
  58. Set Handbrakelog=Yes
  59. Set HandbrakelogDirectory=%scriptpath%
  60.  
  61.  
  62. :: Experimental procedure to only encode the largest extracted MKV and append .delete to the others and delete
  63. Set encodeLargestOnly=Yes
  64. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  65. ::: HANDBRAKE SETTINGS PART 2 - Below Settings do not matter if Advanced mode is on
  66. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  67. :: Using Handbrake to compress - Yes or No?
  68. Set Handbrake=Yes
  69.  
  70. :: Keep backup of original file after compression? (Otherwise original full quality video will be deleted from Hard Drive -- They're quite large)
  71. Set KeepHDVersion=Yes
  72.  
  73.  
  74. :: Enter profile For handbrake settings to use (see end of this file)
  75. Set HBsettings=1080pHigh
  76.  
  77. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  78. :: XBMC Settings For Library Update
  79. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  80.  
  81. :: Media Companion Folders need to be Set in Media Companion Prior To Running this Scan.
  82. ::Sets Scan of Media Companion
  83. Set MediaComp=Yes
  84.  
  85. :: Update XBMC Library Upon completion?
  86. :: NOTE: CURL For Windows MUST BE INSTALLED: http://curl.haxx.se/download.html
  87. Set UpdateXBMC=Yes
  88.  
  89. :: Add arbitrary NFO.txt file For file If wanted
  90. :: Will need to manually add URL to NFO file For scraper to work
  91. Set AddNFO=No
  92.  
  93. ::*** Which version of XBMC are you using? Enter FroDo or Eden
  94. Set XBMCversion=Frodo
  95.  
  96. :: Set logIn details For XBMC HTTP access (settings found In XBMC Network settings)
  97. Set XBMCuser=xbmc
  98. Set XBMCpass=xbmc
  99. Set XBMCurl=127.0.0.1
  100. Set XBMCport=8082
  101. Set cURLpath=C:\cURL\curl.exe
  102.  
  103. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  104. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  105. :: Debug Test Mode
  106. Set TestMode=No
  107. ::*********************************************************************************************
  108. ::*********************************************************************************************
  109. ::******* Do NOT EDIT ANYTHING BELOW THIS!!!!!!************************************************
  110. ::*********************************************************************************************
  111. ::*********************************************************************************************
  112. :StartScript
  113. :: Set volid = label name
  114. For /f "tokens=1-5*" %%1 In ('vol %DriveLetter%') Do (
  115. Set volid=%%6
  116. Goto :processcontd
  117. )
  118.  
  119. :processcontd
  120. :: Remove trailing space from label name if exists
  121. If "%volid:~-1,1%"==" " Set volid=%volid:~0,-1%
  122. Echo Volid:[%volid%]
  123.  
  124. :GetDiscNum
  125. :: Get disc number based on name of %volid%
  126. "%IntDir%\makemkvcon64.exe" -r --cache=1 info disc:9999 | Find /i "%volid%" > "%userprofile%\ARtemp"
  127. Set /p discNum=<"%userprofile%\ARtemp"
  128. Del "%userprofile%\ARtemp"
  129. Set discNum=%discNum:~4,1%
  130.  
  131. :: Checking For drive
  132. Set str=%volid%
  133. Set str=%str:_= %
  134. Set volid=%str%
  135. If "%volid%"=="_= " Call :NoDrive
  136.  
  137. Echo:Ripping %volid% now...
  138. Echo %date% %time%: Begin Script [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  139. :: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  140. :: Go to AdvancedMode
  141.  
  142. Call :AdvancedModeOption
  143. cd /d %ScriptPath%
  144. Set /p AdvancedMode=<value.txt
  145. del value.txt
  146. If %AdvancedMode%==1 GoTo :Advanced
  147.  
  148.  
  149.  
  150. :: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  151.  
  152. :: Creating directory to rip DVD as an MKV to
  153. Mkdir "%RipDir%\%volid%"
  154.  
  155. :: Launch AutoRip splash screen
  156. If %ShowSplash%==Yes Call "%ScriptPath%\OSDAutoRip.hta"
  157.  
  158. :: Ripping DVD to MKV file
  159. Cd /d "%IntDir%"
  160. Echo %date% %time%: Ripping [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  161.  
  162. :: Rip with MakeMKV?
  163. if not exist "%RipDir%\%volid%\*.mkv" call :Rip_With_MakeMKV
  164.  
  165.  
  166. ::Check if more than one file exists for uncompressed mkv and deletes all but biggest
  167.  
  168. ::!!!!!!!!!!!!!!!!!!!!!!!!!
  169. ::Cd /d %RipDir%%volid%
  170. ::for /f "skip=1delims=" %%i in ( ' dir /b /a-d /o-d "*.mkv" ' ) do ECHO del
  171. ::!!!!!!!!!!!!!!!!!!!!!!!!!!!
  172. If %encodeLargestOnly%==Yes Call :renameSmallerMKVs
  173.  
  174. ::Change Ripped File Name
  175. cd /d %RipDir%\%volid%
  176. if not exist "%volid%.mkv" Call :rename
  177.  
  178. ::Handbrake Compression
  179. If %Handbrake%==Yes Call :HBEncode
  180.  
  181. :AdvancedExit
  182.  
  183. :EndingScripts
  184. If %MediaComp%==Yes Call :MediaComp
  185. If %UpdateXBMC%==Yes Call :UpdateLibrary
  186. If %AddNFO%==Yes Call :AddNFOscript
  187.  
  188. :ScriptComplete
  189. Cd /d "%ScriptPath%"
  190. If %EjectDisc%==Yes Call AutoRipComplete.vbs
  191. Echo %date% %time%: End Script [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  192. cscript Beep.vbs
  193. PAUSE
  194. EXIT
  195.  
  196. :: Start of various ending scripts
  197. :NoDrive
  198. Cd /d "%ScriptPath%"
  199. Echo %date% %time%: End Script [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  200. cscript Beep.vbs
  201. NoDiskDrive.hta
  202. AutoRipComplete.vbs
  203. EXIT
  204.  
  205. :Rip_With_MakeMKV
  206. makemkvcon64.exe --minlength=%RipMinSeconds% mkv disc:%discNum% all "%RipDir%\%volid%"
  207. Echo %date% %time%: Rip complete [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  208. Goto :EOF
  209.  
  210. :HBEncode
  211. Mkdir "%EncodeDir%\%volid%"
  212. Call :%HBsettings%
  213. Echo %date% %time%: BegIn HB Encode [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  214. Cd /d "%Handbrakepath%"
  215. HandBrakeCLI -v0 -i "%RipDir%\%volid%" -o "%EncodeDir%\%volid%\%volid%.%RESOLUTION%.mkv" %PICTURE% %VIDEO% %AUDIO% %ADVANCED%
  216. ECHO %date% %time%: End HB Encode [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  217.  
  218. :: Setting Handbrakelog, double quotes necessary otherwise output won't be written
  219. ::If %Handbrakelog%==Yes Set LOG="--verbose=1 2> "%HandbrakelogDirectory%\HandbrakeLog.txt""
  220.  
  221. Cd /d "%RipDir%%volid%"
  222. If %KeepHDVersion%==No Del "%volid%_*.mkv"
  223. Goto :EOF
  224.  
  225. :renameSmallerMKVs
  226. Dir "%RipDir%\%volid%\*.mkv" /b /o-s>{temp}
  227. Set /P biggestMKV=<{temp}
  228. Del {temp}
  229. For %%f In ("%RipDir%\%volid%\*.mkv") Do (
  230. If Not "%%f"=="%RipDir%\%volid%\%biggestMKV%" (
  231. Ren "%%f" *.delete
  232. )
  233. )
  234. Del "%RipDir%\%volid%\*.delete"
  235. Goto :EOF
  236.  
  237.  
  238. :HBEncodeLogSection
  239. ECHO %date% %time%: End HB Encode [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  240. Goto :EOF
  241.  
  242. :rename
  243. cd /d "%RipDir%\%volid%"
  244. ren "*.mkv" "%volid%.mkv"
  245. GoTo :EOF
  246.  
  247. :MediaComp
  248. Cd /d %MediaDir%
  249. mc_com.exe -m
  250. Goto :EOF
  251.  
  252.  
  253. :AddNFOscript
  254. Echo http://www.themoviedb.org/movie/ > "%RipDir%\%volid%\%titlename%.NFO.ADD URL FROM TMDB or TVDB WHEN NEEDED.txt"
  255. Goto :EOF
  256.  
  257. :UpdateLibrary
  258. If %XBMCversion%==FroDo Goto :UpdateLibraryFrodo
  259. If %XBMCversion%==Eden Goto :UpdateLibraryEden
  260. Goto :EOF
  261.  
  262. :UpdateLibraryFrodo
  263. "%cURLpath%" -i -H "Content-Type: application/json" -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.Scan\"}" http://%XBMCuser%:%XBMCpass%@%XBMCurl%:%XBMCport%/jsonrpc
  264. Goto :EOF
  265.  
  266. :UpdateLibraryEden
  267. "%cURLpath%" --get "http://%XBMCuser%:%XBMCpass%@%XBMCurl%:%XBMCport%/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)"
  268. Goto :EOF
  269.  
  270. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  271. ::AdvancedMode Script Input
  272. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  273. ::::::::::;DO NOT EDIT::::::::::::::::::::::::::::::::::
  274. :::::::::::::::::::::::::::::::::::::::::::::::::::::::
  275.  
  276. :Advanced
  277.  
  278. :: Creating directory to rip DVD as an MKV to
  279. Mkdir "%RipDir%\%volid%"
  280.  
  281. :: Launch AutoRip splash screen
  282. If %ShowSplash%==Yes Call "%ScriptPath%\OSDAutoRip.hta"
  283.  
  284. :: Ripping DVD to MKV file
  285. Cd /d "%IntDir%"
  286. Echo %date% %time%: Ripping [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  287.  
  288. cd /d %ScriptPath%
  289. del Advanced.txt
  290. del value.txt
  291. ::Choice about MKV
  292.  
  293. cd /d "%RipDir%\%volid%"
  294. call :RiptoMKV
  295. cd /d %ScriptPath%
  296. Set /p RiptoMKV=<value.txt
  297. del value.txt
  298.  
  299.  
  300. Call :EncodeWithHandbrake
  301. cd /d %ScriptPath%
  302. Set /p EncodewithHandbrake=<value.txt
  303. del value.txt
  304.  
  305.  
  306. Call :KeepUncompressedVersion
  307. cd /d %ScriptPath%
  308. Set /p KeepUncompressed=<value.txt
  309. del value.txt
  310.  
  311. If %EncodewithHandbrake%==1 Call :EncodingSettings
  312.  
  313. Cd /d "%IntDir%"
  314. If %RiptoMKV%==1 Call :Rip_With_MakeMKV
  315.  
  316. ::Change Ripped File Name
  317. ::cd /d %RipDir%\%volid%
  318. ::if not exist "%volid%.mkv" goto :rename
  319.  
  320. ::Check if more than one file exists for uncompressed mkv and deletes all but biggest
  321.  
  322. ::!!!!!!!!!!!!!!!!!!!!!!!!!
  323. ::Cd /d %RipDir%%volid%
  324. ::for /f "skip=1delims=" %%i in ( ' dir /b /a-d /o-d "*.mkv" ' ) do ECHO del
  325. ::!!!!!!!!!!!!!!!!!!!!!!!!!!!
  326. If %encodeLargestOnly%==Yes Call :renameSmallerMKVs
  327. if not exist "%volid%.mkv" Call :rename
  328.  
  329.  
  330. If %EncodewithHandbrake%==1 Call :AdvancedHandbrake
  331.  
  332.  
  333. If %KeepUncompressed%==2 Call :DeleteOriginal
  334.  
  335.  
  336. GoTo :AdvancedExit
  337.  
  338. ::Encoding Section for Handbrake
  339.  
  340.  
  341. :AdvancedHandbrake
  342. Mkdir "%EncodeDir%\%volid%"
  343. ::Call :EncodingSettings
  344. ::cd /d %ScriptPath%
  345. ::Set /p EncodingSettings=<value.txt
  346. ::del value.txt
  347. If %EncodingSettings%==1 Call :720pLow
  348. If %EncodingSettings%==2 Call :720pMedium
  349. If %EncodingSettings%==3 Call :720pHigh
  350. If %EncodingSettings%==4 Call :1080pLow
  351. If %EncodingSettings%==5 Call :1080pMedium
  352. If %EncodingSettings%==6 Call :1080pHigh
  353. Echo %date% %time%: BegIn HB Encode [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  354. Cd /d "%Handbrakepath%"
  355. HandBrakeCLI -v0 -i "%RipDir%\%volid%" -o "%EncodeDir%\%volid%\%volid%.%RESOLUTION%.mkv" %PICTURE% %VIDEO% %AUDIO% %ADVANCED%
  356. ECHO %date% %time%: End HB Encode [%volid%] >> "%scriptpath%\AutoRipLog.txt"
  357.  
  358. :: Setting Handbrakelog, double quotes necessary otherwise output won't be written
  359. ::If %Handbrakelog%==Yes Set LOG="--verbose=1 2> "%HandbrakelogDirectory%\HandbrakeLog.txt""
  360.  
  361. Goto :EOF
  362.  
  363. :DeleteOriginal
  364. Cd /d "%RipDir%\%volid%"
  365. Del "%volid%*.mkv"
  366. Cd /d "%RipDir%"
  367. Del "%volid%"
  368. Goto :EOF
  369.  
  370. :RiptoMKV
  371. cd /d %ScriptPath%
  372. del Advanced.txt
  373. Set Rip=1
  374. echo %Rip% >>Advanced.txt
  375. start /wait Advanced.bat
  376. del Advanced.txt
  377. GoTo :EOF
  378.  
  379. :EncodewithHandbrake
  380. cd /d %ScriptPath%
  381. del Advanced.txt
  382. Set Encode=2
  383. echo %Encode% >>Advanced.txt
  384. start /wait Advanced.bat
  385. del Advanced.txt
  386. GoTo :EOF
  387.  
  388. :EncodingSettings
  389. cd /d %ScriptPath%
  390. del Advanced.txt
  391. Set EnSettings=3
  392. echo %EnSettings% >>Advanced.txt
  393. start /wait Advanced.bat
  394. del Advanced.txt
  395. cd /d %ScriptPath%
  396. Set /p EncodingSettings=<value.txt
  397. del value.txt
  398. GoTo :EOF
  399.  
  400. :KeepUncompressedVersion
  401. cd /d %ScriptPath%
  402. del Advanced.txt
  403. Set Keep=4
  404. echo %Keep% >>Advanced.txt
  405. start /wait Advanced.bat
  406. del Advanced.txt
  407. GoTo :EOF
  408.  
  409. :SelectFile
  410. cd /d %ScriptPath%
  411. del Advanced.txt
  412. Set Select=5
  413. echo %Select% >>Advanced.txt
  414. start /wait Advanced.bat
  415. del Advanced.txt
  416. GoTo :EOF
  417.  
  418. :AdvancedModeOption
  419. cd /d %ScriptPath%
  420. del Advanced.txt
  421. Set AMO=6
  422. echo %AMO% >>Advanced.txt
  423. start /wait Advanced.bat
  424. del Advanced.txt
  425. GoTo :EOF
  426.  
  427. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  428. :: Change or add Handbrake Settings here :
  429. :: Format follows the tabs In handbrake, PICTURE settings include video filter as this is how it's referenced In the CLIGuide :
  430. :: For full explanations of settings, see here: https://trac.handbrake.fr/wiki/CLIGuide :
  431. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  432. :OriginalSettings
  433. Set RESOLUTION=720p
  434. Set PICTURE=--format mkv --width 1280
  435. Set VIDEO=-m -e x264 --quality 23
  436. Set AUDIO=--ab 64 --mixdown mono
  437. Set ADVANCED=-x b-adapt=2:rc-lookahead=50:me=umh:bframes=5:ref=6:direct=auto:trellis=2:subq=10:psy-rd=1.0,0.10:analyse=all
  438. Goto :EOF
  439.  
  440. :1080pLow
  441. Set RESOLUTION=1080p
  442. Set PICTURE=-f mkv -w 1920 --height 1080 --loose-anamorphic
  443. Set VIDEO=-m -e x264 -q 20 -r 29.97 --pfr
  444. Set AUDIO=-a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3
  445. Set ADVANCED=--x264-profile high
  446. Goto :EOF
  447.  
  448. :1080pMedium
  449. Set RESOLUTION=1080p
  450. Set PICTURE=-f mkv --decomb -w 1920 --height 1080 --loose-anamorphic --modulus 2
  451. Set VIDEO=-m -e x264 -q 20 --vfr
  452. Set AUDIO=-a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3
  453. Set ADVANCED=-x b-adapt=2:rc-lookahead=50
  454. Goto :EOF
  455.  
  456. :1080pHigh
  457. Set RESOLUTION=1080p
  458. Set PICTURE=-f mkv --decomb -w 1920 --height 1080 --crop 0:0:0:0 --loose-anamorphic --modulus 2
  459. Set VIDEO=-m -e x264 -q 20 --vfr
  460. Set AUDIO=-a 1,1 -E faac,copy:ac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3
  461. Set ADVANCED=-x b-adapt=2:rc-lookahead=50:ref=6:bframes=6:me=umh:subq=9:merange=64:analyse=all
  462. Goto :EOF
  463.  
  464. :720pLow
  465. Set RESOLUTION=720p
  466. Set PICTURE=-f mkv -w 1280 --loose-anamorphic
  467. Set VIDEO=-m -e x264 -q 20 -r 29.97 --pfr
  468. Set AUDIO=-a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3
  469. Set ADVANCED=--x264-profile high
  470. Goto :EOF
  471.  
  472. :720pMedium
  473. Set RESOLUTION=720p
  474. Set PICTURE=-f mkv --decomb -w 1280 --loose-anamorphic --modulus 2
  475. Set VIDEO=-m -e x264 -q 20 --vfr
  476. Set AUDIO=-a 1,1 -E faac,ffac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3
  477. Set ADVANCED=-x b-adapt=2:rc-lookahead=50
  478. Goto :EOF
  479.  
  480. :720pHigh
  481. Set RESOLUTION=720p
  482. Set PICTURE=-f mkv --decomb -w 1920 --height 1080 --crop 0:0:0:0 --loose-anamorphic --modulus 2
  483. Set VIDEO=-m -e x264 -q 20 --vfr
  484. Set AUDIO=-a 1,1 -E faac,copy:ac3 -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-copy-mask none --audio-fallback ffac3
  485. Set ADVANCED=-x b-adapt=2:rc-lookahead=50:ref=6:bframes=6:me=umh:subq=9:merange=64:analyse=all
  486. Goto :EOF
  487. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement