Wrong Audio being selected from MKV files
Hi, long-time lurker, first time poster. Thanks to macjedi for such a great set of scripts. I've converted over 500 movies and 950 TV episodes using this great resource. I recently took the leap into converting bluray discs and so my first jump into working with mkv files has hit a snag.
I am able to rip the BD disks using the Batch Rip/Batch Dispatcher function. However, when I use the Batch Encode function, although I am able to obtain both the HD and SD encodes set from the Batch Encode Workflow, the script refuses to identify the default audio tracks as english and instead goes for the first non-english (i.e. identified language) track as the audio for these encodes, in this case, spanish on track 4. (tracks 2&3 do not have a language identified and thus should be defaulted to eng per matroska standard, if I understand that correctly)
Not sure what is wrong here, or how to get at the problem. I can't see any option on the automator workflow that addresses this. The problem seems to be that the script does not "find" an eng audio track. See highlighted area in verbose terminal output below.
I'm hoping this is something easy to fix that I've just overlooked, but any help would be appreciated! Thanks.
-----------------------------------
Hi, long-time lurker, first time poster. Thanks to macjedi for such a great set of scripts. I've converted over 500 movies and 950 TV episodes using this great resource. I recently took the leap into converting bluray discs and so my first jump into working with mkv files has hit a snag.
I am able to rip the BD disks using the Batch Rip/Batch Dispatcher function. However, when I use the Batch Encode function, although I am able to obtain both the HD and SD encodes set from the Batch Encode Workflow, the script refuses to identify the default audio tracks as english and instead goes for the first non-english (i.e. identified language) track as the audio for these encodes, in this case, spanish on track 4. (tracks 2&3 do not have a language identified and thus should be defaulted to eng per matroska standard, if I understand that correctly)
Not sure what is wrong here, or how to get at the problem. I can't see any option on the automator workflow that addresses this. The problem seems to be that the script does not "find" an eng audio track. See highlighted area in verbose terminal output below.
I'm hoping this is something easy to fix that I've just overlooked, but any help would be appreciated! Thanks.
-----------------------------------
Code:
Processing Args passed from Batch Encode (Service).workflow
--verboseLog 1 --movieSearchDir /Volumes/Ring:Four/Batch:Rip:Movies --tvSearchDir /Volumes/Ring:Four/Batch:Rip:TV --outputDir /Volumes/Ring:Four/Batch:Encode --handBrakeCliPath /Applications/HandBrakeCLI --makemkvPath /Applications/makemkv_v1.6.10/MakeMKV.app --mkvtoolnixPath /Applications/Mkvtoolnix-4.8.0_2011-05-23-1cda/Mkvtoolnix.app --bdSup2SubPath /Applications/BDSup2Sub.jar --minTrackTimeTV 5 --maxTrackTimeTV 240 --minTrackTimeMovie 20 --maxTrackTimeMovie 300 --nativeLanguage eng --useDefaultAudioLanguage 1 --encode_DVD2 0 --encode_SD 1 --encode_720p 1 --encodeHdSources 1 --ignoreOptical 1 --growlMe 1 --keepMkvTempFile 1 --videoKindOverride Movie --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 AppleTV --presetDvd2 AppleTV --presetSd Universal --preset720p AppleTV /Volumes/Ring:Four/Batch:Rip:Movies/Highlander:(1986)/Highlander:(1986).mkv
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
batchEncode.sh v1.0.6
Start: Tue Jun 28 01:16:14 PDT 2011
Input directory 1: /Volumes/Ring Four/Batch Rip Movies
Input directory 2: /Volumes/Ring Four/Batch Rip TV
Output directory: /Volumes/Ring Four/Batch Encode
Use optical Drive: No
Encode HD Sources: Yes
Keep MKV Temp Files: Yes
Auto-add movie tags: Yes
Retire Existing File: No
Growl me when complete: Yes
Encode TV Shows between: 5-240 mins
Encode Movies between: 20-300 mins
Native Language: eng (en)
Use Disc's Default Audio Language: Yes
Will Encode: SD/Universal, 720p/AppleTV
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
VERBOSE MODE
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
WILL PROCESS THE FOLLOWING VIDEOS:
Highlander (1986) : (Movie)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PROCESSING: Highlander (1986)
*Scanning File: 'Highlander (1986)'
+ 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 25218059389
|+ Seek head (subentries will be skipped)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: libmakemkv v1.6.10 (1.2.0/1.1.0) darwin(x86-release)
| + Writing application: MakeMKV v1.6.10 darwin(x86-release)
| + Duration: 6999.041s (01:56:39.041)
| + Segment UID: 0x52 0x83 0x73 0x04 0x71 0x73 0x55 0x60 0x3b 0x49 0x94 0xb5 0xd3 0x12 0x4a 0xd4
| + Date: Tue Jun 28 04:15:51 2011 UTC
|+ Segment tracks
| + A track
| + Track number: 1
| + Track UID: 1
| + Track type: video
| + Lacing flag: 0
| + Codec ID: V_MS/VFW/FOURCC
| + CodecPrivate, length 74 (FourCC: WVC1, 0x31435657)
| + Default duration: 41.667ms (24.000 fps for a video track)
| + Video track
| + Pixel width: 1920
| + Pixel height: 1080
| + Display height: 1080
| + Display width: 1920
| + A track
| + Track number: 2
| + Track UID: 2
| + Track type: audio
| + Codec ID: A_DTS
| + Default duration: 10.667ms (93.750 fps for a video track)
| + Name: Lossless
| + Audio track
| + Sampling frequency: 48000
| + Channels: 6
| + Bit depth: 24
| + A track
| + Track number: 3
| + Track UID: 3
| + Track type: audio
| + Default flag: 0
| + Codec ID: A_DTS
| + Default duration: 10.667ms (93.750 fps for a video track)
| + Name: 3/2+1
| + Audio track
| + Sampling frequency: 48000
| + Channels: 6
| + A track
| + Track number: 4
| + Track UID: 4
| + Track type: audio
| + Default flag: 0
| + Codec ID: A_DTS
| + Language: spa
| + Default duration: 10.667ms (93.750 fps for a video track)
| + Name: Lossless
| + Audio track
| + Sampling frequency: 48000
| + Channels: 2
| + Bit depth: 16
| + A track
| + Track number: 5
| + Track UID: 5
| + Track type: audio
| + Default flag: 0
| + Codec ID: A_DTS
| + Language: spa
| + Default duration: 10.667ms (93.750 fps for a video track)
| + Name: 2/0
| + Audio track
| + Sampling frequency: 48000
| + Channels: 2
| + A track
| + Track number: 6
| + Track UID: 6
| + Track type: audio
| + Default flag: 0
| + Codec ID: A_DTS
| + Default duration: 10.667ms (93.750 fps for a video track)
| + Name: 2/0
| + Audio track
| + Sampling frequency: 48000
| + Channels: 2
| + A track
| + Track number: 7
| + Track UID: 7
| + Track type: subtitles
| + Lacing flag: 0
| + Codec ID: S_HDMV/PGS
| + EbmlVoid (size: 28)
| + A track
| + Track number: 9
| + Track UID: 9
| + Track type: subtitles
| + Default flag: 0
| + Lacing flag: 0
| + Codec ID: S_HDMV/PGS
| + Language: fra
| + EbmlVoid (size: 35)
| + A track
| + Track number: 11
| + Track UID: 11
| + Track type: subtitles
| + Default flag: 0
| + Lacing flag: 0
| + Codec ID: S_HDMV/PGS
| + Language: spa
| + EbmlVoid (size: 35)
| + A track
| + Track number: 13
| + Track UID: 13
| + Track type: subtitles
| + Default flag: 0
| + Lacing flag: 0
| + Codec ID: S_HDMV/PGS
| + Language: fra
| + EbmlVoid (size: 35)
|+ Chapters
| + EditionEntry
| + EditionFlagHidden: 0
| + EditionFlagDefault: 1
| + EditionUID: 1373314356
| + ChapterAtom
| + ChapterUID: 1
| + ChapterTimeStart: 00:00:00.000000000
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 00
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 2
| + ChapterTimeStart: 00:11:20.958333333
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 01
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 3
| + ChapterTimeStart: 00:16:50.875000000
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 02
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 4
| + ChapterTimeStart: 00:19:31.333333333
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 03
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 5
| + ChapterTimeStart: 00:23:42.708333333
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 04
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 6
| + ChapterTimeStart: 00:26:13.750000000
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 05
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 7
| + ChapterTimeStart: 00:28:18.250000000
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 06
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 8
| + ChapterTimeStart: 00:32:48.166666666
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 07
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 9
| + ChapterTimeStart: 00:35:28.208333333
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 08
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 10
| + ChapterTimeStart: 00:39:58.041666666
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 09
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 11
| + ChapterTimeStart: 00:45:33.708333333
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 10
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 12
| + ChapterTimeStart: 00:49:36.291666666
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 11
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 13
| + ChapterTimeStart: 00:52:02.000000000
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 12
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 14
| + ChapterTimeStart: 00:59:15.708333333
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 13
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 15
| + ChapterTimeStart: 01:03:41.000000000
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 14
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 16
| + ChapterTimeStart: 01:09:15.625000000
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 15
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 17
| + ChapterTimeStart: 01:13:44.250000000
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 16
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 18
| + ChapterTimeStart: 01:25:02.583333333
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 17
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 19
| + ChapterTimeStart: 01:27:47.916666666
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 18
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 20
| + ChapterTimeStart: 01:32:54.750000000
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 19
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 21
| + ChapterTimeStart: 01:37:20.583333333
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 20
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 22
| + ChapterTimeStart: 01:40:41.291666666
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 21
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 23
| + ChapterTimeStart: 01:51:44.916666666
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 22
| + ChapterLanguage: eng
| + ChapterAtom
| + ChapterUID: 24
| + ChapterTimeStart: 01:53:19.041666666
| + ChapterFlagHidden: 0
| + ChapterFlagEnabled: 1
| + ChapterDisplay
| + ChapterString: Chapter 23
| + ChapterLanguage: eng
|+ Cluster
Will encode the following tracks: 1
[COLOR="Red"]*Preferred Audio Track: eng NOT FOUND[/COLOR]
Will use Default Audio Track: 4: A_DTS-
*Muxing Main Video, Audio (A_DTS-) and Subtitle Tracks from temp files
mkvmerge v4.8.0 ('I Got The...') built on May 24 2011 22:30:48
'/Volumes/Ring Four/Batch Rip Movies/Highlander (1986)/Highlander (1986)/Highlander (1986).mkv': Using the Matroska demultiplexer.
'/Volumes/Ring Four/Batch Rip Movies/Highlander (1986)/Highlander (1986)/Highlander (1986).mkv' track 1: Using the VC1 video output module.
'/Volumes/Ring Four/Batch Rip Movies/Highlander (1986)/Highlander (1986)/Highlander (1986).mkv' track 4: Using the DTS output module.
The file '/Volumes/Ring Four/Batch Rip Movies/Highlander (1986)/Highlander (1986)/Highlander (1986)-1.mkv' has been opened for writing.
Progress: 2%
Last edited: