Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
dhy8386!

Thanks for your post! IMO, AnyDVDHD is still the way to go for BD to disk. MakeMKV works great for what it does, but I prefer having a complete backup as well.

Regarding your questions, Batch Rip and Batch Encode were designed to work in "batches." At start-up, Batch Encode creates a list of all the sources it finds in its "input directories" and processes them. If a new source is added to an input directory while its running it won't do anything with it.

If another Batch Encode process is initiated on the same input folders, it will try to encode all the sources that reside there, even if they are already being processed, so you could end up with dups or other issues.

One solution to this would be to create two Batch Encode Services. Each Service should have different sets of source folders and maybe even a different output folder. That way they won't try to encode the same sources files.

Make sense? I used to do something similar, but I've not tested it in a while. I'm not entirely sure how BDSup2Sub or makemkvcon handles multiple processes. But if you get it working let me know. I might try it out for myself when I get the chance.

Thanks again for your post!

Mac.jedi

Thanks. I think you didnt quite get what I was saying but i created a small applescript which solves my problem. Wasnt an issue of the encode workflow trying to act on the same files again or before they were finished. rather, because the process can take 2 hours or more per movie, i end up in a situation where the first batch picks of 3 movies, puts them in a queue and starts with movie one. Subsequently as that process is going on more movies are added to the batch folder and another encode workflow is kicked off on the new movies. This can happen a few times in a short amount of time and i didnt want more than 2 instances of handbrakeCLI running at once.

Hence, i wrote this little applescript to check how many instances of handbrakecli are running and if its 2, then do not run your /appworkflow/application for encoding movies. If its only 1 or none, workflow can run. This script is tied into my Hazel actions which is controlling when/how often the script runs and if file acted on. If you wanted the applescript to be more self contained and tied you could expand it somewhat.

Code:
set myString to do shell script " /bin/ps -ax"
set allWords to (every word of myString)
set wordcount to 0
repeat with i in my allWords
	if i contains "HandBrakeCLI" then set wordcount to wordcount + 1
end repeat

if wordcount < 2 then
	activate application "Batch_Encode_Movies"
else
	error number -128
end if
 
This truly has made life easier to put movies into my iTunes. Mac.jedi was awesome over thispast weekend helping me work out some issues i was having getting it run on my first Mac. Made me feel god about buying the mini. I have that poor Mini going non-stop ripping, encoding. How awesoem for him to have put this much effort into this and sharing it without asking for anything. And won't take anything. Lookign forward to any enhancements you can make to another version. The possibilities are endless.

P.S. Can you please have it make me a cup of coffee as well?? :D
 
Hey,

Great job with the automation. This has been working perfectly for many of my DVDs.
Im not sure if this was covered in another thread, but would there be any way when you insert a dvd for auto-ripping, it asks for the DVD name beforehand so it can already have the title in place on the folder for encoding?

It would basically be the "Rename Movie Items" on top of the "Batch Rip (Service)" so when I "Batch Encode" it will have the correct filename in place.

Im sorry if this is redundant and someone's already asked this. I love your program.

Thanks
 
Hey,

Great job with the automation. This has been working perfectly for many of my DVDs.
Im not sure if this was covered in another thread, but would there be any way when you insert a dvd for auto-ripping, it asks for the DVD name beforehand so it can already have the title in place on the folder for encoding?

It would basically be the "Rename Movie Items" on top of the "Batch Rip (Service)" so when I "Batch Encode" it will have the correct filename in place.

Im sorry if this is redundant and someone's already asked this. I love your program.

Thanks

jschonert!

That's a great idea! I'll play with the concept and see if I could make that an option. The trick would be to get the info from thetvdb.com/themoviedb.org so it would work for TV and Movies … have the action wait for the user input (when doing more than one disc at a time) … and continue if you decide not to input anything. I'll see what I can do, but I'm not sure if I can make it happen before the next update which should come out shortly.

Thanks for the post!

mac.jedi
 
Hi,

Just wondering, what's the best way to make use of the new Handbrake presets for the likes of the iPhone 4, iPad and Apple TV2? Do I need to add something to the workflow custom parameters?

