Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resulting MKVs ripped in target directory. #9

Open
phathak opened this issue Dec 29, 2015 · 11 comments
Open

Resulting MKVs ripped in target directory. #9

phathak opened this issue Dec 29, 2015 · 11 comments

Comments

@phathak
Copy link

phathak commented Dec 29, 2015

Hi again!

I've been using bulk for a few weeks now and today I noticed something weird. When I cd into the target dir, here's what I find.

htmac:target htmac$ ls -l
total 99577912
drwxr-xr-x  2 htmac  staff           68 Nov 14 00:20 \Volumes\My_Passport\BULKMKV\new\J_Edgar\
drwxr-xr-x  2 htmac  staff           68 Nov  2 23:02 \Volumes\My_Passport\BULKMKV\new\MAD_MAX_FURY_ROAD\
-rw-r--r--  1 htmac  staff  23431185031 Nov  2 22:51 \Volumes\My_Passport\BULKMKV\new\MAD_MAX_FURY_ROAD\\MAD_MAX_FURY_ROAD.mkv
drwxr-xr-x  2 htmac  staff           68 Nov 13 10:13 \Volumes\My_Passport\BULKMKV\new\Pixels.2015.3D.Blu-ray.1080p.AVC.TrueHD.7.1.Atmos-HDArea\
drwxr-xr-x  2 htmac  staff           68 Nov  4 01:10 \Volumes\My_Passport\BULKMKV\new\Southpaw.2015.MULTI.1080p.BluRay.COMPLETE.AVC-DreamHD\
-rw-r--r--  1 htmac  staff  27546494342 Nov  4 00:43 \Volumes\My_Passport\BULKMKV\new\Southpaw.2015.MULTI.1080p.BluRay.COMPLETE.AVC-DreamHD\\Southpaw.2015.MULTI.1080p.BluRay.COMPLETE.AVC-DreamHD.mkv
drwxr-xr-x  2 htmac  staff           68 Nov 14 02:19 \Volumes\My_Passport\BULKMKV\new\Terminator.Genisys.2015.3D.Blu-ray.1080p.AVC.TrueHD.7.1.Atmos-HDArea\
drwxr-xr-x  2 htmac  staff           68 Nov 15 10:30 \Volumes\My_Passport\BULKMKV\new\White_House_Down_F13\
-rw-r--r--  1 htmac  staff      6201192 Nov  2 10:43 bulkMakeMkv.jar
-rw-r--r--  1 htmac  staff         3560 Nov  4 22:53 config.properties

I went checking my config file but nothing in there seems to tell bulk to rip into this dir. Maybe the program is formating paths with backslashes in OSX and the result is that OSX is making a new dir with the path as the name and puting it at the root of the program (the target dir)? Every paths should be formated with forwardslahes in OSX.

# Here you can specify how the program behaves. We have several modes
# at your disposal which are described in detail below.
#
# Currently supported modes are:
#  scan                 Don't do a conversion but only scan target-directories
#                               for peculiar things (zero-size files, empty directories,
#                               etc...) and display a summary at the end.
#  convert              Do a real conversion of all files and scan afterwards.
#
# You may add the word 'debug' to any of these modes in order to get the full
# output of the makeMKV tool when it is called to convert.
# words doesn't matter.
mode = convert debug
#mode = convert
#mode = debug scan
#mode = convert debug

# This option manipulates escaping when it comes to paths. Use windows or mac.
os = mac

# The directories where your ISO-files are located.
#
# IMPORTANT FOR ALL PATH-SPECIFICATIONS:
# Always use forward slashes ('/') like in the examples below!
# Don't ever use backslashes ('\') since there are multiple issues with the
# JVM on different systems (non-windows) causing the command-line calls
# to fail!
#
# If you want to specify more than one, just add another isoDirs-parameter
# (same name) below the current one.
isoDirs = /Volumes/My_Passport/BULKMKV/iso/
#isoDirs = C:/
#isoDirs = G:/
#isoDirs = H:/DVDs/

# Regular expressions identifying the ISO-file-names you want converted.
# The regular expressions are evaluated against the plain file-name of the
# ISO-file. The file is converted if any of the given regular expressions
# match.
#
# If you want to specify more than one, ust add another isoRegExps-parameter
# (same name) below the current one.
#isoRegExps = [f|F]ringe

# This is the temporary directory which is used when makeMKV is working.
# Be sure it doesn't contain files named "title<NN>.mkv" (the program
# checks for any mkv-files starting with "title") since that would collide
# with the files makeMKV wants to make.
# Other than that you may chose any directory.
# It stands to reason for this directory to be on the same drive as the
# mkvDir, since the copy-process won't involve any real data-transfer this
# way.
tempDir = /Volumes/My_Passport/BULKMKV/temp/

# This is the directory where the program will create the right directories
# in containing the resulting MKV-files.
mkvDir = /Volumes/My_Passport/BULKMKV/new/

# This is a list of directories the program will look for already converted
# MKV-files in. The directories will be searched recursively.
# The mkvDir is in this list by default. No need to add it manually.
#
# If you want to specify more than one, just add another observeMkvDirs-
# parameter (same name) below the current one.
observeMkvDirs = /Volumes/My_Passport/BULKMKV/iso/
observeMkvDirs = /Volumes/My_Passport/BULKMKV/new/
observeMkvDirs = /Volumes/My_Passport/BULKMKV/temp/
observeMkvDirs = /Volumes/My_Passport/Movies
observeMkvDirs = /Volumes/My_Passport/Downloads/Movies
observeMkvDirs = /Volumes/My_Passport/Downloads/ISOs
#observeMkvDirs = //babylon5/Movies3/MOVIES
#observeMkvDirs = //babylon5/Movies3/FILMS

# If set to true, then all series are converted. If not present or set to
# false, all series are omitted.
convertShows = false

# If set to true, then all movies are converted. If not present or set to
# false, all movies are omitted.
convertMovies = true

# The location of your local makeMKV-installation. Be sure to contain the
# name of the runtime as well, not only the directory.
makeMkvCommand = /Applications/MakeMKV.app/Contents/MacOS/makemkvcon

makeMkvTempFileExtension = mkv
mkvFileExtension = mkv
isoFileExtension = iso

Thank you.

@guFalcon
Copy link
Member

Hi!
Long time no see.
Sorry. I was pretty distracted by our game Throbax TD for which I'm currently implementing multiplayer... that's some stress I tell you...

I'm not sure I understand your question right. You have the path mkvDir = /Volumes/My_Passport/BULKMKV/new/ in your config as target directory and all your movies are generated there as I see in your ls output.
So from my point of view it seems just like it should be or am I missing something?

@phathak
Copy link
Author

phathak commented Dec 31, 2015

All of the movies are generated in the ~/bulkmakemkv/target directory. Where the script is located...

I'll definitely take a look at your game. Sounds like you put a lot of effort in this one.

Bruno-Pierre Jobin

On Dec 31, 2015, at 8:22 AM, guFalcon [email protected] wrote:

Hi!
Long time no see.
Sorry. I was pretty distracted by our game Throbax TD for which I'm currently implementing multiplayer... that's some stress I tell you...

I'm not sure I understand your question right. You have the path mkvDir = /Volumes/My_Passport/BULKMKV/new/
in your config as target directory and all your movies are generated there as I see in your ls output.
So from my point of view it seems just like it should be or am I missing something?


Reply to this email directly or view it on GitHub.

@guFalcon
Copy link
Member

Hmmm. I see... My first reaction was:
But you tell it to do that. You say that the target folder is /Volumes/My_Passport/BULKMKV/new/ which is a relative path as far as I know. So that relative path is 'from the execution point of the jar', so to say...
But now I see that /Volumes/My_Passport/BULKMKV/new/ IS an absolute path. So my program does some weird things. I'll check that for you.

As for the game:
Cool. We've been on and off it for the last 4 years now. Finally we started early access on Steam.
It's a tower-defense game and I'll be happy to provide you with a free Steam-key for the patience you've had with me the past year, if you send me an email ([email protected]) since I don't want to do that on Github :)

@guFalcon
Copy link
Member

Hmmm. Could you look where your temp-dir gets created? It should be tempDir = /Volumes/My_Passport/BULKMKV/temp/ according to your config.
Does THAT one work?

@phathak
Copy link
Author

phathak commented Dec 31, 2015

I already created it myself at this location but should I let the program create it by itself?

Bruno-Pierre Jobin

On Dec 31, 2015, at 9:04 AM, guFalcon [email protected] wrote:

Hmmm. Could you look where your temp-dir gets created? It should be tempDir = /Volumes/My_Passport/BULKMKV/temp/ according to your config.
Does THAT one work?


Reply to this email directly or view it on GitHub.

@guFalcon
Copy link
Member

It can, but it doesn't have to. The temp-dir is only checked to be empty when a conversion starts (in order to prevent you from accidentally deleting a previous conversion that didn't finish properly).
No. Just watch if the titlexx.mkv-files are generated there during conversion, that's all.
That would be helpful.

@guFalcon
Copy link
Member

Also:
Please check if the CORRECT directories in the correct locations exist as well. Or are the directories in your target-dir the only ones my program creates?

@guFalcon
Copy link
Member

I've pushed a new version.
I corrected all the ambiguities present in the path-resolving part of the program and tested it on windows.
I really hope that resolves your problems. Please try it.

Beware
The jar-name has changed. I now use the maven-assembly plugin to automatically generate the jar.
It's still in the target directory...

Start the program, as you would start any jar by typing:

java -jar bulk-makemkv-0.2-jar-with-dependencies.jar

or put these lines in a batch-file (should be more convenient):

java -jar bulk-makemkv-0.2-jar-with-dependencies.jar
pause

So I hope all is well, send an email so that I can send you the key for the game back and happy new year.

Psilo

@phathak
Copy link
Author

phathak commented Jan 2, 2016

So here's the output I have. I checked the created directories and the new and temp dirs are created at the right location /Volumes/My_Passport/BULKMKV/

htmac:target htmac$ java -jar bulk-makemkv-0.2-jar-with-dependencies.jar
Converting... (this will definitely take a while depending on the number of unconverted files in your observeMkvDirs directories)
skipping:  (not an .iso file)
converting: Vacation (2015)
/Applications/MakeMKV.app/Contents/MacOS/makemkvcon mkv iso:/Volumes/My_Passport/BULKMKV/iso/Vacation\ (2015).iso all -r --progress=-same /Volumes/My_Passport/BULKMKV/temp/
  MSG:1005,0,1,"MakeMKV v1.9.8 darwin(x86-release) started","%1 started","MakeMKV v1.9.8 darwin(x86-release)"
  MSG:5074,0,0,"Automatic checking for updates is enabled, you may disable it in preferences if you don't want MakeMKV to contact web server.","Automatic checking for updates is enabled, you may disable it in preferences if you don't want MakeMKV to contact web server."
  PRGT:5018,0,"Scanning CD-ROM devices"
  PRGC:5018,0,"Scanning CD-ROM devices"
  PRGV:0,0,65536-------]
  PRGV:0,0,65536-------]
  PRGV:65536,0,65536---]
  PRGV:65536,65536,65536
  MSG:5042,0,0,"The program can't find any usable optical drives.","The program can't find any usable optical drives."
  DRV:0,256,999,0,"","",""
  DRV:1,256,999,0,"","",""
  DRV:2,256,999,0,"","",""
  DRV:3,256,999,0,"","",""
  DRV:4,256,999,0,"","",""
  DRV:5,256,999,0,"","",""
  DRV:6,256,999,0,"","",""
  DRV:7,256,999,0,"","",""
  DRV:8,256,999,0,"","",""
  DRV:9,256,999,0,"","",""
  DRV:10,256,999,0,"","",""
  DRV:11,256,999,0,"","",""
  DRV:12,256,999,0,"","",""
  DRV:13,256,999,0,"","",""
  DRV:14,256,999,0,"","",""
  DRV:15,256,999,0,"","",""
  Use: makemkvcon [switches] Command [Parameters]
  Commands:][----------]
  info <source>--------]
  prints info about disc
  mkv <source> <title id> <destination folder>
  saves a single title to mkv file
  stream <source>------]
  starts streaming server
  backup <source> <destination folder>
  backs up disc to a hard drive
  Source specification:]
  iso:<FileName>    - open iso image <FileName>
  file:<FolderName> - open files in folder <FolderName>
  disc:<DiscId>     - open disc with id <DiscId> (see list Command)
  dev:<DeviceName>  - open disc with OS device name <DeviceName>
  Switches:][----------]
  -r --robot        - turn on "robot" mode, see http://www.makemkv.com/developers
[----------][----------]  exitValue: 1
Done converting.
Scanning... (this may take a while depending on the number and size of your observeMkvDirs directories)
######### SCAN RESULTS: #########
Not yet converted ISOs:
  /Volumes/My_Passport/BULKMKV/iso/Vacation (2015).iso

Empty directories:
  /Volumes/My_Passport/BULKMKV/new
  /Volumes/My_Passport/BULKMKV/new
  /Volumes/My_Passport/BULKMKV/temp
  /Volumes/My_Passport/Movies/.TemporaryItems/folders.501

Empty files (files with size zero):

Wrong number of episodes in directory:

Done scanning.
#################################
Done.


Also, the log.err file gives me this error.

Error: Unable to access jarfile bulkMakeMkv.jar

@guFalcon
Copy link
Member

guFalcon commented Jan 2, 2016

Jup. You have to change your startup-file (it's a batch-file in windows) like I told you in my last reply (please read the last post, especially the part under the title 'BEWARE' ;).

cu,
G.

@phathak
Copy link
Author

phathak commented Jan 3, 2016

It's weird because I did. Here's my sh file :

cd ~/bulkmakemkv/target/
java -jar bulk-makemkv-0.2-jar-with-dependencies.jar

In any case, I'm starting it manually for testing purposes. I'm basically doing the same thing. I don't understand why it's not converting since it works when I paste the line manually...

Also, you should check at how you format special characters in OSX. I don't know about Windows, but when you want to type parentheses in OSX, you need to precede it with a backslash. Same as the space character. So instead of Vacation\ (2015) it would be Vacation\ \(2015\)

The log.err is empty btw.

htmac:~ htmac$ cd bulkmakemkv/target/
htmac:target htmac$ java -jar bulk-makemkv-0.2-jar-with-dependencies.jar
Converting... (this will definitely take a while depending on the number of unconverted files in your observeMkvDirs directories)
skipping:  (not an .iso file)
converting: Vacation (2015)
/Applications/MakeMKV.app/Contents/MacOS/makemkvcon mkv iso:/Volumes/My_Passport/BULKMKV/iso/Vacation\ (2015).iso all -r --progress=-same /Volumes/My_Passport/BULKMKV/temp/
  MSG:1005,0,1,"MakeMKV v1.9.8 darwin(x86-release) started","%1 started","MakeMKV v1.9.8 darwin(x86-release)"
  MSG:5074,0,0,"Automatic checking for updates is enabled, you may disable it in preferences if you don't want MakeMKV to contact web server.","Automatic checking for updates is enabled, you may disable it in preferences if you don't want MakeMKV to contact web server."
  PRGT:5018,0,"Scanning CD-ROM devices"
  PRGC:5018,0,"Scanning CD-ROM devices"
  PRGV:65536,0,65536---]
  PRGV:65536,65536,65536
  MSG:5042,0,0,"The program can't find any usable optical drives.","The program can't find any usable optical drives."
  DRV:0,256,999,0,"","",""
  DRV:1,256,999,0,"","",""
  DRV:2,256,999,0,"","",""
  DRV:3,256,999,0,"","",""
  DRV:4,256,999,0,"","",""
  DRV:5,256,999,0,"","",""
  DRV:6,256,999,0,"","",""
  DRV:7,256,999,0,"","",""
  DRV:8,256,999,0,"","",""
  DRV:9,256,999,0,"","",""
  DRV:10,256,999,0,"","",""
  DRV:11,256,999,0,"","",""
  DRV:12,256,999,0,"","",""
  DRV:13,256,999,0,"","",""
  DRV:14,256,999,0,"","",""
  DRV:15,256,999,0,"","",""
  Use: makemkvcon [switches] Command [Parameters]
  Commands:][----------]
  info <source>--------]
  prints info about disc
  mkv <source> <title id> <destination folder>
  saves a single title to mkv file
  stream <source>------]
  starts streaming server
  backup <source> <destination folder>
  backs up disc to a hard drive
  Source specification:]
  iso:<FileName>    - open iso image <FileName>
  file:<FolderName> - open files in folder <FolderName>
  disc:<DiscId>     - open disc with id <DiscId> (see list Command)
  dev:<DeviceName>  - open disc with OS device name <DeviceName>
  Switches:][----------]
  -r --robot        - turn on "robot" mode, see http://www.makemkv.com/developers
[----------][----------]  exitValue: 1
Done converting.
Scanning... (this may take a while depending on the number and size of your observeMkvDirs directories)
######### SCAN RESULTS: #########
Not yet converted ISOs:
  /Volumes/My_Passport/BULKMKV/iso/Vacation (2015).iso

Empty directories:
  /Volumes/My_Passport/BULKMKV/new
  /Volumes/My_Passport/BULKMKV/new
  /Volumes/My_Passport/BULKMKV/temp
  /Volumes/My_Passport/Movies/.TemporaryItems/folders.501

Empty files (files with size zero):

Wrong number of episodes in directory:

Done scanning.
#################################
Done.
htmac:target htmac$ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants