Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I was wondering mac.jedi if you could do something..

I am startign to run into more and more BD's that I am having to manually encode due to it grabbing the Directors Cut of the Movie instead of the main one. For example, Star Wars BD, it encode the one where the director makign comments and such name appears in the movie. Uggh, thats 8 hours of recoding LOL..

Can you make a new version of Batch Encode(Finder) in which it ask which track to encode instead? We could then at least what run movie in VLC check the track and then pass that into the arg's for Batch Encoding?

I know you can do it.. becuase you are a God.. the question is will you..
 
I was wondering mac.jedi if you could do something..

I am startign to run into more and more BD's that I am having to manually encode due to it grabbing the Directors Cut of the Movie instead of the main one. For example, Star Wars BD, it encode the one where the director makign comments and such name appears in the movie. Uggh, thats 8 hours of recoding LOL..

Can you make a new version of Batch Encode(Finder) in which it ask which track to encode instead? We could then at least what run movie in VLC check the track and then pass that into the arg's for Batch Encoding?

I know you can do it.. becuase you are a God.. the question is will you..

Hi gunthermic!

I was thinking about posting about this issue. Remember, using custom encode settings will override the default settings. You can specify track numbers, chapter numbers, anything HandBrakeCLI allows.

Now, the Star Wars Blu-rays are a special case. The video track isn't the problem, it's the subtitles. There are up to nine subtitle tracks depending on the episode. Using Handbrake to scan for the forced subtitles doesn't work on these discs. As you found, it selects a commentary subtitle track.

You were on the right track by using VLC. The way I solved the issue was to open the mkv's in VLC and look for the correct subtitle track … the one that included only the forced subtitles for the alien language scenes. Then I used a custom encode setting to specify the subtitle track to use. Since I've already identified the subtitle tracks, you don't have to create the mkv's first. Just input the custom encode setting.

Below is the encode setting I used for the Star Wars Blu-rays.

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 --width 1280 --maxHeight 720  -m --subtitle 8 --subtitle-burn

For Episodes I, II and VI you'd specify "--subtitle 8"
For Episode IV you'd specify "--subtitle 2"
Episodes III and V don't have any forced-subtitles, so you'd delete both subtitle options.

I hope this helps!

Thanks!

mac.jedi
 
Hi gunthermic!

I was thinking about posting about this issue. Remember, using custom encode settings will override the default settings. You can specify track numbers, chapter numbers, anything HandBrakeCLI allows.

Now, the Star Wars Blu-rays are a special case. The video track isn't the problem, it's the subtitles. There are up to nine subtitle tracks depending on the episode. Using Handbrake to scan for the forced subtitles doesn't work on these discs. As you found, it selects a commentary subtitle track.

You were on the right track by using VLC. The way I solved the issue was to open the mkv's in VLC and look for the correct subtitle track … the one that included only the forced subtitles for the alien language scenes. Then I used a custom encode setting to specify the subtitle track to use. Since I've already identified the subtitle tracks, you don't have to create the mkv's first. Just input the custom encode setting.

Below is the encode setting I used for the Star Wars Blu-rays.

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 --width 1280 --maxHeight 720  -m --subtitle 8 --subtitle-burn

For Episodes I, II and VI you'd specify "--subtitle 8"
For Episode IV you'd specify "--subtitle 2"
Episodes III and V don't have any forced-subtitles, so you'd delete both subtitle options.

I hope this helps!

Thanks!

mac.jedi

Unstood, but i think my idea for those BD that have rated/unrated theratical/extended version my idea would be great, instead of having to go into and change the batch encode workflow..

One that asks for track to use would be awesome!

What would we change to make star wars a SD version as well...
 
Unstood, but i think my idea for those BD that have rated/unrated theratical/extended version my idea would be great, instead of having to go into and change the batch encode workflow..

One that asks for track to use would be awesome!

If you don't wanna change the Batch Encode workflow, I'd suggest selecting the track you want in MakeMKV and create an mkv containing only the selected track. Then feed the mkv into Batch Encode.

What would we change to make star wars a SD version as well...
You'd just change the HB args to reflect the settings for your device. You'd just wanna make sure you use the subtitle args I listed earlier.

You'd need to activate the SD Encode Option and the SD Custom Encode Option. Then, paste the commands into the custom SD text field in the workflow. The tutorial has more info on this.


Here's an example using HB's Universal setting:

Code:
-e x264  -q 20.0 -a \$audioTrack,\$audioTrack -E faac,copy:ac3 -B 160,160 -6 dpl2,auto -R Auto,Auto -D 0.0,0.0 -f mp4 -X 720 --loose-anamorphic -m --subtitle 8 --subtitle-burn -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:8x8dct=0:trellis=0:subme=6

You can get a list of HB's presets in Terminal by typing:
Code:
/Applications/HandBrakeCLI -z

I hope this helps.

Thanks!

mac.jedi
 
Last edited:
Hi,

I have an issue with the Batch Rip service. It doesn't work for blu-rays. I think I narrowed it down to the discType check in main.command.

For some reason the diskutil command returns nothing for "Optical Media Type" for my blu-ray drive. Have you seen this before? I'm using a USB drive enclosure.

Code:
   Device Identifier:        disk2
   Device Node:              /dev/disk2
   Part of Whole:            disk2
   Device / Media Name:      ATAPI iHOS104 Media

   Volume Name:              FRINGE_SEASON_1_DISC_4
   Escaped with Unicode:     FRINGE_SEASON_1_DISC_4

   Mounted:                  Yes
   Mount Point:              /Volumes/FRINGE_SEASON_1_DISC_4
   Escaped with Unicode:     /Volumes/FRINGE_SEASON_1_DISC_4

   File System Personality:  UDF
   Type (Bundle):            udf
   Name (User Visible):      Universal Disk Format (UDF)

   Content (IOContent):      None
   OS Can Be Installed:      No
   Media Type:               Generic
   Protocol:                 USB
   SMART Status:             Not Supported

   Total Size:               35.7 GB (35735470080 Bytes) (exactly 69795840 512-Byte-Blocks)
   Volume Free Space:        0 B (0 Bytes) (exactly 0 512-Byte-Blocks)
   Device Block Size:        2048 Bytes

   Read-Only Media:          Yes
   Read-Only Volume:         Yes
   Ejectable:                Yes

   Whole:                    Yes
   Internal:                 No
   OS 9 Drivers:             No
   Low Level Format:         Not supported

   Optical Drive Type:       
   Optical Media Type:       
   Optical Media Erasable:   No

Thanks
 
Hi,

I have an issue with the Batch Rip service. It doesn't work for blu-rays. I think I narrowed it down to the discType check in main.command.

For some reason the diskutil command returns nothing for "Optical Media Type" for my blu-ray drive. Have you seen this before? I'm using a USB drive enclosure.

Code:
   Device Identifier:        disk2
   Device Node:              /dev/disk2
   Part of Whole:            disk2
   Device / Media Name:      ATAPI iHOS104 Media

   Volume Name:              FRINGE_SEASON_1_DISC_4
   Escaped with Unicode:     FRINGE_SEASON_1_DISC_4

   Mounted:                  Yes
   Mount Point:              /Volumes/FRINGE_SEASON_1_DISC_4
   Escaped with Unicode:     /Volumes/FRINGE_SEASON_1_DISC_4

   File System Personality:  UDF
   Type (Bundle):            udf
   Name (User Visible):      Universal Disk Format (UDF)

   Content (IOContent):      None
   OS Can Be Installed:      No
   Media Type:               Generic
   Protocol:                 USB
   SMART Status:             Not Supported

   Total Size:               35.7 GB (35735470080 Bytes) (exactly 69795840 512-Byte-Blocks)
   Volume Free Space:        0 B (0 Bytes) (exactly 0 512-Byte-Blocks)
   Device Block Size:        2048 Bytes

   Read-Only Media:          Yes
   Read-Only Volume:         Yes
   Ejectable:                Yes

   Whole:                    Yes
   Internal:                 No
   OS 9 Drivers:             No
   Low Level Format:         Not supported

   Optical Drive Type:       
   Optical Media Type:       
   Optical Media Erasable:   No