Also, what is the easiest way to modify your scripts to allow me to create two separate handbrake encodes: one for AppleTV2 and the second for iPhone/iPod?

Thanks and kind regards to mac.jedi,
Craig
 
Hi,

Just wondering, what's the best way to make use of the new Handbrake presets for the likes of the iPhone 4, iPad and Apple TV2? Do I need to add something to the workflow custom parameters?

Also, what is the easiest way to modify your scripts to allow me to create two separate handbrake encodes: one for AppleTV2 and the second for iPhone/iPod?

Thanks and kind regards to mac.jedi,
Craig

Craig!

Right now, the default encode settings are optimized for Apple A4 devices. Depending on the source resolution, they should work fine on all those devices. The latest handbrake nightly build revised some of the names of the presets and a previous build added presets for each new device. I also think the hb cli wiki has been updated with all the new args. To customize your settings in the actions you'll have to enter them in the custom settings panel in the workflow. The tutorial also lists a couple variables that can be used in the args so the action can still get the best audio and subtitle tracks. The next version of batch encode will have better support for presets as well as multiple encodes for both DVD and Blu-ray. I'm testing the next version now and it should be released soon.

Thanks!

mac.jedi
 
Craig!

Right now, the default encode settings are optimized for Apple A4 devices. Depending on the source resolution, they should work fine on all those devices. The latest handbrake nightly build revised some of the names of the presets and a previous build added presets for each new device. I also think the hb cli wiki has been updated with all the new args. To customize your settings in the actions you'll have to enter them in the custom settings panel in the workflow. The tutorial also lists a couple variables that can be used in the args so the action can still get the best audio and subtitle tracks. The next version of batch encode will have better support for presets as well as multiple encodes for both DVD and Blu-ray. I'm testing the next version now and it should be released soon.

Thanks!

mac.jedi

Hi,

Thanks for responding, sounds like a plan! :)

It's been a while since I've done any encoding but my interest is renewed by the fact I'm getting an AppleTV 2 for Christmas as we have recently bought our first HD Plasma TV. I've also got an iPad and iPhone 4 so there is considerable A4 chip convergence going on which should make things a lot simpler in future.

I've come to the conclusion though that I need 2 separate encodes for my needs, one high quality AppleTV 2 encode with AC3 sound and one iPad/iPhone4 with AAC sound. The former will be 1.5GB to 3GB with the latter being typically 400MB to 800MB. I'm hoping I can use your workflow to automate this double encode, with some tweaks if necessary.

I'll queue up my rips just now ready for encoding once your next software release is ready.

Thanks again,
Craig.
 
Hi,

I've come to the conclusion though that I need 2 separate encodes for my needs, one high quality AppleTV 2 encode with AC3 sound and one iPad/iPhone4 with AAC sound. The former will be 1.5GB to 3GB with the latter being typically 400MB to 800MB. I'm hoping I can use your workflow to automate this double encode, with some tweaks if necessary.

I'll queue up my rips just now ready for encoding once your next software release is ready.

Thanks again,
Craig.

Craig,

I am by no means an expert, but I encode all my HD at 1280X720 with AC3 and ACC and they work on both ATV2 and iPad. teh ATV2 plays Dobly Digital 5.1 and the iPad plays the 2 Channel AAC sound. 1 Encode suits both.

My issues onyl is that I have a ATV1 as well. and it craps out on my encodes. I really would hate to have to encode all BD differently just for it. I might just chuck the ATV1.
 
Craig,

I am by no means an expert, but I encode all my HD at 1280X720 with AC3 and ACC and they work on both ATV2 and iPad. teh ATV2 plays Dobly Digital 5.1 and the iPad plays the 2 Channel AAC sound. 1 Encode suits both.

My issues onyl is that I have a ATV1 as well. and it craps out on my encodes. I really would hate to have to encode all BD differently just for it. I might just chuck the ATV1.

Hi,
Yes you are right, but compatibility isn't my main issue. I am more concerned with the size of the AC3 encoded files. I want to be able to carry 20 or 30 movies with me on my 32GB iPad/iPhone when travelling and with AppleTV 2 AC3 movies coming in at 3GB each this is not possible. The same with my iPhone which is also 32GB. I was using Universal preset previously but this has the double effect of using iPod compatible compression features with the added AC3 sound so the files are very large.

