Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
This makes sense. I had DVD(1), DVD(2) and HD(720P) selected. I wrongly (and dumbly) assumed these options were similar to the audio layers in that selecting more than one layer (embedding multiple audio tracks in one m4v) would allow the video to be played on various devices.

******
You are correct in your assumption that multiple audio tracks helps with playability on different devices. But the whole DVD(1) and DVD (2) was so users could encode the movie for different devices at one time. Especially holds true when your doing BD movies. I always encode at ATV2 and Universal or iPad.
******

In each profile what is the best video option? Example, DVD(1): "High Profile", "Apple TV 2" or "Universal". What is the quality for each profile and what is the best option to maintain video quality for playback on various m4v capable devices? I assumed "High Profile" was better than "Apple TV 2", but then "Universal" is thrown into the equation.

***
The rule of thumb is this. Encode to lowest common denominator. ATV2 is pretty near perfect quality in my opinion. I see some less than perfect when its clouds. Which I see on all of them. I have not done a comparison between High Profile and ATV2. Just pick a movie and select those two options and see which you like. Universal will fit most anything. It has the least amount of tweaks for performance, quality etc. As they say:

Quality
Size
Speed

Pick Two... thats all you can encode to. Two of those three.
*******


Perfect sense now, thank you. If I want a different encoding process I must use the "Custom" selection and the related command line for my particular needs as each profile is already customized for that particular device (ex Apple TV, iPad, etc.)

***
Correct. Heres how. Pick all the stuff you like and look at the advance window to see the options you have chosen. Now on the PC version it will show you the whole command line, while it apears the mac will not. You have to use the start of the command from mac.jedi's document and piece meal it together or even ask on HB forums.
*******


On this I researched a lot. I realize a higher quality Bitrate of around 2000 with 2-pass encoding is more than necessary for the Apple TV 2. However at the recommendations of many I decided on this as to maintain the closest in video quality to the source DVD as possible and to (hopefully) future proof the movie rip. As well, playing the movie through XBMC allows the Apple TV 2 to use about every codec available and can force an output of 1080P, thereby bypassing the aTV's iOS downscaling of high def to 720P

****
I would beg to differ myself. First I would say that I can use ATV2 preset on a DVD and it is near perfect. Now with BD you may get something better. However I would suggest you use RF instead of kbps, just try it.. For normal DVD's use a number between 19-21, for BD use a RF of 20-22. Dont adjust the kbps and look at the quality.
*****

Lord I'm such a blond sometimes. For some reason I bought AAC outputted in 2-channel (think I read that in another forums). There are so many I thought it was necessary to choose more than one for universal device capability. I'm guessing only one track is needed and the device itself (such as an iPad) will handle the audio by decoding it. If this is the case, what is the best audio (AC3 being constant):

• AAC (Core Audio)
• AC3 Passthru
• AC3

Then with those choices what is the best:
• Dolby Surround
• Dolby Pro Logic II
• 6-channel discrete
• Bitrate

I assumed AC3 with 6-channel discrete at 640 kbps was the best quality audio layer. Now I'm realizing that AC3 (5.1) w/ AAC (CoreAudio) and 6-channel discrete may be the best (and only necessary) audio layer.

*****
I always let the Batch Encode handle it. So it always does AC-3(5.1) and AAC in that order. So mine places through receiver perfectly fine, and iPad, computer perfectly fine. the iPad is smart enough to play the AAC track automatically.
*******

You are the best! Thank you so much, I know I have been a complete PITA, and I can't imagine having to deal with my endless questions lol. I just want to do this once and do it right. Oddly I'm not a noob but I've become very humble in this learning process. THANK YOU!

I have no problems answering questions if I know (or think I know) lol. It gets me to think sometimes... Nothing wrong with that.

Look above for info between ****'s
 
Hi everyone,

I managed to install all the workflows and have run them through with success. However, when I opened the workflow files from ~/library/services, make my edits to them, the edits made to the workflows aren't saved when I open them up through the automator menu. I save over the original file, but it still reverts back to default settings for minimum and maximum movie lengths, tv show lengths, etc. Am I to open the workflow from the services folder overtime instead of the automator menus? Thanks in advance,

tparrish

Are you doing Save-As or just save? For some reason, I was having this problem too, and was still prompted to overwrite when just using Save. However, when I did Save As, it magically worked haha. Odd Automator file issue I think.
 