Thanks

No, I've not seen that.

For Optical Drive Type and Optical Media Type, it should list something similar to:

Code:
Optical Drive Type:       CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-R, DVD-R DL, DVD-RW, DVD-RAM, DVD+R, DVD+R DL, DVD+RW
Optical Media Type:       BD-ROM
 
Hi,

Sometimes the main movie is not in the first 10 (0-9) TINFO's of the following command of batchRip.sh:

Code:
"$makemkvconPath" -r --directio=false info disc:$deviceNum | egrep 'TINFO\:.,9,0' > "${tmpFolder}/${deviceNum}_titleInfo.txt"

So I changed it to:
Code:
"$makemkvconPath" -r --directio=false info disc:$deviceNum | egrep 'TINFO\:[0-9]{1,2},9,0' > "${tmpFolder}/${deviceNum}_titleInfo.txt"

and now the script finds the main movie file. However, now the following line doesn't predict the name of the makemkv output file correctly:
Code:
tmpFile="${outputDir}/title0${aTrack}.mkv"

Anyways, just wondering if you have a reason for only looking thru the first 10 TINFO's? Can you update your scripts to look through more than 10?

I'm having a lot of fun playing around with your scripts, very cool.

Thanks,
Brandon
 
Hi,

Sometimes the main movie is not in the first 10 (0-9) TINFO's of the following command of batchRip.sh:

Code:
"$makemkvconPath" -r --directio=false info disc:$deviceNum | egrep 'TINFO\:.,9,0' > "${tmpFolder}/${deviceNum}_titleInfo.txt"

So I changed it to:
Code:
"$makemkvconPath" -r --directio=false info disc:$deviceNum | egrep 'TINFO\:[0-9]{1,2},9,0' > "${tmpFolder}/${deviceNum}_titleInfo.txt"

and now the script finds the main movie file. However, now the following line doesn't predict the name of the makemkv output file correctly:
Code:
tmpFile="${outputDir}/title0${aTrack}.mkv"

Anyways, just wondering if you have a reason for only looking thru the first 10 TINFO's? Can you update your scripts to look through more than 10?

I'm having a lot of fun playing around with your scripts, very cool.

Thanks,
Brandon

Thanks for letting me know. I typically use MakeMKV for BD's and I've never come across any that had more than 1 digit. I assume this is a DVD you were testing. Can you give me some examples of discs to test?
 
Thanks for letting me know. I typically use MakeMKV for BD's and I've never come across any that had more than 1 digit. I assume this is a DVD you were testing. Can you give me some examples of discs to test?

I,robot blu-ray.

Thanks,
Brandon
 
Just wanted to extend my thanks to you, mac.jedi. This is really a thing of beauty. Seeing your work helped me make my decision to get a Mac Mini for my HTPC and I'm loving it. I've gone through my DVD collection and just started my Blu-Rays today. So far, everything has worked very well.

The scripts themselves are impressive enough, but the easy-to-follow instructional writeup that you've done really sets your work apart. Thanks again for making such a useful set of tools.
 
Major edit,

So I finally finished ripping my DVD, It took a total of 44.5GB :eek:

My problem is, I cannot seem to get Automator to format it in m4v/mp4 format so that I can add the iTunes tags (artwork, and add to iTunes)

In the Automator window, I am failing to find the "input" drop-down menu.

Basically I'm getting stuck on step 7 of "Customizing Your Batch Encode Services"


As I said before in my original post, I've quite new to backing up DVDs, So any advice/walk though would be fantastic~
 
Last edited:
mac.jedi: Amazing work and a great documentation

I am new user of the automation process from mac.jedi. In the last day I am trying to use the BatchRip -Batch Encode process to generate m4v files for the Apple TV 2. What I need, is that I would like to convert all available audio tracks or only the following one: English,German, Spanish and Italian.

Until now I was able to extract German (with the variable $native language) and English, but no additional language.


mac.jedi what do you think? it is posible to solve it easily?
 
Just wanted to extend my thanks to you, mac.jedi. This is really a thing of beauty. Seeing your work helped me make my decision to get a Mac Mini for my HTPC and I'm loving it. I've gone through my DVD collection and just started my Blu-Rays today. So far, everything has worked very well.

The scripts themselves are impressive enough, but the easy-to-follow instructional writeup that you've done really sets your work apart. Thanks again for making such a useful set of tools.

Totally agree, not sure if I posted a general thank you but if so here it is again. Much appreciated! This stuff is awesome.
 
mac.jedi this thread has been a lot of help for me, although I'm mostly only using the Add TV tags action because I've got a massive collection of TV shows that I've already collected and I want to stick them into iTunes.
So I built my own Automator action to do the encoding and then I just add the tv tags action into the script and then automatically move the file to the Automatically add to iTunes folder.
However there is one annoyance I have with the Add TV Tags action and that is it spits out more than just the path and filename to the file as a result which messes with my Move action, thus I have to set a variable before the add tv tags action and retrieve it afterwards, which works but complicates things.

So if you are working on it soon I think and option to just post the path to file as the result would be great to allow it to be used in other workflows nicely.

If anyone wants to check out my automator script for the encoding see www.admiraltriggerhappy.com
 
Need Some Testers for v1.0.9

I could use some help testing v1.0.9. This release has some new enhancements that should make it easier to update in the future. The actions, services and resources are now bundled in a new app which should make updating and installing easier as well. Pretty much every action has some improvements made which should show in testing.

PM me if you wanna link to the new installer.

Thanks!

mac.jedi
 
Last edited:
However there is one annoyance I have with the Add TV Tags action and that is it spits out more than just the path and filename to the file as a result which messes with my Move action, thus I have to set a variable before the add tv tags action and retrieve it afterwards, which works but complicates things.

So if you are working on it soon I think and option to just post the path to file as the result would be great to allow it to be used in other workflows nicely.

If anyone wants to check out my automator script for the encoding see www.admiraltriggerhappy.com

The output results of the tagging actions have been fixed in v1.0.9. PM me if you wanna to try em'.

----------

Totally agree, not sure if I posted a general thank you but if so here it is again. Much appreciated! This stuff is awesome.

Thanks gcoghill!!

----------

I am new user of the automation process from mac.jedi. In the last day I am trying to use the BatchRip -Batch Encode process to generate m4v files for the Apple TV 2. What I need, is that I would like to convert all available audio tracks or only the following one: English,German, Spanish and Italian.

Until now I was able to extract German (with the variable $native language) and English, but no additional language.


mac.jedi what do you think? it is posible to solve it easily?

Hi hgeorgh!

Sorry, it's not easy to add this kind of functionality. Batch Encode was designed more personal use … to encode one language track in 5.1 and stereo, but not multiple languages.

Thanks!

Mac.jedi

----------

Just wanted to extend my thanks to you, mac.jedi. This is really a thing of beauty. Seeing your work helped me make my decision to get a Mac Mini for my HTPC and I'm loving it. I've gone through my DVD collection and just started my Blu-Rays today. So far, everything has worked very well.

The scripts themselves are impressive enough, but the easy-to-follow instructional writeup that you've done really sets your work apart. Thanks again for making such a useful set of tools.

Thanks Who Dat!! I'm happy to help spend other people's money :)!

----------

Major edit,

So I finally finished ripping my DVD, It took a total of 44.5GB :eek:

My problem is, I cannot seem to get Automator to format it in m4v/mp4 format so that I can add the iTunes tags (artwork, and add to iTunes)

In the Automator window, I am failing to find the "input" drop-down menu.

Basically I'm getting stuck on step 7 of "Customizing Your Batch Encode Services"


As I said before in my original post, I've quite new to backing up DVDs, So any advice/walk though would be fantastic~

Hi Benguitar!

Sounds like there was a disc error or some copy protection that wasn't able to be removed. A DVD rip should be around 8gb. Is the file playable?
 
MKV issues...

Hi mac.jedi/all!

I'm having some trouble with non-Batch Rip made MKV files - it's pretty much the same issue a few posts back, but unfortunately using the Apple TV 2 preset in the override box didn't work for me :(

Could you take a look at my output and see if I'm missing something?

Code:
Last login: Tue Oct 25 19:32:30 on ttys000
xavier:~ gary$ /Users/gary/Library/Application\ Support/Batch\ Rip/batchEncodeTmp.sh ; exit;

Processing Args passed from Batch Encode (Service).workflow
--verboseLog 1 --movieSearchDir /Users/gary/Downloads --tvSearchDir /Users/gary/Downloads --outputDir /Volumes/Primary/tv_ready_for_tagging --handBrakeCliPath /Applications/HandBrakeCLI --makemkvPath /Applications/MakeMKV.app --mkvtoolnixPath /Applications/Mkvtoolnix.app --bdSup2SubPath /Applications/BDSup2Sub.jar --minTrackTimeTV 10 --maxTrackTimeTV 150 --minTrackTimeMovie 80 --maxTrackTimeMovie 180 --nativeLanguage eng --useDefaultAudioLanguage 1 --encode_DVD2 1 --encode_SD 0 --encode_720p 0 --encodeHdSources 1 --ignoreOptical 1 --growlMe 0 --keepMkvTempFile 0 --videoKindOverride TV:Show --addiTunesTags 1 --retireExistingFile 0 --libraryFolder no:selection --retiredFolder no:selection --useCustomDvdArgs 0 --useCustomDvd2Args 0 --useCustomSdArgs 0 --useCustom720pArgs 0 --customDvdArgs no@selection --customDvd2Args no@selection --customSdArgs no@selection --custom720pArgs no@selection --presetDvd Universal --presetDvd2 Apple@TV@2 --presetSd Universal --preset720p Apple@TV@2 /Users/gary/Downloads/testmkv/testmkv.mkv 


- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
batchEncode.sh v1.0.8

  Start: Tue Oct 25 19:37:31 CDT 2011
  Input directory 1: /Users/gary/Downloads
  Input directory 2: /Users/gary/Downloads
  Output directory: /Volumes/Primary/tv_ready_for_tagging
  Use optical Drive: No
  Encode HD Sources: Yes
  Keep MKV Temp Files: No
  Auto-add movie tags: Yes
  Retire Existing File: No
  Growl me when complete: No
  Encode TV Shows between: 10-150 mins
  Encode Movies between: 80-180 mins
  Native Language: eng (en)
  Use Disc's Default Audio Language: Yes
  Will Encode: DVD2/Apple TV 2

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

  WILL PROCESS THE FOLLOWING VIDEOS:
  testmkv : (Movie)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PROCESSING: testmkv 

