Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Can someone please help me, i'm not sure what is wrong here....

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

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
batchRip.sh v1.0.4

Start: Wed Oct 13 16:09:37 PDT 2010
TV Show Output directory: /Users/macpro/Movies/Batch Rip TV
Movie Output directory: /Users/macpro/Movies/Batch Rip Movies
Use only MakeMKV: No
Encode HD Sources: Yes
Growl me when complete: No
Eject discs when complete: Yes
Preferred Audio Language: English

WILL COPY THE FOLLOWING DISCS:
CONGO

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

*Scanning DVD-ROM: CONGO
Copying /Volumes/CONGO
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_01_0.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_01_1.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_02_0.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_02_1.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_02_2.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_02_3.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_02_4.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_02_5.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_03_0.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_03_1.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_04_0.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_04_1.VOB: Permission denied


PROCESSING COMPLETE
Volume failed to eject
End: Wed Oct 13 16:10:04 PDT 2010
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -

logout

[Process completed]
 
Anouncement: Batch rip actions updated … finally.

ANNOUNCEMENT: BATCH RIP ACTIONS UPDATED

Sorry everyone, I've busy with other projects. I've been updating things for my own use over the past year, but haven't had a chance to post any updates … better late than never?!


Update 2010-11-23

Release Notes
Batch Rip Actions for Automator 1.0.5

Everything
  • Mkvtoolnix is no longer included in the package. You'll need to install Mkvtoolnix.app to your Applications folder. You can download version 4.4.0 from: http://jonthn.free.fr/MKVtoolnix/

Batch Rip.action - UPDATED

  • • Provides general fixes that enhance the stability, compatibility and functionality of Batch Rip … in other words, I forgot to write them all down.
    • Updated Action UI to include a selectable path to MakeMKV
    • Fixed compatibility issues with later releases of MakeMKV
    • Added DiscIdent functionality to auto-name DVD titles

Batch Encode.action - UPDATED
  • Provides general fixes that enhance the stability, compatibility and functionality of Batch Encode … in other words, I forgot to write them all down.
  • Fixed compatibility issues with later releases of MakeMKV
  • Fixed issues with Custom Encode Args
  • Updated default encode settings for latest Apple devices
  • Added support for setting a Native Language preference. Used for audio and subtitle tracks.
  • Added subtitle support. Default encode settings will now burn in forced subtitles in your native language; or all subtitles if the main audio language is not your native language.
  • Added a 'Use Default Audio' option. If selected, will use the sources main audio language. Useful if the majority of your discs are in your native language. If the main audio language is not your native language, the action will automatically burn-in subtitles in your native language if available.
  • Added support for BDSup2Sub. Automatically finds forced PGS subs, converts them to VOBSUB and remuxes the files for input to HandBrakeCLI. You'll need to install BDSup2Sub.jar to your Applications folder. You can download the latest version from: http://forum.doom9.org/showthread.php?t=145277&bdsup2sub+mac
  • Updated Action UI to include a selectable path to MakeMKV, Mkvtoolnix and BDSup2Sub.jar
  • Added support for additional input file types including avi, mp4, m4v, mov, mpg.

_______________________________________________________________________________________________
 
Last edited:
okay I tried this. Bought brand new mac mini. Been ripping on Windows. But the script just says it cant find Fairmount. But I have it install. In your scripts i cant find a way to edit and save them.. A little help for a Mac Newbie?
 
Last edited:
Per your update comment on my thread where i use Another EAC3to GUI...

My process right now is silky smooth but always looking for a way to take windows out of the equation. The thing about AEAC3 is it just works perfectly for extracting the core audio and forced subtitles. The forced subs was always the biggest issue for me as i never wanted to have to worry about it. Just wanted a program that would do it, convert it so it could be read in handbrake, and then burned. Looks like your new processes may do it as well. Excited to test them on a few movies. A few comments:

1) I have my ideal settings in handbrake for my MKV to M4V conversions. I use the ipad preset, no picture filters, burn in forced subtitles (i only pull forced subs so i check both boxes on every conversion if there is a sub), and create 2 audio tracks - a Ac3 5.1 (either passthru or DTS to AC3) and a stereo aac. I can do this from either a DTS or Dolby track with the handbrake nightlies. It didnt sound like your process could accomplish this from a DTS track but ill just test and find out.

