Go Back   MacRumors Forums > Apple Hardware > Apple TV and Home Theater

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 22, 2009, 10:20 AM   #26
NEBaghead
macrumors member
 
Join Date: Oct 2009
Location: Omaha, NE
Send a message via Skype™ to NEBaghead
Quote:
Originally Posted by mac.jedi View Post
That's strange. You should have already had read/write access since you're logged in with that account. Did you ever change your user/login name on this account? Sometimes that will cause some of your permissions to get screwed up. If anyone else is reading this: don't ever do that, create a new account.

So you got it working okay?
I think it had to do with my clean install of Snow Leopard and restoring user settings from Time Machine. I've found a few folder permission errors. I did the same thing with my Macbook Pro but I haven't had any of these issues. I might just do a clean install and restore my user settings from the MB Pro.

As far as the scripts working, it is running great. Thanks for all the time you spent to build them. I just need to set up scripts on my iTunes Server to pull the movies over the network and add to iTunes automatically.
__________________
|21.5" iMac, i5 2.5ghz QC Ghz 12GB|13" MBP 2.26GHZ 4GB -160GB SSD|
|White 16gb iPhone 4s|TV2|iPad 2 16gb White|
NEBaghead is offline   0 Reply With Quote
Old Oct 22, 2009, 03:28 PM   #27
JLandis
macrumors member
 
Join Date: Jul 2008
Hi, thanks for this great article. I plan on setting this up as soon as my new Mac Mini gets here tomorrow. Couple of questions related to the different options in video output.

I see that you are using Fairmount to get the DVD ripped to the HDD, then Handbrake does the encoding to m4v (if I read that correctly). This is great for ATV users, however I will be using solely Plex or VLC to play my videos. Is there any benefits to outputting all my videos as MKV files in my case? Does MakeMKV do a good at DVD -> MKV? Just trying to understand the different output choices out there. After I complete transcoding my collection I want the files to stay in tact for a while. Thanks for any insight as to the differences/benefits.
JLandis is offline   0 Reply With Quote
Old Oct 22, 2009, 06:31 PM   #28
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Quote:
Originally Posted by JLandis View Post
I will be using solely Plex or VLC to play my videos. Is there any benefits to outputting all my videos as MKV files in my case?
For me, it depends on the source. I pretty much only use MKV for 1080p encodes. Plex will support DTS audio in MKV files as well which is great for Blu-Ray content. I always make a 720p and SD m4v file as well, so I can use it on Apple devices/apps.

For DVD content, I prefer m4v. It's more versatile and easier to manage with iTunes and multiple devices. I don't see any real advantage to using MKV for these kinda sources. Plex and VLC will play them just fine.

If you've got enough storage, you can always just use the full FairMount copy in Plex or Front Row. Then you'll get menus and special features as well.

Quote:
Originally Posted by JLandis View Post
Does MakeMKV do a good at DVD -> MKV? Just trying to understand the different output choices out there.
I prefer HandBrake with h.264 encoding, if I'm extracting individual titles. MakeMKV will be faster, but larger in file size since it's not doing any compression.

Congrats on your new mini! Enjoy!
mac.jedi is offline   0 Reply With Quote
Old Oct 23, 2009, 01:09 PM   #29
bbyers70
macrumors newbie
 
Join Date: Oct 2009
First of all I would like to thank mac.jedi for the wonderful guide and taking the time to assemble such huge project.

I do however have a couple requests to further enhance it.

1st When adding movie tags it would be nice if the following fields would be populated: Name, Genre, MPAA Rating, cnID, Media Kind, HD tag.

I used Subler to check the movie after it was tagged and noted the above field missing.

Name: Obiviously the name of the movie
Genre: Comedy, Drama, Kids & Family, etc... (prompt from user if unavailable)
MPAA Rating: G, PG, PG-13, R, NC-17, Unrated
cnID: new field used by iTunes to group HD & SD into a single entry in iTunes. This number must be unique to the film title and not duplicated on another title. I use the MPAA certificate number since they are assigned uniquely to every movie that is rated.
Media Kind: For movie this should always be "short film" and not normal or movie.
HD tag: Tags the movie to show with HD tag in iTunes.