Add to this the fact that my daughter has an iPhone 3G 8GB and my son has an iPod Touch 4G 8GB and my other daughter has an iPod nano 4G 8GB and it becomes difficult to have a single encode which will work for all devices in the household. I don't want to compromise the AppleTV2 quality but I need iPod Nano 4G 8GB compatibility and small file size so the only option is two encodes. I plan to use the iPhone/iPod Touch encode for small files and the AppleTV2 encode for large ones. I just need to double check that the iPod Nano can read the small encodes. The iPhone/iPod encodes are very fast compared to the AppleTV encodes so won't add much time penalty to the overall process.

Hopefully this explains my situation better, sorry for the confusion and thanks again for your suggestion.
Craig.
 
Add to this the fact that my daughter has an iPhone 3G 8GB and my son has an iPod Touch 4G 8GB and my other daughter has an iPod nano 4G 8GB and it becomes difficult to have a single encode which will work for all devices in the household. I don't want to compromise the AppleTV2 quality but I need iPod Nano 4G 8GB compatibility and small file size so the only option is two encodes. I plan to use the iPhone/iPod Touch encode for small files and the AppleTV2 encode for large ones. I just need to double check that the iPod Nano can read the small encodes. The iPhone/iPod encodes are very fast compared to the AppleTV encodes so won't add much time penalty to the overall process.

Hopefully this explains my situation better, sorry for the confusion and thanks again for your suggestion.
Craig.

Yikes, that is truly a lot of differnet items to encode for. I would agree with ou then.

Myself, i have the settigns that work for the ATV2/iPad, but can't quite figure out which part of the setings cause the ATV1 to crap out. Plays video and sound, but plays video for about 5 secs, then sounds continues. video is locked. Only way to get ATV1 to work again, is to unplug it.
 
Yikes, that is truly a lot of differnet items to encode for. I would agree with ou then.

Myself, i have the settigns that work for the ATV2/iPad, but can't quite figure out which part of the setings cause the ATV1 to crap out. Plays video and sound, but plays video for about 5 secs, then sounds continues. video is locked. Only way to get ATV1 to work again, is to unplug it.

Yeah the ATV1 does have some restrictions that I remember reading about a while back but can't quite remember what they are. I seem to recall that my iPhone 3G had some features which were not supported on the ATV1 and would trip it up if used. I have a feeling it was a certain type of frame (b frame or p frame or something) which might explain why it runs for you for a few seconds each time. The A4 chip devices seem to all support basically the same encoding features so things should be simpler in future.

Regarding my encodes, I'm not going to break my back trying to support 3 or 4 year old devices but sometimes it is handy to have a (pocket size) version of movies to carry around in bulk. It saves trying to figure out what movie you will be in the mood for when the time comes.

I'm sure someone will be able to tell you what is wrong with your ATV1 encodes more precisely.
Craig.
 
I'm sure someone will be able to tell you what is wrong with your ATV1 encodes more precisely.
Craig.

mac.jedi's scripts have been a godsend. I have 1200+ DVD/BD to rip. I have start 4 times, get 300 into it, and find better settings and start all over. But now, with his scripts. put it in, and walk away. When I come back it's ripped, encoded, metataged, and in iTunes. Who could ask for anything better.
 
Myself, i have the settigns that work for the ATV2/iPad, but can't quite figure out which part of the setings cause the ATV1 to crap out. Plays video and sound, but plays video for about 5 secs, then sounds continues. video is locked. Only way to get ATV1 to work again, is to unplug it.

IMO, this tweaked version of the AppleTV preset works great for both the ATV1 and ATV2. I don't have an iPad, but I'm sure it'll work fine too.

Code:
-e x264  -q 21.0 -a \$audioTrack,\$audioTrack -E ca_aac,copy:ac3 -B 160,160 -6 dpl2,auto -R Auto,Auto -D 0.0,0.0 -f mp4 -4 --width 1280 --maxHeight 720 --subtitle scan --subtitle-burn --subtitle-forced scan --native-language \$nativeLanguage -m -x cabac=0:ref=2:me=umh:b-pyramid=none:b-adapt=2:weightb=0:trellis=0:weightp=0:vbv-maxrate=9500:vbv-bufsize=9500