*Scanning File: 'testmkv'
+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ EBML maximum ID length: 4
|+ EBML maximum size length: 8
|+ Doc type: matroska
|+ Doc type version: 2
|+ Doc type read version: 2
+ Segment, size 1268468518
|+ Seek head (subentries will be skipped)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: mkv2rls x264-tv version built on 2011. febr. 17
| + Writing application: x264.exe
| + Duration: 2568.149s (00:42:48.149)
|+ Segment tracks
| + A track
|  + Track number: 1
|  + Track UID: 2864556433
|  + Track type: video
|  + Codec ID: V_MPEG4/ISO/AVC
|  + CodecPrivate, length 40 (h.264 profile: High @L3.1)
|  + Default duration: 41.708ms (23.976 fps for a video track)
|  + Lacing flag: 0
|  + MinCache: 1
|  + Video track
|   + Pixel width: 1280
|   + Pixel height: 720
|   + Display width: 1280
|   + Display height: 720
| + A track
|  + Track number: 2
|  + Track UID: 2864556435
|  + Track type: audio
|  + Codec ID: A_AC3
|  + Default duration: 32.000ms (31.250 fps for a video track)
|  + Audio track
|   + Sampling frequency: 48000
|   + Channels: 6
|+ EbmlVoid (size: 99)
|+ Cluster

  Will encode the following tracks: 1 



PROCESSING COMPLETE: testmkv
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  End: Tue Oct 25 19:37:32 CDT 2011

logout

[Process completed]

Is it the same audio issue? It does seem to work fine in the Handbrake GUI.

And btw, most importantly, thank you for all your hard work and support with these tools! They absolutely revolutionize the way I watch TV!
 
Hi mac.jedi/all!

I'm having some trouble with non-Batch Rip made MKV files - it's pretty much the same issue a few posts back, but unfortunately using the Apple TV 2 preset in the override box didn't work for me :(

Could you take a look at my output and see if I'm missing something?

Code:
Last login: Tue Oct 25 19:32:30 on ttys000
xavier:~ gary$ /Users/gary/Library/Application\ Support/Batch\ Rip/batchEncodeTmp.sh ; exit;

Processing Args passed from Batch Encode (Service).workflow
--verboseLog 1 --movieSearchDir /Users/gary/Downloads --tvSearchDir /Users/gary/Downloads --outputDir /Volumes/Primary/tv_ready_for_tagging --handBrakeCliPath /Applications/HandBrakeCLI --makemkvPath /Applications/MakeMKV.app --mkvtoolnixPath /Applications/Mkvtoolnix.app --bdSup2SubPath /Applications/BDSup2Sub.jar --minTrackTimeTV 10 --maxTrackTimeTV 150 --minTrackTimeMovie 80 --maxTrackTimeMovie 180 --nativeLanguage eng --useDefaultAudioLanguage 1 --encode_DVD2 1 --encode_SD 0 --encode_720p 0 --encodeHdSources 1 --ignoreOptical 1 --growlMe 0 --keepMkvTempFile 0 --videoKindOverride TV:Show --addiTunesTags 1 --retireExistingFile 0 --libraryFolder no:selection --retiredFolder no:selection --useCustomDvdArgs 0 --useCustomDvd2Args 0 --useCustomSdArgs 0 --useCustom720pArgs 0 --customDvdArgs no@selection --customDvd2Args no@selection --customSdArgs no@selection --custom720pArgs no@selection --presetDvd Universal --presetDvd2 Apple@TV@2 --presetSd Universal --preset720p Apple@TV@2 /Users/gary/Downloads/testmkv/testmkv.mkv 


- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
batchEncode.sh v1.0.8

  Start: Tue Oct 25 19:37:31 CDT 2011
  Input directory 1: /Users/gary/Downloads
  Input directory 2: /Users/gary/Downloads
  Output directory: /Volumes/Primary/tv_ready_for_tagging
  Use optical Drive: No
  Encode HD Sources: Yes
  Keep MKV Temp Files: No
  Auto-add movie tags: Yes
  Retire Existing File: No
  Growl me when complete: No
  Encode TV Shows between: 10-150 mins
  Encode Movies between: 80-180 mins
  Native Language: eng (en)
  Use Disc's Default Audio Language: Yes
  Will Encode: DVD2/Apple TV 2

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

  WILL PROCESS THE FOLLOWING VIDEOS:
  testmkv : (Movie)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PROCESSING: testmkv 

*Scanning File: 'testmkv'
+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ EBML maximum ID length: 4
|+ EBML maximum size length: 8
|+ Doc type: matroska
|+ Doc type version: 2
|+ Doc type read version: 2
+ Segment, size 1268468518
|+ Seek head (subentries will be skipped)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: mkv2rls x264-tv version built on 2011. febr. 17
| + Writing application: x264.exe
| + Duration: 2568.149s (00:42:48.149)
|+ Segment tracks
| + A track
|  + Track number: 1
|  + Track UID: 2864556433
|  + Track type: video
|  + Codec ID: V_MPEG4/ISO/AVC
|  + CodecPrivate, length 40 (h.264 profile: High @L3.1)
|  + Default duration: 41.708ms (23.976 fps for a video track)
|  + Lacing flag: 0
|  + MinCache: 1
|  + Video track
|   + Pixel width: 1280
|   + Pixel height: 720
|   + Display width: 1280
|   + Display height: 720
| + A track
|  + Track number: 2
|  + Track UID: 2864556435
|  + Track type: audio
|  + Codec ID: A_AC3
|  + Default duration: 32.000ms (31.250 fps for a video track)
|  + Audio track
|   + Sampling frequency: 48000
|   + Channels: 6
|+ EbmlVoid (size: 99)
|+ Cluster

  Will encode the following tracks: 1 



PROCESSING COMPLETE: testmkv
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  End: Tue Oct 25 19:37:32 CDT 2011

logout

[Process completed]

Is it the same audio issue? It does seem to work fine in the Handbrake GUI.

And btw, most importantly, thank you for all your hard work and support with these tools! They absolutely revolutionize the way I watch TV!

Looking at the scan info, it appears that the Mkv is 720 HD. Try the atv2 preset on the HD encode option.
 
Have you tried it in mkvtoolnix or the handbrake GUI?

Yessir, works for both. Just not in the batch encode action.

cskRt.png
 
Yessir, works for both. Just not in the batch encode action.

Image

Let's troubleshoot this via PM. Try the following and PM me your results:

  1. Navigate to /Library/Automator.
  2. Right-click on the Batch Encode.action file and Choose > Show Package Contents.
  3. Open the batchEncode.sh file located in the Contents/Resources folder in TextEdit.
  4. Make sure the file is formatted as Plain Text. If it's not, in the menu bar choose Format > Make Plain Text.
  5. On the second line from the very top, type:
    Code:
    set -xv
  6. Save the file as plain text.
  7. Run the Batch Encode workflow on the file again and send me the results.

This debug setting should make the output really long and hopefully allow us to see a bit more into what's going on.
If you have the means to upload the results and send me a link that would be great as well.

Thanks,

mac.jedi
 
I don't have PM access yet it looks like, but here are the results:

http://www.filedropper.com/results_2

Let me know if I did that incorrectly!

And thanks again! :)

I think you need to post more to get PM access.

The first thing I noticed is that none of the HD encode options are checked in your workflow. This might be the reason the file is failing to reach HandBrakeCLI.

To test:
Toggle the HD (SD) option making sure its checked when you save your workflow.
Check the Use Custom HD (SD) Encode Setting and enter the code below. This will tell handbrake to only encode 30 seconds of the file for testing purposes.

Code:
--start-at duration:1 --stop-at duration:30 -e x264  -b 700 -a \${audioTrack} -E faac -B 160 -6 dpl2 -R Auto -D 0.0 -f mp4 -I -X 320 -m -x level=30:bframes=0:weightp=0:cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:subme=6:8x8dct=0:trellis=0

Also, I noticed that the minTime is set for 80min and the file is 42min. I don't remember offhand if there's a test for this with files, but it might be a good idea to set the movie minTime to 40min or change your default video kind to TV Shows.

Let me know how it goes.

Thanks,

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