While these additional tags are not show stoppers for me...I still use Subler to add the additional information to make my movies in iTunes look as close to as the movies you purchase from iTunes.
bbyers70 is offline   0 Reply With Quote
Old Oct 23, 2009, 03:16 PM   #30
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Quote:
Originally Posted by bbyers70 View Post
1st When adding movie tags it would be nice if the following fields would be populated: Name, Genre, MPAA Rating, cnID, Media Kind, HD tag.
Hi bbyers70,

Thanks for the suggestions!

The Add Movie Tags Action is meant for batch tagging, so I tried to keep it to the basics: Album Artists, Release Date, Genre, Description and Cover Art. I also included iTunes rDNS atom that adds an xml style plist to the file so it will also display: Director, Screenwriters, Actors and Producers, etc, when viewed on an Apple TV or thru Front Row. The Add TV Tag Action receives all these tags in addition to Show Name, Episode Name, Episode Number, Season Number and Episode Description.

In addition to these tags, the Batch Encode Action includes most of the other items you're looking for. For HD sources, the output files receive additional tags for: cnID number, media type (Short Movie=9 or TV show=10) and HD flag. DVD sources do not receive a cnID or HD flag.

MPAA ratings are not available from themoviedb.org at this time. I believe this is something they are currently working on, but may take a while before the database is populated. I will definitely add it once it's available.

The Title tag (name) is something I intentionally left out, since iTunes sets the title to the filename minus extension. So if your files are named correctly (which they should be if you're using the Action), it really isn't necessary.

The Media Type tag was something I forgot to include in the Add Movie Tags Action. It's done by separate sub-routine in the Batch Encode action that does the cnID and HD flag, so the code never made it over.

I'll definitely add the media type, rating (when available) and perhaps the HD flag into the Add Movie Tags Action, but it might be better just to use Subler or another Automator workflow for setting the cnID & HD flag outside of the Batch Encode Action. I'll think more on it.

Oh, BTW, I do have an Add Genre to Movie Items action that I'll be adding in the next update, along with one or two others.

Thanks, mac.jedi
mac.jedi is offline   0 Reply With Quote
Old Oct 23, 2009, 09:35 PM   #31
bbyers70
macrumors newbie
 
Join Date: Oct 2009
Quote:
Originally Posted by mac.jedi View Post
Hi bbyers70,

Thanks for the suggestions!

The Add Movie Tags Action is meant for batch tagging, so I tried to keep it to the basics: Album Artists, Release Date, Genre, Description and Cover Art. I also included iTunes rDNS atom that adds an xml style plist to the file so it will also display: Director, Screenwriters, Actors and Producers, etc, when viewed on an Apple TV or thru Front Row. The Add TV Tag Action receives all these tags in addition to Show Name, Episode Name, Episode Number, Season Number and Episode Description....


Thanks, mac.jedi

Thanks for the update mac.jedi

You are on to a great process for those of us that have too many movie/TV DVDs and apparently no life. I've been encoding movies and TV episodes for the ATV since it was introduced and have vested hundreds if not thousands of hours into my collection. This will greatly help out as I tackle my TV DVD collection and get them into iTunes.

I would like to share with everyone what I use for my argument/settings to produce what I believe to be the best possible picture. I'm very finicky about the quality of my encodes. I've encoded hundreds of videos over the years with many of failures and not so good results. This is what I've determined to be the optimum.

TV Show with Dolby Digital (AC3) & AAC
-f m4v -4 -5 -P -e x264 -q 0.59 -a 1 -E faac,ac3 -B 160 -R 48 -6 dpl2 -D 1 -x level=30:cabac=0:ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:no-fast-pskip=1:me=umh:subq=7:analyse=all

TV Show with only AAC
-f m4v -4 -5 -P -e x264 -q 0.59 -a 1 -E faac -B 160 -R 48 -6 dpl2 -D 1 -x level=30:cabac=0:ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:no-fast-pskip=1:me=umh:subq=7:analyse=all

Movies with Dolby Digital (AC3) & AAC
-f m4v -4 -P -e x264 -q 0.63 -a 1 -E faac,ac3 -B 160 -R 48 -6 dpl2 -D 1 -x level=30:cabac=0:ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:no-fast-pskip=1:me=umh:subq=7:analyse=all

Note: If your source is interlaced then be sure to add -5 to the string. This will decomb the picture only where interlacing is detected. If you de-interlaced every single frame it will greatly degrade the picture producing a soft/fuzzy look.

I encode all of my movies with dolby digital even if the original dolby track on the dvd is only 2 or 1 channel. Again, this is just me.

Happy batching!
bbyers70 is offline   0 Reply With Quote
Old Oct 26, 2009, 04:38 AM   #32
williamsonajm
macrumors newbie
 
Join Date: Oct 2009
Hey again

Quick question. Why is it that when I "Rename & Tag TV Items", I end up with 2 copies of each file: The original and the new one that has been tagged with the new cover-art. Plus, the new 'tagged' files will have a random load of numbers after the filename (eg: "Stargate Atlantis - S03E06-temp-13165.m4v")... Any advice on how to fix this? :-)
williamsonajm is offline   0 Reply With Quote
Old Oct 26, 2009, 09:01 AM   #33
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Quote:
Originally Posted by williamsonajm View Post
Hey again

Quick question. Why is it that when I "Rename & Tag TV Items", I end up with 2 copies of each file: The original and the new one that has been tagged with the new cover-art. Plus, the new 'tagged' files will have a random load of numbers after the filename (eg: "Stargate Atlantis - S03E06-temp-13165.m4v")... Any advice on how to fix this? :-)
By default, AtomicParsley copies the file and writes the tags to the copy, leaving your original file unaltered. The numbers at the end of the filename are normal, for the temp file. In case you're wondering the numbers represent the process id number (PID) assigned to the process AtomicParsley while it is working on your file.

To replace your original file, open the Rename & Tag TV Items workflow, select the Add TV Tags Action, click on the disclosure triangle to expand the panel and check "Replace original file". This will cause AtomicParsley to replace your original file with the tagged file, once the tags have been successfully added.
mac.jedi is offline   0 Reply With Quote
Old Oct 26, 2009, 01:36 PM   #34
williamsonajm
macrumors newbie
 
Join Date: Oct 2009
Thanks! :-)

I seem to be the person with all the problems for some reason. I get an error at the end of ripping regarding Growl:

Code:
PROCESSING COMPLETE
/Users/adam/Library/Automator/Batch Rip.action/Contents/Resources/batchRip.sh: line 520: growlnotify: command not found
I don't really understand why, as growl is installed and other applications use it successfully?
williamsonajm is offline   0 Reply With Quote
Old Oct 26, 2009, 02:56 PM   #35
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Quote:
Originally Posted by williamsonajm View Post
Code:
growlnotify: command not found
It looks like it can't find the growlnotify tool. growlnotify is needed in order to notify growl from the command-line. It works differently than when called from a cocoa app.

It mentions it in the tutorial, but I heard that I may have gotten the install directions wrong and I haven't had time to test & correct it. You will find growlnotify in the Growl installer disk image in the extras folder. You want to install growlnotify in your "hidden" /usr/local/bin folder. An easy way to get to the folder is to open a finder window. Enter the keyboard shortcut: cmd-shift-g and enter the path /usr/local/bin. Then drag or copy & paste the growlnotify tool to the folder.

I hope this helps. Thanks, mac.jedi
mac.jedi is offline   0 Reply With Quote
Old Oct 26, 2009, 03:18 PM   #36
williamsonajm
macrumors newbie
 
Join Date: Oct 2009
Cool. I've copied the growlnotify app into the /usr/local/bin directory and guess i'll find out if it's now working when the converter next tries to send a message to it :-P
williamsonajm is offline   0 Reply With Quote
Old Oct 26, 2009, 04:45 PM   #37
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Quote:
Originally Posted by williamsonajm View Post
Cool. I've copied the growlnotify app into the /usr/local/bin directory and guess i'll find out if it's now working when the converter next tries to send a message to it :-P
It might not work the first time out. I think the first time growlnotify sends a message, it adds itself as an app in the Growl pref pane. Then you can choose how you want Growl to notify you I prefer mailme. You need to setup mailme with your email address in the Growl display prefs.