You can also bring the video quality (-q) to 20 (little better quality, bigger file size) … and your audio bitrate (-B) up to 320 if you want your iPad to have extra stereophonic goodnessss ;)
 
Announcement: Batch rip actions updated to 1.0.6

ANNOUNCEMENT: BATCH RIP ACTIONS UPDATED

Update 2010-12-20

Release Notes
Batch Rip Actions for Automator 1.0.6

Everything
  • Provides general fixes that enhance the stability, compatibility and functionality of Batch Rip Actions for Automator.

Batch Rip.action - UPDATED
  • Improved compatibility with MakeMKV.
  • Removed the built-in delay for multiple optical drives. This functionality has been moved to Batch Rip Dispatcher.
  • Added a timeout setting which allows the Action to skip a disc if Fairmount has trouble reading its content.
  • Updated the Sanity Check feature to provide additional feedback if setup isn't configured properly … with any luck you won't even see it.
  • EXPERIMENTAL: Added support for MakeMKV's full BD backup feature which copies the entire Blu-ray disc structure. May not work with certain discs or drives.
  • Changes the Finder Color Labels of the disc folders to Yellow if copied successfully; Red if the Action encounters an error. Useful for Hazel or other scripting apps.
  • Added "Search for Title" feature which allows for searching themoviedb.org or thetvdb.com for the correct titles of your source discs. Copies will be named with the titles selected. Useful for automatically adding iTunes tags later.


Batch Encode.action - UPDATED

THIS UPDATE REQUIRES THE LATEST NIGHTLY BUILD OF HANDBRAKECLI

  • Added secondary encode option for DVD/SD sources. Two encode types are now available for both HD and SD sources.
  • Added support for HandBrake's Device Presets. Encode settings can now be selected for compatibility with Apple devices.
  • Added support for direct "input" to encode the given source(s). You can use the Service "Batch Rip • Batch Encode (Finder)" to pass sources to this action. You can also select items in the Finder and run the Service on the selected items. See the Batch Encode (Finder) Service below for more info.
  • Updated the Sanity Check feature to provide additional feedback if setup isn't configured properly … with any luck you won't even see it.
  • Added additional feedback on title duration. Provides a list of titles/durations if scan failed to find a title within the min/max duration set in the Action.
  • Added a notification if the Action failed to scan the source for title info.
  • Changed the way cnID numbers are allocated. cnID's are now generated by a random number calculation, rather than sequentially.
  • Added option to keep MakeMKV temp files. These files contain all the original audio and subtitle tracks. Warning: You could run outta disk space pretty fast.
  • Added additional support for Finder Color Labels. Source folders change to Green while processing; Red if the Action encounters an error; Gray if it's done. Output files (m4v or mkv) change to Green if they're done, and Red if the action sees an error with the file. Useful for Hazel or other scripting apps.
  • Updated the Verbose mode to provide additional information during processing.
  • Added Content Ratings, Long Description and Chapter Title support to the Add iTunes Tags feature.
  • Changed the way MakeMKV accesses optical drives while processing.
  • Added a "File Integrity Test" to verify that MKV and MP4 output files are valid. Provides notification if files fail verification.
  • Added a test to check available disk space on destination volume. Provides notification if drive has less capacity than the source. The action will skip sources that exceed capacity.

Batch Rip Dispatcher - UPDATED
  • Changed the way Batch Rip Dispatcher sends source input to the Batch Rip Action.
  • Added a dialog visible when multiple optical drives are present. Prompts the user to launch while waiting for additional discs to mount. This feature can be disabled by using the auto-run option in the Batch Rip Service.
  • Improved the Reset and Enable functions. Reset now clears all existing discs from its record. Clicking Enable now immediately scans for mounted discs and sends them as input to Batch Rip.

Add Movie Tags - UPDATED
  • Added feature to preserve/set the cnid tag of the movie files.
  • Added support for adding Chapter Titles from tagchimp.
  • Original files are now moved to the Trash, rather than kept in its original location as a duplicate. Note: The "Replace existing file" option remains unchanged.