I've been having some various issues, and definitely this one. I was annoyed enough last night to debug the script, though I'm not much of a shell scripter.

There is a problem with the API, and not much of any debug code in these scripts. To fix, you must edit the script at:

~/Library/Automator/Add\ TV\ Tags.action/Contents/Resources/main.command

First, in finder use Go->Go to folder (Enter /tmp). That's where the script writes temp files.

In the source code, at the bottom, comment out the delete tmp files block with the # sign, like so:

Code:
# delete script temp files
#if [ -e "$sourceTmpFolder" ]; then
#rm -rf $sourceTmpFolder
#fi

Now, the directory it creates in /tmp will remain and you can look at the files. Currently, they're all empty due to this problem we're having.

The problem is that the tvdbMirror variable is getting set to null or empty string. The line:

Code:
tvdbMirror=`curl -s "http://www.thetvdb.com/api/9F21AC232F30F34D/mirrors.xml"

is key. Paste into safari and the response (view source to see xml) looks fine. Go to terminal and run this via curl and the response is an error xml file. (Moved permanently) I don't know why. Perhaps the site is checking the browser vendor in the request headers?

So, that's the problem. The fix:

Code:
#tvdbMirror=`curl -s "http://www.thetvdb.com/api/9F21AC232F30F34D/mirrors.xml" | "$xpathPath" //mirrorpath 2>/dev/null | awk -F\> '{print $2}' | awk -F\< '{print $1}'`
		
# Mirror is broken, hardcode it
tvdbMirror="http://cache.thetvdb.com"

I've just commented out the curl line with #. Then I set the variable to a hardcoded value that works.

If you want other debugging do something like this:

Just before ( # get series data)
Code:
# My log
myLog="$sourceTmpFolder/debug.log"
touch "$myLog"


Just after (# get series id AND series_id=$(curl ...)
Code:
### Some debugging now		
echo "Debug for get series data:" >> "$myLog"

#curl -s "http://www.thetvdb.com/api/9F21AC232F30F34D/mirrors.xml"  >> "$myLog"

echo "tvdbMirror = $tvdbMirror" >> "$myLog"
echo "searchTerm = $searchTerm" >> "$myLog"
echo "series_id = $series_id" >> "$myLog"
echo "curlUrl = $tvdbMirror/api/GetSeries.php?seriesname=$searchTerm" >> "$myLog"
		
echo "$tvdbMirror/api/9F21AC232F30F34D/series/$series_id/en.xml" >> "$myLog"

curl -s "$tvdbMirror/api/9F21AC232F30F34D/series/$series_id/en.xml" >> "$myLog"

#####

Awesome!!!! that worked, thanks for the quick fix. Legend!!:D
 
How to tag a serie?

Hi,

first of all THANKS for "How-To: Automate DVD & Blu-Ray (Backup, Encoding & Tagging) for Mac OS X 10.6"
i like to orginize my media. i read that and have now the problem with tagging my media.

the series, for example:
Supernatural - S##E##.m4v
How I Met Your Mother - S##E##.m4v
Vampire Diaries - S##E##.m4v
.
.

so, all the series are in the format [Show] - S[Season]E[Episode].xxx

I use the "Batch Rip (dot) Add TV Tags (Date Aired).workflow"

But i get the following Error Message all the time:
Code:
Error: Add TV Tags
Error: Could not find a match.
Check TV Show Name, Season Number and Episode Number.

excuse my English, please. hope someone can help me
(how can i tag the serie for german language)

Please ask if you need further information

Thanks
 
Changing the Add TV Tags code?

I've been having some various issues, and definitely this one. I was annoyed enough last night to debug the script, though I'm not much of a shell scripter.

There is a problem with the API, and not much of any debug code in these scripts. To fix, you must edit the script at:

~/Library/Automator/Add\ TV\ Tags.action/Contents/Resources/main.command

First, in finder use Go->Go to folder (Enter /tmp). That's where the script writes temp files.

In the source code, at the bottom, comment out the delete tmp files block with the # sign, like so:

Code:
# delete script temp files
#if [ -e "$sourceTmpFolder" ]; then
#rm -rf $sourceTmpFolder
#fi

Now, the directory it creates in /tmp will remain and you can look at the files. Currently, they're all empty due to this problem we're having.

The problem is that the tvdbMirror variable is getting set to null or empty string. The line:

Code:
tvdbMirror=`curl -s "http://www.thetvdb.com/api/9F21AC232F30F34D/mirrors.xml"

is key. Paste into safari and the response (view source to see xml) looks fine. Go to terminal and run this via curl and the response is an error xml file. (Moved permanently) I don't know why. Perhaps the site is checking the browser vendor in the request headers?

So, that's the problem. The fix:

Code:
#tvdbMirror=`curl -s "http://www.thetvdb.com/api/9F21AC232F30F34D/mirrors.xml" | "$xpathPath" //mirrorpath 2>/dev/null | awk -F\> '{print $2}' | awk -F\< '{print $1}'`
		
# Mirror is broken, hardcode it
tvdbMirror="http://cache.thetvdb.com"

I've just commented out the curl line with #. Then I set the variable to a hardcoded value that works.

If you want other debugging do something like this:

Just before ( # get series data)
Code:
# My log
myLog="$sourceTmpFolder/debug.log"
touch "$myLog"


Just after (# get series id AND series_id=$(curl ...)
Code:
### Some debugging now		
echo "Debug for get series data:" >> "$myLog"

#curl -s "http://www.thetvdb.com/api/9F21AC232F30F34D/mirrors.xml"  >> "$myLog"

echo "tvdbMirror = $tvdbMirror" >> "$myLog"
echo "searchTerm = $searchTerm" >> "$myLog"
echo "series_id = $series_id" >> "$myLog"
echo "curlUrl = $tvdbMirror/api/GetSeries.php?seriesname=$searchTerm" >> "$myLog"
		
echo "$tvdbMirror/api/9F21AC232F30F34D/series/$series_id/en.xml" >> "$myLog"

curl -s "$tvdbMirror/api/9F21AC232F30F34D/series/$series_id/en.xml" >> "$myLog"

#####

I've already seen another forum member confirm that this solves the problem, but these instructions are too technical for me to follow. Could anyone point me toward instructions on how to actually edit the script? What app do I use? Terminal?

Thanks from a Newb!
 
The rule of thumb is this. Encode to lowest common denominator. ATV2 is pretty near perfect quality in my opinion. I see some less than perfect when its clouds. Which I see on all of them. I have not done a comparison between High Profile and ATV2. Just pick a movie and select those two options and see which you like. Universal will fit most anything. It has the least amount of tweaks for performance, quality etc. As they say:
Quality
Size
Speed

Pick Two... thats all you can encode to. Two of those three.

So the best setting would be "Universal" in terms of quality?

Correct. Heres how. Pick all the stuff you like and look at the advance window to see the options you have chosen. Now on the PC version it will show you the whole command line, while it apears the mac will not. You have to use the start of the command from mac.jedi's document and piece meal it together or even ask on HB forums.

Ok, I'll familiarize myself with the necessary command lines to modify the batch encodes. I'm running this on Lion DP2 (no issues, works the same as 10.6.7), so I'm on the OS X platform. I'll check out "mac.jedis" documents and work out the required code, then simply select "Use Custom [SOURCE] setting (SD Setting) with the required code alterations.

I would beg to differ myself. First I would say that I can use ATV2 preset on a DVD and it is near perfect. Now with BD you may get something better. However I would suggest you use RF instead of kbps, just try it.. For normal DVD's use a number between 19-21, for BD use a RF of 20-22. Dont adjust the kbps and look at the quality.

I'll try them both but from what I've read from many on various forums such as "RipDifferent," "Mac the Ripper 4.0," and "XBMC," selecting the Bitrate option with 2000 kbps with 2-pass is the best option, for SD and BD. I've noticed a difference especially with SD DVD's, the clarity is much better and smoother. I'll do some comparison tests, I have the time and want to get this right, and besides, you definitely know a lot so I would take your advice over theirs. :)

I always let the Batch Encode handle it. So it always does AC-3(5.1) and AAC in that order. So mine places through receiver perfectly fine, and iPad, computer perfectly fine. the iPad is smart enough to play the AAC track automatically.

AC-3 (5.1), what about 6-channel discrete if that option is offered? I'll check out mac.jedi's post/comments to determine if audio selection can be modified to auto-select the highest sound quality offered for each source.

Again, thanks man, you're the best! You should start your own site on this, a good forum, maybe even accept donations ;)
 
I've been having some various issues, and definitely this one. I was annoyed enough last night to debug the script, though I'm not much of a shell scripter.

There is a problem with the API, and not much of any debug code in these scripts. To fix, you must edit the script at:

~/Library/Automator/Add\ TV\ Tags.action/Contents/Resources/main.command

Great job debugging!

The problem is that by default curl doesn't follow redirects (301), so if you simply add a -L to the curl command:

Code:
tvdbMirror=`curl -s "http://www.thetvdb.com/api/9F21AC232F30F34D/mirrors.xml" | "$xpathPath" //mirrorpath 2>/dev/null | awk -F\> '{print $2}' | awk -F\< '{print $1}'`

to make it:

Code:
tvdbMirror=`curl -L -s "http://www.thetvdb.com/api/9F21AC232F30F34D/mirrors.xml" | "$xpathPath" //mirrorpath 2>/dev/null | awk -F\> '{print $2}' | awk -F\< '{print $1}'`

it works.

There are about 8 lines in the file that have a curl command, so the easy thing to do is just a find on curl -s and then replace it with curl -L -s

I've attached an updated version of the Ad TV Tags.action, if you don't feel comfortable making the change. I would back up the Ad TV Tags.action that you have, just in case.

giraffezw: This should fix your problem.

--- UPDATE 04/11/2011 ---

  • Fixed can't find series error when tagging tv episodes.
  • Fixed some series titles not being properly recognized. (ie The Shield)

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

Attachments

  • 20110411_Add TV Tags.action.zip
    323.6 KB · Views: 207
Last edited:
So the best setting would be "Universal" in terms of quality?

*****
No Universal is not the best quality at all. It is the best for the most the most compatible for many devices is all.
*****

Ok, I'll familiarize myself with the necessary command lines to modify the batch encodes. I'm running this on Lion DP2 (no issues, works the same as 10.6.7), so I'm on the OS X platform. I'll check out "mac.jedis" documents and work out the required code, then simply select "Use Custom [SOURCE] setting (SD Setting) with the required code alterations.

****
You lucky dog!!!! You got Lion already! How does it look so far? Handbrake forum would be your best for parm that you can use for the CLI. Word of cuation my friend, not all settings you can change around in the GUI can you do in the CLI.. just letting you know.
****

I'll try them both but from what I've read from many on various forums such as "RipDifferent," "Mac the Ripper 4.0," and "XBMC," selecting the Bitrate option with 2000 kbps with 2-pass is the best option, for SD and BD. I've noticed a difference especially with SD DVD's, the clarity is much better and smoother. I'll do some comparison tests, I have the time and want to get this right, and besides, you definitely know a lot so I would take your advice over theirs. :)

****
Maybe for XMBC that is true, but I am just basign it off my experiances doign 230 movies 4 differnet times, before I finnaly got it right. I use a 42inch Plasma myself. Some of the best movies for testing I have seen are the Harry potter movies. Lots of movement, fast movement, as well as many sences of clouds, which tend to really stand out if encode is bad. If you want to know which one I can look for it and tell you.
Usually SD much harder to see a quality differance because it has the lower resoluton to begin with. I know no more than anyone else. It's just I started mine in Oct and it wasn't till Dec that i got mine right for all 1000+ movies. Now I go online to Amazon and buy up 5.00 movies and do those. Plus new ones as well
******

AC-3 (5.1), what about 6-channel discrete if that option is offered? I'll check out mac.jedi's post/comments to determine if audio selection can be modified to auto-select the highest sound quality offered for each source.

Again, thanks man, you're the best! You should start your own site on this, a good forum, maybe even accept donations ;)

*****
Nope I only offer help like I get from others. Good question I never worry about mine sound, becuase it is usign the profile and his workflow muxes and does the sound conversion for you. Any movie that has TD, 6 Channel, Dolby always comes out with Dolby 5.1, and AAC. Which is fines. I dont have the speaks for the 7.1 or anything. Stereo can handle it for sure.
*****


Again look above for each comment i made.
 
Great job debugging!

The problem is that by default curl doesn't follow redirects (301), so if you simply add a -L to the curl command on line 62:

Code:
tvdbMirror=`curl -s "http://www.thetvdb.com/api/9F21AC232F30F34D/mirrors.xml" | "$xpathPath" //mirrorpath 2>/dev/null | awk -F\> '{print $2}' | awk -F\< '{print $1}'`

to make it:

Code:
tvdbMirror=`curl -L -s "http://www.thetvdb.com/api/9F21AC232F30F34D/mirrors.xml" | "$xpathPath" //mirrorpath 2>/dev/null | awk -F\> '{print $2}' | awk -F\< '{print $1}'`

it works.


I've attached an updated version of the Ad TV Tags.action, if you don't feel comfortable making the change. I would back up the Ad TV Tags.action that you have, just in case.

giraffezw: This should fix your problem.

Is it possible to have it put the logs into somewhere else? To get to tmp direcotry don't you have to do some things to the Mac?

Why not put all tmp files into the Batch Rip folder for ease of use?
 
New AddTVTags.action not working

bunchesofdonald graciously posted a new version of the AddTVTags.action file, but I've just tried it and I get the following error message:

Error: Add TV Tags
Error: Cover art failed integrity test
No artwork was added

When I import the m4v file into iTunes, iTunes correctly identifies the season and episode number, but the Show, Name, Description, and artwork are missing. Any ideas? I'd like to be of more help, but fixing this is beyond my abilities.

Thanks!
 
bunchesofdonald graciously posted a new version of the AddTVTags.action file, but I've just tried it and I get the following error message:

Error: Add TV Tags
Error: Cover art failed integrity test
No artwork was added

When I import the m4v file into iTunes, iTunes correctly identifies the season and episode number, but the Show, Name, Description, and artwork are missing. Any ideas? I'd like to be of more help, but fixing this is beyond my abilities.

Thanks!

Thanks for all the work on this. I'm getting the sme issue as mentioned above. I used to get this occasionally on new shows that had no cover art, but now am getting it on every show. Has the tvdb API recently been updated in this area?
 
That was my fault, I got the same error, but since I was getting that error a lot before things broke, I just assumed it worked. It appears that they are proxy'ing all of the api now, so just changing the one curl command didn't work. I ended up just doing a find & replace on curl -s and replacing it with curl -L -s after that I get artwork and episode information.

I updated the post above with the corrected file.

Is it possible to have it put the logs into somewhere else? To get to tmp direcotry don't you have to do some things to the Mac?

Why not put all tmp files into the Batch Rip folder for ease of use?

To get to the /tmp folder all you have to do is go to finder, then under the go menu click on "Go to Folder...", in the dialog enter /tmp and click Go. That is the case for any hidden folder.
 
Last edited:
That was my fault, I got the same error, but since I was getting that error a lot before things broke, I just assumed it worked. It appears that they are proxy'ing all of the api now, so just changing the one curl command didn't work. I ended up just doing a find & replace on curl -s and replacing it with curl -L -s after that I get artwork and episode information.

I updated the post above with the corrected file.



To get to the /tmp folder all you have to do is go to finder, then under the go menu click on "Go to Folder...", in the dialog enter /tmp and click Go. That is the case for any hidden folder.

Sweet. Works for me now too.
 
That was my fault, I got the same error, but since I was getting that error a lot before things broke, I just assumed it worked. It appears that they are proxy'ing all of the api now, so just changing the one curl command didn't work. I ended up just doing a find & replace on curl -s and replacing it with curl -L -s after that I get artwork and episode information.

I updated the post above with the corrected file.



To get to the /tmp folder all you have to do is go to finder, then under the go menu click on "Go to Folder...", in the dialog enter /tmp and click Go. That is the case for any hidden folder.

That's cool, did nto know that. And I have a whole lot of files in there. Isn't Mac suppose to clean these up?

I see all the failures of batch ripping/encoding as well hanging out in here.

The think I always wanted with this code was for the workflow to leave that file that has the Tagging info, to see what it did send back when ther eis any problem. But fo rthe most part the workflow deletes it. Any way to stop it?
 
Adobe Unit Types.osax

I've been getting this:

2011-04-10 18:49:45.885 osascript[45157:903] 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.
2011-04-10 18:49:46.114 osascript[45158:903] 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.

I'm a tinkerer with code with no formal training so please be gentle.

I've found this: http://kb2.adobe.com/cps/516/cpsid_51615.html
but i can't figure out where the portion of code i need to change is kept.
Please help.

I'd also like to thank everyone involved for the TV tagging fix! works like a dream now!
 
Thanks for all the work on this. I'm getting the sme issue as mentioned above. I used to get this occasionally on new shows that had no cover art, but now am getting it on every show. Has the tvdb API recently been updated in this area?

I've still been having the "cover art integrity test" error, even after manually editing the Add TV Tags.action as described (no luck), and downloading bunchesofdonald's zip file above. When I add it to iTunes to check what tags have been added, there seems to be a haphazard smattering of information added, but nothing useable.

I used to use metax and was fine with it, but now I'm going to be really disappointed to have to go back to it if I can't get my trusty batch rip actions to work correctly.

So here I am, hat in hand, bunchesofdonald. Do you have any other suggestions? I'd be happy to try anything you suggest. Maybe I can channel the spirit of mac.jedi...
 
I have had the ripping automation running nice through several batches now and then suddenly I have a problem.

The problem happens when I activate Batch Rip Batch Encode on a folder of rips. I get the following error, and what's worse my Batch Rip folders inside my "Movies" directory all vanish. They are not in the trash and I can't find them with a search.

The first time it happened, I though I'd deleted them myself. However, it just happened again and they were present one minute, gone after this action was run.

Here is the error from Terminal.

Last login: Sun Apr 10 18:59:27 on ttys001
/Users/Jim/Library/Application\ Support/Batch\ Rip/batchEncodeTmp.sh ; exit;
jim-mac:~ Jim$ /Users/Jim/Library/Application\ Support/Batch\ Rip/batchEncodeTmp.sh ; exit;

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
batchEncode.sh v1.0.6

Start: Sun Apr 10 23:11:36 EDT 2011
Input directory 1: /Users/Jim/Movies/Batch Rip Movies
Input directory 2: /Users/Jim/Movies/Batch Rip TV
Output directory: /Users/Jim/Movies/Batch Encode
Use optical Drive: No
Encode HD Sources: No
Keep MKV Temp Files: No
Auto-add movie tags: Yes
Retire Existing File: No
Growl me when complete: Yes
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:

WILL PROCESS THE FOLLOWING VIDEOS:
sed: 1: "s|\/Batch Rip Movies\n.B ...": unterminated substitute pattern
sed: 1: "s|\/Batch Rip Movies\n.B ...": unterminated substitute pattern
Batch Rip Movies
.Batch
Rip
Movies : (Movie)

sed: 1: "s|\/Batch Rip Movies\n.B ...": unterminated substitute pattern
sed: 1: "s|\/Batch Rip Movies\n.B ...": unterminated substitute pattern
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PROCESSING: Batch Rip Movies
.Batch
Rip
Movies

*Scanning File: 'Batch Rip Movies
.Batch
Rip
Movies'

* ERROR: Batch Rip Movies
.Batch
Rip
Movies FAILED during processing!


PROCESSING COMPLETE: Batch Rip Movies
.Batch
Rip
Movies
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
rm: Movies: Permission denied
End: Sun Apr 10 23:11:51 EDT 2011

logout

[Process completed]

I tried reinstalling the scripts between the first and second occurrence of this problem. I can understand lots of possible errors but not one that removes the files completely.

Anyone with ideas, I'm all ears.

Thanks,
 
I have had the ripping automation running nice through several batches now and then suddenly I have a problem.

The problem happens when I activate Batch Rip Batch Encode on a folder of rips. I get the following error, and what's worse my Batch Rip folders inside my "Movies" directory all vanish. They are not in the trash and I can't find them with a search.

The first time it happened, I though I'd deleted them myself. However, it just happened again and they were present one minute, gone after this action was run.

Here is the error from Terminal.

Last login: Sun Apr 10 18:59:27 on ttys001
/Users/Jim/Library/Application\ Support/Batch\ Rip/batchEncodeTmp.sh ; exit;
jim-mac:~ Jim$ /Users/Jim/Library/Application\ Support/Batch\ Rip/batchEncodeTmp.sh ; exit;

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
batchEncode.sh v1.0.6

Start: Sun Apr 10 23:11:36 EDT 2011
Input directory 1: /Users/Jim/Movies/Batch Rip Movies
Input directory 2: /Users/Jim/Movies/Batch Rip TV
Output directory: /Users/Jim/Movies/Batch Encode
Use optical Drive: No
Encode HD Sources: No
Keep MKV Temp Files: No
Auto-add movie tags: Yes
Retire Existing File: No
Growl me when complete: Yes
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:

WILL PROCESS THE FOLLOWING VIDEOS:
sed: 1: "s|\/Batch Rip Movies\n.B ...": unterminated substitute pattern
sed: 1: "s|\/Batch Rip Movies\n.B ...": unterminated substitute pattern
Batch Rip Movies
.Batch
Rip
Movies : (Movie)

sed: 1: "s|\/Batch Rip Movies\n.B ...": unterminated substitute pattern
sed: 1: "s|\/Batch Rip Movies\n.B ...": unterminated substitute pattern
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PROCESSING: Batch Rip Movies
.Batch
Rip
Movies

*Scanning File: 'Batch Rip Movies
.Batch
Rip
Movies'

* ERROR: Batch Rip Movies
.Batch
Rip
Movies FAILED during processing!


PROCESSING COMPLETE: Batch Rip Movies
.Batch
Rip
Movies
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
rm: Movies: Permission denied
End: Sun Apr 10 23:11:51 EDT 2011

logout

[Process completed]

I tried reinstalling the scripts between the first and second occurrence of this problem. I can understand lots of possible errors but not one that removes the files completely.

Anyone with ideas, I'm all ears.

Thanks,

First I get the error above (unterminated one) when I tried to do Batch Encode (finder) on a previously done mkv. The problem being the workflow is look at the mkv file and it's already in a directory which i tagged as trying to encode it, it then makes another directory inside the directory.. and encode fails. Like so.

Movie 2012
Directory 2012 (2010)/2012 (2010).mkv

Run the batch encode (finder) on the folder like you wld normally do on a DVD and I end up with this:

Directory 2012 (2010)/2012 (2010)/2012 (2010).mkv

At that point it apears the movie was deleted, but was moved down to another level, and the batch encode fails..
 
I've made all the necessary changes and got the process working again thanks to everyones help. 24 is has now been successfully tagged as have Prison Break and Alan Partridge.

However, whenever I try tagging The Shield it tags it as The End of the Year Show. Any ideas what is going on here?
 
Error !?

Last login: Mon Apr 11 19:25:12 on ttys000
/Users/David/Library/Application\ Support/Batch\ Rip/batchEncodeTmp.sh ; exit;
iMac:~ David$ /Users/David/Library/Application\ Support/Batch\ Rip/batchEncodeTmp.sh ; exit;

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
batchEncode.sh v1.0.6

Start: Mon 11 Apr 2011 19:26:55 WST
Input directory 1: /Users/David/Movies/Batch Rip Movies
Input directory 2: /Users/David/Movies/Batch Rip TV
Output directory: /Users/David/Movies/Batch Encode
Use optical Drive: No
Encode HD Sources: No
Keep MKV Temp Files: 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: eng (en)
Use Disc's Default Audio Language: Yes
Will Encode: DVD/AppleTV

WILL PROCESS THE FOLLOWING VIDEOS:
Weeds - S2D1 : (TV Show)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PROCESSING: Weeds - S2D1

*Scanning Folder: 'Weeds - S2D1'

* ERROR: Weeds - S2D1 FAILED during processing!


PROCESSING COMPLETE: Weeds - S2D1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
End: Mon 11 Apr 2011 19:26:59 WST

logout

[Process completed]


i am receiving this error which provides no details what so ever. is anyone familiar with it. i was getting the one about adobe earlier but i removed that script now i'm getting nothing.
 
I've made all the necessary changes and got the process working again thanks to everyones help. 24 is has now been successfully tagged as have Prison Break and Alan Partridge.

However, whenever I try tagging The Shield it tags it as The End of the Year Show. Any ideas what is going on here?

I have this fixed, it was a sed command where it tried to find out the series name, it was [Ss]..[Ee], which is intended to search for the S01E01, but was finding Shield instead. I changed it to [Ss][0-9][0-9][Ee][0-9][0-9] so it should only find the S01E01 part.

I'm attaching it here, and not updating the post above. If any one is having troubles similar to this, download this version and play with it, see if you get any errors, if not I'll update the post above.

juliuspierpont said:
I've still been having the "cover art integrity test" error, even after manually editing the Add TV Tags.action as described (no luck), and downloading bunchesofdonald's zip file above. When I add it to iTunes to check what tags have been added, there seems to be a haphazard smattering of information added, but nothing useable.

I used to use metax and was fine with it, but now I'm going to be really disappointed to have to go back to it if I can't get my trusty batch rip actions to work correctly.

So here I am, hat in hand, bunchesofdonald. Do you have any other suggestions? I'd be happy to try anything you suggest. Maybe I can channel the spirit of mac.jedi...

I'm wondering if your problem isn't something of the same problem as above, what series are you tagging? Also what is it tagging it as?

gunthermic said:
The think I always wanted with this code was for the workflow to leave that file that has the Tagging info, to see what it did send back when ther eis any problem. But fo rthe most part the workflow deletes it. Any way to stop it?

From what I can tell most of the data isn't really written to any files. But you could make it do so, down around line 191 where it says mv "$newFile" "$theFile" you could add a line of something like:

echo "$showName - $seasonNum, etc" > /path/to/where/I/want/the/file.txt
 

Attachments

  • 20110411_Add TV Tags.action.zip
    323.6 KB · Views: 143
Hello,

Thanks very much for your scripts.
Is there a way to specify that all subtitle tracks and all audio tracks should be
conserved?
I opened your scripts in automator, but I did not find a way to change the source code that is behind these automator scripts. If I knew how to do this, I could add a loop over all subtitles and all audio tracks and then change the commandline to drive the Handbrakecli accordingly.

All help appreciated!

Hi, i'm also having this "issue". It would be great to know how to select multiple audio tracks while keeping the same presets.
I have DVDs with 2 audio tracks so i thought that using a custom setting like this: --preset="Universal" -a 1,1,2,2 or like --preset="Apple TV 2" -a 1,1,2,2
would let me use a certain preset AND select both the audio tracks (the repetition is due to aac / ac3 pass encoding). However this doesn't work, the script is always using the default language and THEN it seems to apply the custom settings. I'm sure there is an easy solution to this but i'm new to this kind of stuff :(
 
Last question. I promise :)

Given that encode batch workflow has set parameters that require mac.jedis recommended tweaks in coding, instead of taking the time in learning what is necessary I believe I will use Handbrake to convert each DVD backup to an m4v.

Once this is done, do I need to run each workflow separately or produce one workflow that doesn't modify the m4v in order to obtain chapter titles, movie info, etc.? Or is this impossible as the encoding process in Handbrakecli needs to handle that input in one command line?

For those who are interested, I came across this post about DTS Lossless Audio& Handbrake on the www.makemkv.com forum:

handbrake uses very very old ffmpeg. It does not know about lossless tracks. Maybe try a more recent version from the handbrake nightly builds.

After checking into more of the inner workings of handbrake, (by the way I do use the nightly builds of handbrake) you nailed it. The current handbrake doesn't understand DTS Lossless audio and therefor the errors. The solution is to leave the DTS Lossless audio unchecked and not part of the final MKV output file.

Once again, MKV is really showing how current and robust a program it truly is. Hopefully this post will be of help with anyone that has this question in the future.

Of course you can also mux in the lossless track your self with mkvmerge(gui) after handbrake has encoded it.
http://www.bunkus.org/videotools/mkvtoolnix/

Its one more step, but if your equipment supports it... then go for it! Also if you feel up to it I have written a small guide that details both compiling latest and encoding directly with x264.
viewtopic.php?f=6&t=1313
 
Last edited by a moderator:
I have this fixed, it was a sed command where it tried to find out the series name, it was [Ss]..[Ee], which is intended to search for the S01E01, but was finding Shield instead. I changed it to [Ss][0-9][0-9][Ee][0-9][0-9] so it should only find the S01E01 part.

I'm attaching it here, and not updating the post above. If any one is having troubles similar to this, download this version and play with it, see if you get any errors, if not I'll update the post above.



I'm wondering if your problem isn't something of the same problem as above, what series are you tagging? Also what is it tagging it as?



From what I can tell most of the data isn't really written to any files. But you could make it do so, down around line 191 where it says mv "$newFile" "$theFile" you could add a line of something like:

echo "$showName - $seasonNum, etc" > /path/to/where/I/want/the/file.txt

That worked a treat!!! Good work!!! Thank you very much :)
 
I have this fixed, it was a sed command where it tried to find out the series name, it was [Ss]..[Ee], which is intended to search for the S01E01, but was finding Shield instead. I changed it to [Ss][0-9][0-9][Ee][0-9][0-9] so it should only find the S01E01 part.

I'm attaching it here, and not updating the post above. If any one is having troubles similar to this, download this version and play with it, see if you get any errors, if not I'll update the post above.

I'm wondering if your problem isn't something of the same problem as above, what series are you tagging? Also what is it tagging it as?

Ahhh...now I can cross this pesky problem off my list of things to puzzle over. I fixed the dishwasher tonight, and diagnosed the dryer's problems, and now bunchesofdonald has settled my batch TV tag problems. Beers all 'round! What a swell day. :D

Thank you, B.O.D., for taking the time to fix that up for those of us who are not able to code. I sincerely appreciate your effort.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.