Also, there are a couple issues you should be aware of. On some systems growlnotify will fail about half the time. For instance, it works great on my Mini and MacBook Air, but is sketchy on my Mac Pro. It's a known issue and I'm still looking for a workaround. Also, mailme doesn't seem to work with MobileMe set as the mail sender. It has something to do with the Keychain. Growl will use the first email account listed in mail.app as the sender. You need to move another account to the top, like a gmail account, then setup mailme. After mailme has successfully sent a preview message, you can change your default account back.
mac.jedi is offline   0 Reply With Quote
Old Oct 26, 2009, 06:08 PM   #38
craig1410
macrumors 6502a
 
Join Date: Mar 2007
Location: Scotland
Hi mac.jedi,
Firstly, great job on putting this little lot together - I really appreciate your efforts as it is both directly useful and indirectly useful to me as I am keen to learn a bit more about Automator and Mac scripting.

I found a small issue with the Add Movie Tags action for one of my movies, "Ali (2001)" starring Will Smith as the famous boxer. However, despite using the Rename Movie Items action to set the filename correctly, it instead picks up "Ali G Bling Bling" and adds the tags from this movie instead.

I have had a look at your main.command script in the Add Movie Tags action and have developed a workaround by adding the -x option to the egrep commands which search for the movie title. As you know, this forces an exact match which then recognises the correct movie. I have not regression tested this approach with other movie titles and there is more than likely a better way to solve this problem but it does appear that it is possible to get multiple matches despite filtering by year and the start of a movie title. I expect that this is more likely to happen with short movie titles like "Ali".

Here is the first changed line:
Code:
movieTitle=`"$xpathPath" "$movieData" //name 2>/dev/null | awk -F\> '{print $2}' | awk -F\< '{print $1}' | sed "s|&apos;|\'|g" | egrep -ix "$discNameNoYearWildcard"`
and the second three lines below:
Code:
movieTitle=`"$xpathPath" "$movieData" //alternative_name 2>/dev/null | awk -F\> '{print $2}' | awk -F\< '{print $1}' | sed "s|&apos;|\'|g" | egrep -ix "$discNameNoYearWildcard"`
I hope you don't mind me digging into your code.

Thanks again,
Craig.
__________________
MacBook Pro Retina 15.4", 2.3GHz, 16GB RAM, 500GB SSD; 24" Aluminium iMac, 2.4GHz, 4 GB RAM, 2 TB HDD
Time Capsule 500GB; iPhone 5 32GB Black/Slate; iPad Air 64GB WiFi
craig1410 is offline   0 Reply With Quote
Old Oct 27, 2009, 10:47 PM   #39
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Batch Rip Actions for Automator v1.0.2

ANNOUNCEMENT: BATCH RIP ACTIONS UPDATED

Release Notes
Batch Rip Actions for Automator

1.0.2

Everything
  • Requires Mac OS X 10.6 or later
  • Updated installer package, should correct permissions issues some users were experiencing

Add Genre to Movie File.action - NEW ACTION
  • This action tags mp4 files with a selected iTunes genre

Add Movie Poster.action - NEW ACTION
  • This action will add cover art to selected files. There are three options:
  1. Disable dialogs and use clipboard: Will download an image from a URL in the clipboard. The downloaded image will be added as cover art to the mp4/m4v file.
  2. Search themoviedb.org: Will search themoviedb.org and display movie posters matching a search term in Safari. Right-click and choose Copy Link to select a image. In the dialog box Choose OK. The selected image will then be downloaded and added as cover art to the mp4/m4v file.
  3. Choose from file: Will display a choose file window. The selected image will then be added as cover art to the mp4/m4v file.

Batch Rip.action - UPDATED
  • Updated to version 1.0.1
  • Note: FairMount has a new 64-Bit version and has been updated to 1.0.5.
  • Added pop-up menu to set the path to FairMount *since FairMount now has a 64-bit version and has changed its folder structure.
  • Changed how the Action logs mounted discs
    • Folder Action log is cleared when Batch Rip start processing
    • When an active Batch Rip disc item remounts after finishing a process, no dialogs will appear
  • Changed the way Batch Rip handles discs with the same name
    • If Batch Rip is set to run automatically, Batch Rip will skip discs if an item with the same name appears in the output directory
    • If Batch Rip is NOT set to run automatically, Batch Rip will copy the disc and append the filename of the new copy with the current process ID number (PID)
  • FairMount will now quit after DVDs have been copied
  • Fixed the error some users were experiencing with MakeMKV returning "No titles longer than" for DVD-ROM sources
  • Sets the Spotlight comment for all output items to the selected video kind