Add TV Tags - UPDATED
  • Added feature to preserve/set the cnid tag of the movie files.
  • Original files are now moved to the Trash, rather than kept in its original location as a duplicate. Note: The "Replace existing file" option remains unchanged.

Rename TV Source Folders - NEW ACTION
  • This action searches thetvdb.com for shows matching the query and renames items to the selected search result and user specified season and disc number.

NEW SERVICES

Batch Rip • Add Chapter Names (Custom)
  • This service has two functions: 1) Will export an editable chapter text file with timecodes and title placeholders from the selected file. 2) When run again, will import and add chapter titles from a text file named "thefilename.chapters.txt" located in the same directory as the movie file.
Batch Rip • Add Chapter Names (Filename)
  • This service will search tagChimp for chapter titles matching the movie file's filename and add them to the file.

Batch Rip • Add Chapter Names (Search)
  • This service will search tagChimp for titles matching a search query and return matching titles. If chapters are found for the selected title, they will be added to the movie file.

Batch Rip • Add cnID to Selected (Same).workflow
  • This service add the same cnID number to selected movie files. Useful for SD/HD encodes.

Batch Rip • Add cnID to Selected (Unique).workflow
  • This service add a unique cnID number to each selected movie files.

Batch Rip • Add HD Flag.workflow
  • This service enables the HD flag in iTunes for HD encoded movie files.

Batch Rip • Rename TV Source Folders.workflow
  • This service searches thetvdb.com for shows matching the query and renames the selected items to the search results and user specified season and disc numbers.

Batch Rip • Rename & Add Custom Title Tag.workflow
  • This service allows you to enter a custom title for your movie file. The service will rename the file and add the title as iTunes metadata to the file.

Batch Rip • Batch Encode (Finder).workflow
  • This service will encode the selected source files with the Batch Encode action. Accepts input from Hazel or other scripts. You can also select items in the Finder and run the Service on the selected items.
  • To run the workflow from Terminal or from a script you'll need to use the following commands to input files to the "automator" command line tool. Here's an example of how to process a single source:

    Code:
    automator -i "/Users/username/Movies/The Office (US) - S1D1" "/Users/username/Library/Services/Batch Rip • Batch Encode (Finder).workflow"
  • To input multiple files, you'll need to pipe the input files as a list with each source on its own line. Here's an example:

    Code:
    echo -e "/Users/username/Movies/The Office (US) - S1D1\n/Users/username/Movies/The Office (US) - S1D2" | automator -i - "/Users/username/Library/Services/Batch Rip • Batch Encode (Finder).workflow"

    The important thing to note is that the sources are quoted in one string. The echo command is given the option "-e" and between each source path is the command "\n", which is a newline character. The automator tool's input command "-i" is given the " - " as input, which means it will use the standard input piped into it as input to the workflow.
 
Last edited:
Good grief mac.jedi, I'll need to set aside an entire afternoon just to read through the list of improvements!! :eek:

Excellent work! Many things in there (even at a quick glance) that I will definitely make use of.

I can't remember if I have donated anything towards your development in the past but in any event I feel compelled to send you some money for a few beers. Let me know if there is a way to do so and $20 is yours. As a professional software developer myself I appreciate the time you have clearly spent on this.

I'm off to start some encoding - my CPU's going to be red hot from now until Christmas when Santa brings me my AppleTV 2! :D
 
Good grief mac.jedi, I'll need to set aside an entire afternoon just to read through the list of improvements!! :eek:

Excellent work! Many things in there (even at a quick glance) that I will definitely make use of.

I can't remember if I have donated anything towards your development in the past but in any event I feel compelled to send you some money for a few beers. Let me know if there is a way to do so and $20 is yours. As a professional software developer myself I appreciate the time you have clearly spent on this.

I'm off to start some encoding - my CPU's going to be red hot from now until Christmas when Santa brings me my AppleTV 2! :D

Thanks Craig! I hope it works for you. I don't take donations, but thanks for the thought. Put it towards a movie or some AppleCare for your new toy!
 
Thanks Craig! I hope it works for you. I don't take donations, but thanks for the thought. Put it towards a movie or some AppleCare for your new toy!