2) I am a huge hazel user. During my quest to automate everything, i found this amazing TV tagging program called TVnamer. Not only is it tremendously solid with auto tagging tv shows it has a mover script that can automatically move the show into the correct show and season folder on your NAS (or whatever you use to store TV shows). Its a CLI program so its easily integrated into your process via a simple shellscript. Highly customizable and best part is that the shows can be a variety of naming conventions and it will still tag it to the format you want [for me its Show name - S##E## - SHow name (ie Dexter.3x3.CTU.x264 of Dexter.S3E3.x264.CTU becomes Dexter - S03E03 - Cut of Death.m4v). See my longer post here on the noodlesoft thread.

http://www.noodlesoft.com/forums/viewtopic.php?f=3&t=874
and
http://www.noodlesoft.com/forums/viewtopic.php?f=2&t=873 [6th post down]

Also in that first post, see a program i found called Lingdon for creating repeating automator scripts using launchD. Its an easy GUI into launchd you may want to check out. I had created an automator workflow to auto pull relevant tv shows from my RSS feeds in safari (never liked TV shows or TED cause problematic to add my own torrent sites where i grab HD version of all shows i watch)
 
Stuck

I have downloaded Fairmount, but anytime the script is run, it always says
Fairmount.app command tool is not setup to execute.
Error: attempting to use tool at /Applications/Fairmount.app

After downloading file, it never gives an option to install... what am i missing? Again a Mac Newbie.. be gentle...
 
I have downloaded Fairmount, but anytime the script is run, it always says
Fairmount.app command tool is not setup to execute.
Error: attempting to use tool at /Applications/Fairmount.app

After downloading file, it never gives an option to install... what am i missing? Again a Mac Newbie.. be gentle...

Hi gunthermic!

A couple of things …
Have you installed VLC? As it says in the tutorial, VLC is needed for Fairmount to decrypt DVD sources. I believe Fairmount also does a check for this. Try launching Fairmount by double-clicking on its icon? Also in some cases, mac apps that are downloaded from the internet won't execute until you've opened them once.

Hope this helps.

Thanks, mac.jedi
 
1) I have my ideal settings in handbrake for my MKV to M4V conversions. I use the ipad preset, no picture filters, burn in forced subtitles (i only pull forced subs so i check both boxes on every conversion if there is a sub), and create 2 audio tracks - a Ac3 5.1 (either passthru or DTS to AC3) and a stereo aac. I can do this from either a DTS or Dolby track with the handbrake nightlies. It didnt sound like your process could accomplish this from a DTS track but ill just test and find out.

Hi dhy8386!

Thanks for the info … I'll check it out.

The Batch Encode section of the tutorial has a bit more info on the custom settings. In a nutshell, you can use your custom encode settings by inserting them into the action and enabling the custom encode setting checkbox. I'd use the DVD custom field for SD sources and 720p custom field for HD sources.

These are the arguments for the iPad with 5.1 pass-thru and secondary stereo track with burned-in forced subtitles (or all subtitles if the audio track is different from your native language):
Code:
-e x264  -q 20.0 -r 29.97 --pfr  -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 -X 1024 --loose-anamorphic --subtitle scan --subtitle-burn --subtitle-forced scan --native-language \$nativeLanguage -m

By default, the action passes the correct args to convert DTS tracks to AC-3 using the latest HandBrake nightly build. If you're using custom args, you need to use the audio args listed below (they're already included above):
Code:
-a \${audioTrack},\${audioTrack} -E ca_aac,copy:ac3 -B 160,160 -6 dpl2,auto -R Auto,Auto -D 0.0,0.0

Thanks,

mac.jedi
 
Hi gunthermic!

A couple of things …
Have you installed VLC? As it says in the tutorial, VLC is needed for Fairmount to decrypt DVD sources. I believe Fairmount also does a check for this. Try launching Fairmount by double-clicking on its icon? Also in some cases, mac apps that are downloaded from the internet won't execute until you've opened them once.

Hope this helps.

Thanks, mac.jedi

Completely bewildered.

Yes I have VLC installed and it's sitting in my Applications folder, as well as Fairmount, MakeMVK. Your script starts up, and it asked TV or Movie. But always says that fairmount app not found, looking for it in applications.

I am a bit confused as to your scripts. I can go into to Automator, and it says Fairmount.app in the batch rip script? Should i be changing this?

A bit frustrated, but i am sure it's my lack of knowledge on Mac's. Bought this mini just because of your scripts and automated way. 1200 plus DVD's to rip...

I appriciate any insight you may give me.
 
My process right now is silky smooth but always looking for a way to take windows out of the equation.

For DVD sources I use the Batch Rip action with Fairmount to copy the discs.

Though the Batch Rip action and MakeMKV can do BD sources, I still prefer using AnyDVDHD for backing up BD discs. IMO, it offers better decryption than MakeMKV so it's less prone to errors. I also prefer having a complete backup of the disc. I use VMware so I can rip directly to my rip folders and not have to switch machines or restart. Other than going from BD disc to drive, everything else is done in the Batch Encode action. I used to have scripts that controlled eac3to and tsmuxer on windows but like you i wanted to take windows out of the equation as much as possible.
 
Yes I have VLC installed and it's sitting in my Applications folder, as well as Fairmount, MakeMVK. Your script starts up, and it asked TV or Movie. But always says that fairmount app not found, looking for it in applications.

Have you launched Fairmount manually by double-clicking on its icon? If so, does it start up?
 
alright. so i tried two movies, avatar and bruno. avatar hasthe forced subs and bruno does not.

Avatar worked great until i got a java exception error when bdsup2sub was processing. an error box popped on the screen and i had to click "ok" and then it continued processing. i had verbose on. the process continued and seemed to work fine. handbrake produced a file very similar in size to my previous avatar conversions. i couldnt do a full test cause im not home but through logmein i opened up the file in itunes and looked good. burned in subtitles worked. biggest issue was this bdsup2sub which causedthe process to halt until the error box was cleared. i have attached screens of the error and the terminal window.

on bruno, the makemkv process starts and gets to 97% and errors out with a LIBMKV_TRACE:exception:error while reading input. tried twice. process ends because it cant write to the mkv.
screen attached

im using mkvtoolnix 4.4.

And also fyi used anothereac3 on pc side and both avatar and bruno are ripped to mkv without error.

Any ideas would be appreciated.

EDIT: bruno works fine. I had killed off mkvmerge prematurely before I started Bruno before and I think that's what causes my error. A restart fixed. So avatar is the only issue. Gonna test on another movie with forced subs.
 

Attachments

  • Archive.zip
    926.8 KB · Views: 216
Last edited:
Can someone please help me, i'm not sure what is wrong here....

[...]

*Scanning DVD-ROM: CONGO
Copying /Volumes/CONGO
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_01_0.VOB: Permission denied
ditto: /Volumes/CONGO/./VIDEO_TS/VTS_01_1.VOB: Permission denied

[etc]

Having exactly the same problem here. Help, please Jedi!
 
alright. so i tried two movies, avatar and bruno. avatar hasthe forced subs and bruno does not.

Avatar worked great until i got a java exception error when bdsup2sub was processing. an error box popped on the screen and i had to click "ok" and then it continued processing. i had verbose on. the process continued and seemed to work fine. handbrake produced a file very similar in size to my previous avatar conversions. i couldnt do a full test cause im not home but through logmein i opened up the file in itunes and looked good. burned in subtitles worked. biggest issue was this bdsup2sub which causedthe process to halt until the error box was cleared. i have attached screens of the error and the terminal window.

on bruno, the makemkv process starts and gets to 97% and errors out with a LIBMKV_TRACE:exception:error while reading input. tried twice. process ends because it cant write to the mkv.
screen attached

im using mkvtoolnix 4.4.

And also fyi used anothereac3 on pc side and both avatar and bruno are ripped to mkv without error.

Any ideas would be appreciated.

EDIT: bruno works fine. I had killed off mkvmerge prematurely before I started Bruno before and I think that's what causes my error. A restart fixed. So avatar is the only issue. Gonna test on another movie with forced subs.

Batch Encode has some "mojo" but still relies on HandBrake's "Foreign Audio Search" to determine forced subs. It's possible it's not choosing one. I don't have Avatar to test, but I remember HB wouldn't select a forced track Kill Bill Vol. 1 Blu-ray. To see if this is the case, you can enable verbose logging and look at HB's output in Terminal.

A solution for these cases is to open the final merged mkv file created during the process in VLC to see which of the VOB SUBs tracks is the forced track. You can then use the MKV file as the Source File and either run the Action with a custom setting to burn-in the selected subtitle track or use the HandBrakeGUI, select the subtitle track and encode it manually. This is one of the benefits to using mkv as the container as it will keep the original video and audio and the converted subtitle tracks for later use.
 
Having exactly the same problem here. Help, please Jedi!

Looks like FairMount failed to decrypt the disc. Have you had the same issue with other discs? If so, might be an issue with your Fairmount or VLC install. Try downloading the latest versions of each to /Applications and reset the paths in the Batch Rip Action. Sometimes a reboot will help.
 
Not finding the video files

Hi Jedi,

Awesome work. I followed your guide very closely and I am ending up with this problem. I rip the dvd's automatically with fairmount but the encode script doesnt seem to find the files. They are there though when I look in finder in a video_ts folder. Any ideas what might be wrong since the program doesnt "find" my files?

On a core 2 duo MBP from summer 2009 with 10.6.5

Last login: Sat Nov 27 22:57:47 on ttys000
/tmp/batchEncodeTmp.sh ; exit;
MacBoo:~ Ulrik$ /tmp/batchEncodeTmp.sh ; exit;

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
batchEncode.sh v1.0.5

Start: Lør 27 Nov 2010 23:09:55 CET
Input directory 1: /Users/Ulrik/Movies/Batch Rip Movies
Input directory 2: /Users/Ulrik/Movies/Batch Rip TV
Output directory: /Users/Ulrik/Movies/Batch Encode
Use optical Drive: No
Encode HD Sources: No
Auto-add movie tags: No
Retire Existing File: No
Growl me when complete: No
Encode TV Shows between: 20-120 mins
Encode Movies between: 80-180 mins
Native Language: eng (en)
Use Disc's Default Audio Language: Yes
Will Encode: SD/DVD, SD

WILL PROCESS THE FOLLOWING VIDEOS:
Pirates of the Caribbean - The Curse of the Black Pearl (2003) : (Movie)
SHREK_2 : (Movie)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PROCESSING: Pirates of the Caribbean - The Curse of the Black Pearl (2003)

*Scanning Folder: 'Pirates of the Caribbean - The Curse of the Black Pearl (2003)'
No tracks found between the min/max duration settings


PROCESSING COMPLETE: Pirates of the Caribbean - The Curse of the Black Pearl (2003)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PROCESSING: SHREK_2

*Scanning Folder: 'SHREK_2'
No tracks found between the min/max duration settings


PROCESSING COMPLETE: SHREK_2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
End: Lør 27 Nov 2010 23:10:01 CET
logout

[Proces udført]
 
Johnjohn12;11492440Any ideas what might be wrong since the program doesnt "find" my files? WILL PROCESS THE FOLLOWING VIDEOS: Pirates of the Caribbean - The Curse of the Black Pearl (2003) : (Movie) SHREK_2 : (Movie) [/QUOTE said:
It looks like the Action is finding your source files as noted in the section above, but it doesn't look like HandBrakeCLI is scanning them. An indication of this would be an empty text file in your source folder named: <Your Source Name>_titleInfo.txt

Make sure you've downloaded the latest nightly build of HandBrakeCLI and selected the path in the Batch Encode Action Panel in Automator. Be sure to save your changes.

You can download the latest night build of HandBrakeCLI (Make sure it's the command line version NOT the GUI) at: https://build.handbrake.fr/view/Nightlies/job/Mac/
 
You are right that there is that .txt file u where talking about. I have the latest nightly build though and I have tried numerous times selecting it inside the automator screen so I am sure its pointing at the right file.

One thing that I noted was that if I choose the GUI handbrake and search that library it doesn't find any files that are above 4-5 mins in playing time. So maybe the automated rip of the dvd's is the problem.

I was really happy when everything was going smooth in your guide since I was afraid I would hit a road bump :( Hope we can get past it. If u need any info let me know.
 
You are right that there is that .txt file u where talking about. I have the latest nightly build though and I have tried numerous times selecting it inside the automator screen so I am sure its pointing at the right file.

One thing that I noted was that if I choose the GUI handbrake and search that library it doesn't find any files that are above 4-5 mins in playing time. So maybe the automated rip of the dvd's is the problem.

I was really happy when everything was going smooth in your guide since I was afraid I would hit a road bump :( Hope we can get past it. If u need any info let me know.

Hi Johnjohn12! Sorry you are still having problems. If the HandBrake GUI isn't seeing any titles over 4-5 minutes long, then there might be a problem with the source volume. Have you tried any others?

I can try to help, but I need to see the HandBrakeCLI scan info.

Try this:

In Automator, Open the Service called: Batch Rip • Get Source Info from HandBrake.workflow

At the top of the Service Workflow, change the pull-down items to read: Service receives selected "files or folders" in "Finder"

Choose the path to HandBrakeCLI; Then Choose a folder to Save to…

Choose File > Save to save your changes and Quit Automator.

In the Finder, Navigate and Select the Folder for one of the items your trying to encode.

Right-Click on the item and Select, Services > Batch Rip • Get Source Info from HandBrake

A text file will be created in the location you set in the Service with all the scan info from HandBrake. Either copy/paste or attach the file here for review.

Also, run the Batch Encode Service again and post the Terminal info.

Thanks,

mac.jedi
 
M.J

Really cant thank you enough for all this. Have allowed me to move everything to the mac side (except anydvd) and its entirely automated after the anydvd rip. Going to alter my write up of my entire process on this thread as well as the Hazel forum.

One question, I have the batch encode set to run every few hours.

Under Example 1, i have 3 movies in my batch rip folders, batch encode runs, and each file is processed one at a time (a queue).

Under Example 2, the third movie is still in the encode process from example one, 1 new movie during that time was added to the batch rip folder, batch encode runs and another instance of the handbrake CLI is initiated. This creates 2 simultaneous encodes. While my i7 hackintosh seemed to handle this ok its not preferred.

Is there to have batch encode, if run twice on two separate files, and the first file is still encoding, the second file is just added to a queue? If its not the default action in batch encode, is there a way to make this happen?

Again, truly great stuff.
 
Thank you so much for taking time out jedi. Really appreciate it. Here is the info. Still no success :( Tried a 3rd movie this time.

Terminal log:

Last login: Sun Nov 28 18:00:20 on ttys000
/tmp/batchEncodeTmp.sh ; exit;
MacBook-Pro:~ Ulrik$ /tmp/batchEncodeTmp.sh ; exit;

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
batchEncode.sh v1.0.5

Start: Søn 28 Nov 2010 18:02:12 CET
Input directory 1: /Users/Ulrik/Movies/Batch Rip Movies
Input directory 2: /Users/Ulrik/Movies/Batch Rip TV
Output directory: /Users/Ulrik/Movies/Batch Rip Encode
Use optical Drive: No
Encode HD Sources: No
Auto-add movie tags: Yes
Retire Existing File: No
Growl me when complete: No
Encode TV Shows between: 20-120 mins
Encode Movies between: 80-180 mins
Native Language: dan (da)
Use Disc's Default Audio Language: Yes
Will Encode: SD/DVD, 720p

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
VERBOSE MODE
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

WILL PROCESS THE FOLLOWING VIDEOS:
HIK : (Movie)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PROCESSING: HIK

*Scanning Folder: 'HIK'
No tracks found between the min/max duration settings


PROCESSING COMPLETE: HIK
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
End: Søn 28 Nov 2010 18:02:15 CET
logout

[Proces udført]
__________________________________________________________

Handbrake log is attached to this post..

EDIT:
To me it seems like it still can't find files that are large enough after the fairmount rip which runs without errors.
 

Attachments

  • HIK%0ABatch%0ARip%0AHIK-hbInfo.txt
    15.2 KB · Views: 284
Encode Movies between: 80-180 mins

I think the problem lies with your "Movie" minimum time setting. Looking at part of the hb scan file (below) the duration of the main title is just under 80 minutes. Try taking your minimum value to 75.

+ title 1:
+ Main Feature
+ vts 1, ttn 1, cells 0->11 (2303196 blocks)
+ duration: 01:19:21
+ size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 25.000 fps

Let me know if that works for you.
 
M.J

Really cant thank you enough for all this. Have allowed me to move everything to the mac side (except anydvd) and its entirely automated after the anydvd rip. Going to alter my write up of my entire process on this thread as well as the Hazel forum.

One question, I have the batch encode set to run every few hours.

Under Example 1, i have 3 movies in my batch rip folders, batch encode runs, and each file is processed one at a time (a queue).

Under Example 2, the third movie is still in the encode process from example one, 1 new movie during that time was added to the batch rip folder, batch encode runs and another instance of the handbrake CLI is initiated. This creates 2 simultaneous encodes. While my i7 hackintosh seemed to handle this ok its not preferred.

Is there to have batch encode, if run twice on two separate files, and the first file is still encoding, the second file is just added to a queue? If its not the default action in batch encode, is there a way to make this happen?

Again, truly great stuff.

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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.