Batch Encode.action - UPDATED
  • Updated to version 1.0.1
  • Changed the egrep syntax for line 786, to fix the "echo: line 786" error message
  • Updated the subroutine for tsMuxeR, but doesn't matter since tsMuxeR is still not compatible with Snow Leopard

Add Movie Tags.action - UPDATED
  • Added new tags:
    • HD-Flag: for file resolutions over 1280x720
    • Title: will add the filename as the title
    • Video Type (stik): Movie (9-Short Movie)
  • Added add chapters from file (mp4chaps)
    • Chapter file must be named: filename.chapters.txt (filename must be exactly the same as the movie file)
  • Added cover art resizing. Will now resize images to a maximum of 600x600 pixels as recommended by iTunes. Also allows Finder to update icon more effectively and reduces file size a bit.

Add TV Tags.action - UPDATED
  • Added HD-Flag: for file resolutions over 1280x720
  • Added add chapters from file (mp4chaps)
    • Chapter file must be named: filename.chapters.txt (filename must be exactly the same as the movie file)
  • Added cover art resizing. Will now resize images to a maximum of 600x600 pixels as recommended by iTunes. Also allows Finder to update icon more effectively and reduces file size a bit

Enjoy!
mac.jedi is offline   0 Reply With Quote
Old Oct 28, 2009, 12:15 PM   #40
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
I checked the code and there was a typo in the code that switches the BD-ROM function on and off … it seems that the force was not with me on that one.

I updated the Batch Rip.action to 1.0.1b at about 8:30AM PST. I highly recommend re-downloading and using the custom install to replace the Batch Rip action if you downloaded the actions last night or this morning.

Thanks, mac.jedi

From the HandBrake Forum:
Quote:
Originally Posted by splodgecat
Code:
    ERROR: makemkvcon command tool is not setup to execute
    ERROR: attempting to use tool at /Applications/MakeMKV.app/Contents/MacOS/makemkvcon

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

Last edited by mac.jedi; Oct 28, 2009 at 03:15 PM.
mac.jedi is offline   0 Reply With Quote
Old Oct 28, 2009, 02:56 PM   #41
justflie
macrumors 6502a
 
justflie's Avatar
 
Join Date: Nov 2005
Location: Red Sox Nation
Quote:
Originally Posted by jim.arrows View Post
Wow... I don't know if I will ever use any of this, but THANKS for taking the time to put all of it together. This is just an incredibly nice thing to share with the community.

Cheers,
Jim
Ditto. Thanks very much for your efforts. I'll be putting together a home theater system in the next 6 months or so and I'll be referring to your post when it's time to start encoding!
justflie is offline   0 Reply With Quote
Old Oct 28, 2009, 10:45 PM   #42
bbyers70
macrumors newbie
 
Join Date: Oct 2009
mac.jedi,

I'm experiencing issue with tagging TV episodes. There seems to be an issue with 7th Heaven.

After I encode my 7th Heaven season set and try both 'Rename & Tag TV Items' and 'Add TV Tags' it is unable to tag the file. If I rename the file to another show like 30 Rock then it is able to tag. Renaming the file back to 7th Heaven it again fails to tag. I'm using the exact same file on every trial.

7th Heaven - S04E01.m4v = cannot tag
rename file to:
30 Rock - S04E01.m4v = file tagged
rename file back to:
7th Heaven - S04E01.m4v = cannot tag

Tried using a different season number and episode number and still will not tag. It simply seems if the show name is 7th Heaven , then it will not be tagged.

I noticed that version 1.0.2 was available so I downloaded and installed...No difference with new version.

Please assist.... I have a lot of 7th Heaven episodes to import.

Thanks
BByers70
bbyers70 is offline   0 Reply With Quote
Old Oct 29, 2009, 12:27 AM   #43
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Quote:
Originally Posted by bbyers70 View Post
I'm experiencing issue with tagging TV episodes. There seems to be an issue with 7th Heaven.
I just did a quick test and it looks like the cover art link is bad in thetvdb.org xml file, so it's failing when trying add the cover art. I've only encountered this once before, but to be safe, I'll add some sort of integrity test for the image file. Unfortunately, AtomicParsley doesn't just not add the artwork it just fails the whole process.

I'll let you know when I update the action.