Well sometimes sincere thanks are as much a currency as money itself so consider yourself better off in any case! ;)

I'll certainly give the new release a good thrashing over the next week or so and will do my best to help track down any bugs which emerge.

I'm particularly happy with the two format DVD encode option. I thought I was going to have to do something myself to get this working which I wasn't looking forward to. I also like being able to select the preset names. Can I assume that I just need to make sure that I've updated my presets via the GUI handbrake program or do I need to do it via the CLI program somehow?

Thanks again,
Craig.
 
I am receiving the dreaded "No tracks on this disc are longer then the minimum track time setting" error when trying to rip a Blu-Ray DVD. In this instance, it is "Cloudy with a Chance of Meatballs - 3D". I have made sure that I have installed the latest/greatest snapshot of HandBrakeCLI and any other dependencies. Ripping regular DVDs poses no problems what so ever. I have set the min time to 1 minute and it still fails. Is there anything else that I can try/tweak?

Thanks for all the effort put into this.
 
I am receiving the dreaded "No tracks on this disc are longer then the minimum track time setting" error when trying to rip a Blu-Ray DVD. In this instance, it is "Cloudy with a Chance of Meatballs - 3D". I have made sure that I have installed the latest/greatest snapshot of HandBrakeCLI and any other dependencies. Ripping regular DVDs poses no problems what so ever. I have set the min time to 1 minute and it still fails. Is there anything else that I can try/tweak?

Thanks for all the effort put into this.

Hi kwylez! Please enable verbose logging, run the service and post the terminal output.

Thanks!

mac.jedi
 
I also like being able to select the preset names. Can I assume that I just need to make sure that I've updated my presets via the GUI handbrake program or do I need to do it via the CLI program somehow?

Batch Encode uses the presets that are built-in to HandBrakeCLI. It uses some mojo to select the audio and subtitle tracks, but other than that it's using the built-in presets. If the HB team updates the presets in future builds, Batch Encode will use them … provided you've download and installed the new build. If they change the presets in a way that makes Batch Encode no longer work, I'm sure we'll hear about it ;)
 
Hi kwylez! Please enable verbose logging, run the service and post the terminal output.

Thanks!

mac.jedi

Thanks mac.jedi

I have left my office for the day but will post that information first thing in the morning.
 
Thanks mac.jedi

I have left my office for the day but will post that information first thing in the morning.

Here is the logging when I the blu-ray is scanned

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Initializing Batch Rip…

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
batchRip.sh v1.0.5

Start: Tue Dec 21 09:25:42 CST 2010
TV Show Output directory: /Users/coryw/Movies/Batch Rip TV
Movie Output directory: /Users/coryw/Movies/Batch Rip Movies
Use only MakeMKV: No
Encode HD Sources: Yes
Growl me when complete: Yes
Eject discs when complete: Yes
Copy TV Shows between: 10-120 mins (for MakeMKV)
Copy Movies between: 10-220 mins (for MakeMKV)

WILL COPY THE FOLLOWING DISCS:
THE DARK KNIGHT

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

*Scanning BD-ROM: THE DARK KNIGHT
No tracks on this disc are longer then the minimum track time setting


- - - - - - - - - - - - - - - - - - - - - - - - - - - - -


PROCESSING COMPLETE
End: Tue Dec 21 09:26:13 CST 2010
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
 
Here is the logging when I the blu-ray is scanned

Hi kwylez! Please install the new version posted yesterday … it has better support for troubleshooting. IMPORTANT: enable verbose logging.

Then, run the service and post the terminal output.
 
Hi kwylez! Please install the new version posted yesterday … it has better support for troubleshooting. IMPORTANT: enable verbose logging.

Then, run the service and post the terminal output.

mac.jedi. I totally missed that update yesterday. Sorry about that. I upgraded and now DARK KNIGHT appears to be ripping. I am at 59% so we'll see how it goes. thanks for being so prompt on responding.
 
mac.jedi. I totally missed that update yesterday. Sorry about that. I upgraded and now DARK KNIGHT appears to be ripping. I am at 59% so we'll see how it goes. thanks for being so prompt on responding.

Mac.Jedi - the latest update worked!!!!!
Thx a million
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.