Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Problem with batch encoding with parens

Hello macjedi,


Thanks so much for an amazing set of tools. I have been working with a set of HD mkv's that I want to process and tag for iTunes import and creating a couple of different formats.

My problem is that if I store my mkv's in a folder that has parens or the filename contains them, the scripts bomb. It says that it cannot find any movies. Am I doing something wrong?

Many Thanks,

-jm
 
thank you sooo much mac.jedi for the wonderful tutorial, it has saved years off of my life. I have everything fine & running on my MBP, but I can't seem to get it started on my iMac. This shows up in the Terminal after I verify the name of the movie.


Freddies-iMac:~ fredlwilliams$ /Users/fredlwilliams/Library/Application\ Support/Batch\ Rip/batchRipTmp.sh ; exit;
2012-01-05 07:21:29.496 osascript[11183:707] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
2012-01-05 07:21:29.639 osascript[11184:707] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.

ERROR: MakeMKV.app command tool is not setup to execute
ERROR: attempting to use tool at /Applications/MakeMKV.app

ERROR: MakeMKV.app command tool could not be found
ERROR: MakeMKV.app can be installed in ./ /usr/local/bin/ /usr/bin/ ~/ or /Applications/

logout

[Process completed]

I've uploaded a new beta that includes some general fixes as well as additional support for certain usb drives.

http://db.tt/gvXEnFhX

Please download and install the app in /Applications.

In order to complete the update, please select Install Services to install the updated workflow files.

NOTE: THIS IS A BETA. NOT A RELEASE UPDATE.

Thanks!

mac.jedi

----------

Hello macjedi,


Thanks so much for an amazing set of tools. I have been working with a set of HD mkv's that I want to process and tag for iTunes import and creating a couple of different formats.

My problem is that if I store my mkv's in a folder that has parens or the filename contains them, the scripts bomb. It says that it cannot find any movies. Am I doing something wrong?

Many Thanks,

-jm

Hi warp1g!

Source FILES (MKVs, M4Vs, etc.) need to be located at the top level of source folder you've chosen in the workflow.

Example: "~/Movies/Batch Rip Movies/your movie.mkv"

Batch Encode will only descend into subfolders if the source is a BD or DVD "full backup" rip … containing the complete folder structure of the original disc.

Also, I should mention that this is only for non-Finder service. If you use the Batch Encode (Finder) Service it will encode which ever files you've selected.

I hope this helps!

Thanks!

mac.jedi
 
Last edited:
The latest version of makemkv 1.7.0 seems to output filenames like:
t00_Movie_Name.mkv where t00 is the track number.

This messes up the Jedi's BatchRip script.

I was wondering if others see the new behavior or if I set some makemkv option that enabled the new output naming convention.

Brandon
 
The latest version of makemkv 1.7.0 seems to output filenames like:
t00_Movie_Name.mkv where t00 is the track number.

This messes up the Jedi's BatchRip script.

I was wondering if others see the new behavior or if I set some makemkv option that enabled the new output naming convention.

Brandon

Hi Brandon,

Thanks for letting me know. I tested MakeMKV 1.7.0 and they have indeed changed the file naming scheme. I also checked the forum and it looks like it may change again in the next release. Thankfully, they list the output file name in the cli output when it scans the source. I'm doing some testing, but it may take a while before I can issue an update.

If you wanna tinker, you can try to change the line where it assigns a variable to the mkv temp file. In Batch Encode, it's line 839. I haven't taken a look at Batch Rip yet, but I'm sure the fix would be similar.

This is just a preliminary fix:
Code:
tmpFile=`"$makemkvconPath" -r --directio=false --minlength=$minTimeSecs info file:"$sourcePath" | egrep 'TINFO\:[0-9]{1,2},27,0' | sed 's|TINFO:0,27,0,||g'`

Note: the line above only works for Full BD backups, but it's a start :)

EDIT: I spoke too soon. The test failed. I'll need to do a bit more work. Stay tuned.
 
Question:

I finally had time to take a break and start doing TV Shows, after doing well over 1,000 movies..

Ripping pretty straightforward. Encoding pretty easy.. (You rock mac.jedi!!)

Okay after encoding tv shows I see they all have the TV Show comment.

I select the whole season and run Rename & Tag TV Shows.. Since they encoded TV shows never get tagged..

This seems to work, except for 1. The TV SHow Comment always disappears and i have to select al of them again and select the service to add TV Show comments back into each episode.

Anyway we can have the color be different on complete TV Shows? I use Hazel to move everything around and would love to be able to use a different color label for TV Shows vs Movies...
 
Question:

I finally had time to take a break and start doing TV Shows, after doing well over 1,000 movies..

Ripping pretty straightforward. Encoding pretty easy.. (You rock mac.jedi!!)

Okay after encoding tv shows I see they all have the TV Show comment.

I select the whole season and run Rename & Tag TV Shows.. Since they encoded TV shows never get tagged..

This seems to work, except for 1. The TV SHow Comment always disappears and i have to select al of them again and select the service to add TV Show comments back into each episode.

Anyway we can have the color be different on complete TV Shows? I use Hazel to move everything around and would love to be able to use a different color label for TV Shows vs Movies...

Hi gunthermic!

The easiest thing you could try is adding an action to the end of the service to either add a comment and/or change the label color. To do this you'd open the service workflow in Automator and add the action from the library, then save your changes.
 
Hi gunthermic!

The easiest thing you could try is adding an action to the end of the service to either add a comment and/or change the label color. To do this you'd open the service workflow in Automator and add the action from the library, then save your changes.

So then I am correct in that your Rename and & Add TV Tags doesn't add the comment back in? I wasnt doing anything wrong? LOL

the color when your Batch Encode is done it colors it green automatically. I guess I was wondering if the scriptign can be changed to all say purple to TV Shows and Green for Movies? When you finish Batch Encoding it, you do make the file as TV Show.. so your scriptign does know what type of file its doing.
 
ANNOUNCEMENT: BATCH RIP ACTIONS UPDATED

Update 2012-01-09

Release Notes
Batch Rip Actions for Automator 1.0.9

IMPORTANT: This update includes new Service workflows. You will need to install the new workflows in order to complete the update.

1.0.9 build 262

  • Addresses issues with Batch Rip and Batch Encode not recognizing some external USB BD-ROM drives/enclosures.
  • Fixed an issue with MakeMKV v1.7.0 auto-file naming. NOTE: This update requires MakeMKV v1.7.x.

To upgrade an existing version of Batch Rip Actions for Automator, choose Check for update in the application menu.

Thanks!

mac.jedi
 
Last edited:
ANNOUNCEMENT: BATCH RIP ACTIONS UPDATED

Update 2012-01-09

Release Notes
Batch Rip Actions for Automator 1.0.9

IMPORTANT: This update includes new Service workflows. You will need to install the new workflows in order to complete the update.

1.0.9 build 262

  • Addresses issues with Batch Rip and Batch Encode not recognizing some external USB BD-ROM drives/enclosures.
  • Fixed an issue with MakeMKV v1.7.0 auto-file naming. NOTE: This update requires MakeMKV v1.7.x.

To upgrade an existing version of Batch Rip Actions for Automator, choose Check for update in the application menu.

Thanks!

mac.jedi

Cool Beans.

So no way to automated TV Shows is there?

Put in TV SHow, search name, adust SXDX, rip, and then encode.

The encoding part can't in no way add metatags becuase it has no idea on episode numbers etc.. right?

If we want the TV Shows to show up in the Air Date order, we must rename the episode number to be in the right order?

Example STNG has the 5th one Aired on DVD#3..not on 1 or 2.
 
Cool Beans.

So no way to automated TV Shows is there?

Put in TV SHow, search name, adust SXDX, rip, and then encode.

The encoding part can't in no way add metatags becuase it has no idea on episode numbers etc.. right?

If we want the TV Shows to show up in the Air Date order, we must rename the episode number to be in the right order?

Example STNG has the 5th one Aired on DVD#3..not on 1 or 2.

Hi gunthermic!

Sorry, I don't understand your first question.

As for the second, yeah … there is no way to reliably know what episode is track 1 vs track 3. I've seen some discs even have duplicate tracks for whatever reason.

My workflow for tv discs is to rip the entire season. Then run batch encode to encode all the tracks. I'll then do "quick look" on each file and scrub through to compare the content to the tvdb website. In most cases I don't have to reorder the tracks, just weed out any dups or "extras" that may have been encoded. To make it easy, I usually just choose the sort order that matches the order of my files.

----------

Example STNG has the 5th one Aired on DVD#3..not on 1 or 2.

It's been a while since I did those, but I probably used the DVD sort order. If want them in a particular order, you'd have to number them manually. You could even do them by stardate ;)
 
Hi gunthermic!

Sorry, I don't understand your first question.

As for the second, yeah … there is no way to reliably know what episode is track 1 vs track 3. I've seen some discs even have duplicate tracks for whatever reason.

My workflow for tv discs is to rip the entire season. Then run batch encode to encode all the tracks. I'll then do "quick look" on each file and scrub through to compare the content to the tvdb website. In most cases I don't have to reorder the tracks, just weed out any dups or "extras" that may have been encoded. To make it easy, I usually just choose the sort order that matches the order of my files.

----------



It's been a while since I did those, but I probably used the DVD sort order. If want them in a particular order, you'd have to number them manually. You could even do them by stardate ;)

You of course answered my question. Just no-way to autmated TV Shows like Movies. I do so little to movies.. lol pop in and walk away.. come back and the RIps are on my NAS, a copy into iTunes, and a copy put into pogoPlug for access anywhere... TV Shows not so much..lol

STNG, has some wierd ordering though... When stories happen that can cause quite a mess. lol is it just renaming the file and Itunes just puts it in that order?
 
You of course answered my question. Just no-way to autmated TV Shows like Movies. I do so little to movies.. lol pop in and walk away.. come back and the RIps are on my NAS, a copy into iTunes, and a copy put into pogoPlug for access anywhere... TV Shows not so much..lol

STNG, has some wierd ordering though... When stories happen that can cause quite a mess. lol is it just renaming the file and Itunes just puts it in that order?

You still have to tag em' after you're confident they're in order.
 
Any chance of getting the source code for the compiled scripts?

Hi joswald94123!

All the scripts are accessible and editable from the Actions menu in the app. They aren't written in cocoa, so they are not compiled … just text files.

Thanks!

Mac.jedi
 
Increased Handbrake Times - since upgrade

Not sure if this is the correct place for this - but here goes

I have just had to change out my iMacs 1tb HD due to failure and replaced it with a 256 SSD and while i was at it increased my ram up to 16gig

i have reinstalled everything required as per mac.jedi's excellent workflow ( thanks for the hard work ) and all appears to be working well apart from the fact that my handbrake encoding times for the :apple:TV2 preset have gone from approx. 1-2hrs up to 4 hrs for a blue ray rip

to be honest with more mem and a SSD installed i was not expecting it to take longer

Any ideas ??

Phil G
 
You proces allows to select Data Aird vs DVD order, how does this come into play with your process?

Depends on the source data I guess. Some shows were broadcast in the 'wrong' order - something that was corrected in the subsequent DVD release - Firefly would be a good example of this, In the original broadcast order 'The Train Job' was S01E01, but on the DVD release it was S01E03 (the *original* first ep that Fox rejected (the Serenity two-parter) was S01E01-02 on the DVD release)

So - if you'd ripped the DVDs you'd want to specify the latter, but if your pulled the data off your PVR or downloaded broadcast rips you'd specify the former otherwise your episode numbers, names and subsequently the metadata attached to the episode as the scripts process would all be wrong.
 
Not sure if this is the correct place for this - but here goes

I have just had to change out my iMacs 1tb HD due to failure and replaced it with a 256 SSD and while i was at it increased my ram up to 16gig

i have reinstalled everything required as per mac.jedi's excellent workflow ( thanks for the hard work ) and all appears to be working well apart from the fact that my handbrake encoding times for the :apple:TV2 preset have gone from approx. 1-2hrs up to 4 hrs for a blue ray rip

to be honest with more mem and a SSD installed i was not expecting it to take longer

Any ideas ??

Phil G


Encoding bottlenecks in the CPU, not the hard drive, SSD or no. The increased coding time must be something wrong with your HB settings. Are you inadvertently changing the frame rate perhaps?
 
You proces allows to select Data Aird vs DVD order, how does this come into play with your process?

Depends on the source data I guess. Some shows were broadcast in the 'wrong' order - something that was corrected in the subsequent DVD release - Firefly would be a good example of this, In the original broadcast order 'The Train Job' was S01E01, but on the DVD release it was S01E03 (the *original* first ep that Fox rejected (the Serenity two-parter) was S01E01-02 on the DVD release)

So - if you'd ripped the DVDs you'd want to specify the latter, but if your pulled the data off your PVR or downloaded broadcast rips you'd specify the former otherwise your episode numbers, names and subsequently the metadata attached to the episode as the scripts process would all be wrong.

Chimaera is correct. The tvdb has two sort options available … date aired and DVD. There should be a sort order option at the bottom of each season's web page. You should check the website to compare the order of your files with the different sort options and use the one that matches your files.

Please note that even though your source was DVD, tvdb's "DVD" sort order may not be correct. This could be caused by a number of factors … tvdb's data is community driven so it could have been imputed incorrectly, the DVD or BD episode order was changed by the studio in a later release, or the order was different in the U.S. than international. This is why it's considered good practice to check em' before renaming or tagging.
 
Wierd problem.

MASH Season 5 episode 23(Disc#3 Episode 7). Always comes out to 94 megs(which is about 5 minutes ofd the show.)

I have tried to Re-ripp and also re-encode several times. Always crusing along then says complete at 94 megs. Looking at terminal window is says the track 7 is 22+ minutes.

Any ideas. Brand new DVD set, not a scratch. Tried 3 different DVD player to rip it so to make sure it's ripping it.. But like I said the batchEncode process sasy track 7 is 22 minutes long, so it's reading the file I would assume

What can i do to just get this dang episode so i can completel the season??
 
Wierd problem.

MASH Season 5 episode 23(Disc#3 Episode 7). Always comes out to 94 megs(which is about 5 minutes ofd the show.)

I have tried to Re-ripp and also re-encode several times. Always crusing along then says complete at 94 megs. Looking at terminal window is says the track 7 is 22+ minutes.

Any ideas. Brand new DVD set, not a scratch. Tried 3 different DVD player to rip it so to make sure it's ripping it.. But like I said the batchEncode process sasy track 7 is 22 minutes long, so it's reading the file I would assume

What can i do to just get this dang episode so i can completel the season??

That happened to me once with an episode of Buffy or Angel. You can try the Handbrake GUI directly on the problem title, but chances are that it will have the same problem. It's usually an issue with the disc. I've tried watching the episode in Apple's DVD Player or a real DVD player, and it usually breaks up or locks up right around the duration that HB says it ends. Unfortunately, the only option I had at that point was to purchase the episode on iTunes … it was one of my wife's favorite shows and it made her happy, so I considered it money well spent :)
 
Multiple Files

I have a quick question about the Batch Rip.Batch Rip through Fairmount.

Why is it that when the DVD is ripped, a VIDEO_TS folder gets created and then makes numerous files? Is there a way to make Fairmount or whatever program turn that into 1 sinlge file that just contains the movie? Pardon me if I am asking a question that seems elementary. I just want to make sure I am set up doing this the right way. Thanks
Josh
 
I have a quick question about the Batch Rip.Batch Rip through Fairmount.

Why is it that when the DVD is ripped, a VIDEO_TS folder gets created and then makes numerous files? Is there a way to make Fairmount or whatever program turn that into 1 sinlge file that just contains the movie? Pardon me if I am asking a question that seems elementary. I just want to make sure I am set up doing this the right way. Thanks
Josh

Fairmount rips the .VOB files on the DVD (i.e. decrypts and copies them to your hard drive). They then have to be encoded into a video file which can be played back. There are 1-step tools that do this, however in my experience, they are either expensive or don't do the job very well. To my knowledge, Fairmount does not do this.

Personally, I use MakeMKV or RipIt to rip, and Handbrake (what else!) to encode.

The Automator scripts MacJedi has written make the job a lot easier though.
 
Okay, thanks for the reply Frosticus. I should have continued reading, because I realize now that just one step further into the procedure had the answer that I was looking for. Everything is good now. Thanks again.

Josh
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.