Thanks for letting me know,
mac.jedi
mac.jedi is offline   0 Reply With Quote
Old Oct 30, 2009, 11:15 AM   #44
Tastannin
macrumors 6502
 
Join Date: Sep 2003
Location: Cedar City, UT
Mac.Jedi,

Thanks for all your hard work on this How-To! I appreciate your efforts making this as simple as possible for the rest of us.

However, here are a couple of questions:

1. The default encoding type - DVD (Default) - what setting does it approximate when using Handbrake GUI on the Mac?

2. How can I get my GUI settings in a CLI string to put in for the Custom Settings?

3. All my sources are DVD's - can I use HD(SD) to get the Universal setting like in the GUI? That's what I use in the GUI anyways.

4. I'd like to include closed captions because I'm deaf. GUI allows me to choose this. However I seem to be unable to find the correct flag to put into the Custom Settings to get this option. Is there any way you can add a picker (like in the GUI) for choosing the default Subtitle track in the Batch Encode Service?

Again, thanks for what you've done. Hopefully I will be able to implement your workflow all the way to make it easier for me to move my media over to iTunes/ATV.
__________________
Hoarder
Tastannin is offline   0 Reply With Quote
Old Oct 30, 2009, 06:01 PM   #45
craig1410
macrumors 6502a
 
Join Date: Mar 2007
Location: Scotland
Hi,

I just tried the new 1.0.2 release and it didn't seem to set the spotlight comment of the rip folder to "Movie" even though that is the media type I chose when running Batch Rip action after inserting the DVD.

Anyone else having this problem?

Thanks,
Craig.
__________________
MacBook Pro Retina 15.4", 2.3GHz, 16GB RAM, 500GB SSD; 24" Aluminium iMac, 2.4GHz, 4 GB RAM, 2 TB HDD
Time Capsule 500GB; iPhone 5 32GB Black/Slate; iPad Air 64GB WiFi
craig1410 is offline   0 Reply With Quote
Old Oct 30, 2009, 10:34 PM   #46
jeremy.king
macrumors 603
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
Hey mac.jedi, thanks for this.

I noticed on my machine, /tmp/batchRip/currentItems.txt wasn't being created, so ultimately I'd get the "No discs found" error.

I was able to fix by using touch, but I was curious at what point in the process is that file created/written?

I'm testing a rip now, looks to be working.
jeremy.king is offline   0 Reply With Quote
Old Oct 31, 2009, 12:37 PM   #47
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Quote:
Originally Posted by craig1410 View Post
Here is the first changed line:
Code:
movieTitle=`"$xpathPath" "$movieData" //name 2>/dev/null | awk -F\> '{print $2}' | awk -F\< '{print $1}' | sed "s|&apos;|\'|g" | egrep -ix "$discNameNoYearWildcard"`
and the second three lines below:
Code:
movieTitle=`"$xpathPath" "$movieData" //alternative_name 2>/dev/null | awk -F\> '{print $2}' | awk -F\< '{print $1}' | sed "s|&apos;|\'|g" | egrep -ix "$discNameNoYearWildcard"`
I hope you don't mind me digging into your code.
Hi craig1410,

Thanks for posting! Of course I don't mind you guys digging it to the code, in fact I appreciate it. Just be sure to post (as craig did) or PM me your changes as they might help to benefit everyone.

I think the -x flag will work nicely. I originally wrote that part of the script when I was editing filenames manually, so at the time I needed a little bit of fuzzy matching, otherwise it would fail if I didn't get the name exactly how it appeared in the database. If you are using the renamer action, the names should be correct so the -x flag should assure a correct match.

Thanks again for posting,
mac.jedi
mac.jedi is offline   0 Reply With Quote
Old Oct 31, 2009, 12:44 PM   #48
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Quote:
Originally Posted by craig1410 View Post
I just tried the new 1.0.2 release and it didn't seem to set the spotlight comment of the rip folder to "Movie" even though that is the media type I chose when running Batch Rip action after inserting the DVD.
Hi again,

I've tested it, and it seems to be functioning properly. Setting the spotlight comment is pretty much the last thing that's done in the process. Was there any indication that the script didn't finish?
mac.jedi is offline   0 Reply With Quote
Old Oct 31, 2009, 01:11 PM   #49
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Quote:
Originally Posted by jeremy.king View Post
I noticed on my machine, /tmp/batchRip/currentItems.txt wasn't being created, so ultimately I'd get the "No discs found" error.

I was able to fix by using touch, but I was curious at what point in the process is that file created/written?

I'm testing a rip now, looks to be working.
Hi jeremy.king,

Thanks for posting! How you are using the touch command and what exactly did you fix? It may help to benefit everyone if there's a change that can be made in the code to make the process work better.

In answer to your question, the file is created after selecting the video kind in the dialog box. It basically just writes a line for each disc inserted, the path and the video kind selected. When the action launches Terminal, the file is moved to a new temp folder for the currently running script, deleting the original file. The script will then copy the discs listed in the text file using the video kind selected for each disc.

There are a few reasons for needing to create the file, but the most important one is for FairMount and MakeMKV. They both unmount and remount the discs during the copying process. This makes the folder action run again. To make sure it doesn't, the action contains a test to see if a newly mounted disc is listed in the text file of the currently running process. If it is, the action will stop. If it isn't, the action will continue and display the dialog box.

I hope this helps.

Thanks, mac.jedi
mac.jedi is offline   0 Reply With Quote
Old Oct 31, 2009, 02:16 PM   #50
mac.jedi
Thread Starter
macrumors 6502
 
Join Date: Feb 2008
Location: The O.C.
Quote:
Originally Posted by Tastannin View Post
1. The default encoding type - DVD (Default) - what setting does it approximate when using Handbrake GUI on the Mac?
Hi Tastannin,
Thanks for posting! You actually helped me find an error I made in the code. The default DVD settings should be a slightly modified version of the Universal preset using decomb, detelecine and core audio instead of faac. It looks like during testing, I deactivated the Universal setting and activated a setting that is closer to the Apple TV setting. I'll be sure correct it in the next revision.

Quote:
Originally Posted by Tastannin View Post
2. How can I get my GUI settings in a CLI string to put in for the Custom Settings?
In order to mimic the settings you use in the GUI, you'll need to do some research on using the command-line. The HandBrake wiki has CLI guide, but it's a bit out dated if you are using the latest snapshot. It is however a must read if you aren't familiar with using custom commands.CLIGuide - HandBrake

For a more up-to-date listing of the commands, use Terminal. Enter the path to (or drag) the HandBrakeCLI tool into the Terminal window. Enter a space after the path and type -h to get a list of all the commands HB supports. Instead of -h you can also type -z which will give you an up-to-date listing of the HandBrake presets in command-line form.

Quote:
Originally Posted by Tastannin View Post
3. All my sources are DVD's - can I use HD(SD) to get the Universal setting like in the GUI? That's what I use in the GUI anyways.
The HD(SD) setting in the action is only for HD sources. You'll want to enter your custom DVD settings in the custom DVD tab.

Quote:
Originally Posted by Tastannin View Post
4. I'd like to include closed captions because I'm deaf. GUI allows me to choose this. However I seem to be unable to find the correct flag to put into the Custom Settings to get this option. Is there any way you can add a picker (like in the GUI) for choosing the default Subtitle track in the Batch Encode Service?
In time, I hope to implement a setting for audio language and subtitles, but it's a big task that I'm not quite ready for as I'd have to do it for BD-ROM also. In the meantime, if you include the subtitle commands in the Action's custom DVD tab, they should be processed just like any other command. You may want to look at the subtitle section of the CLI help for more info on the commands. Also, I know that there has been a lot of work going into subtitles as of late in HB so a quick search of the HB forum might help too. Also look at the app Subler. This will add subtitles to already encoded files.

Anyway, thanks again for posting. I hope this helps.

Thanks, mac.jedi
mac.jedi is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Hardware > Apple TV and Home Theater

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Automating DVD & Blu-Ray (Backup, Encoding & Tagging) for Windows? bertie343 Apple TV and Home Theater 4 Jun 16, 2013 07:26 AM
Time Capsule & External Blu Ray Drive? jmine83 Mac Peripherals 0 Dec 8, 2012 12:45 PM
Handbrake encoding Blu-Ray iOrbit Apple TV and Home Theater 7 Sep 17, 2012 05:23 PM

Forum Jump

All times are GMT -5. The time now is 06:31 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC