Fix for #290 use downmix audio pref setting for aac when passthru or dts to ac3 conversion. More bitrates in prefs. fixed tooltips in prefs.
This commit is contained in:
1 parent
fd01fb901b
commit
0e6784f39b
3 files changed
+48
-44
No files matched your search
@@ -332,6 +332,13 @@
|
||||
<menuItem title="128" tag="128" id="198"/>
|
||||
<menuItem title="144" tag="144" id="199"/>
|
||||
<menuItem title="160" tag="160" id="200"/>
|
||||
<menuItem title="192" tag="160" id="IRB-z8-OsU"/>
|
||||
<menuItem title="224" tag="160" id="Pr6-u5-Rp7"/>
|
||||
<menuItem title="256" tag="160" id="tFR-ss-ze1"/>
|
||||
<menuItem title="288" tag="160" id="0mc-zi-Qmj"/>
|
||||
<menuItem title="320" tag="160" id="1fI-Gp-Bh0"/>
|
||||
<menuItem title="480" tag="160" id="kV2-as-WIK"/>
|
||||
<menuItem title="640" tag="160" id="kEP-hH-U4c"/>
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
|
||||
@@ -358,7 +358,7 @@
|
||||
<binding destination="-2" name="enabled" keyPath="self.options.SBQueueMetadata" id="ABT-BG-W0N"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
<button toolTip="Organize the mp4 alternate groups" translatesAutoresizingMaskIntoConstraints="NO" id="TV6-Sk-Bqr">
|
||||
<button toolTip="Organize the audio fallbacks" translatesAutoresizingMaskIntoConstraints="NO" id="TV6-Sk-Bqr">
|
||||
<rect key="frame" x="110" y="260" width="119" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Fix audio fallbacks" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="W6u-1c-BsI">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
@@ -372,7 +372,7 @@
|
||||
</binding>
|
||||
</connections>
|
||||
</button>
|
||||
<button toolTip="Set the track without a language to the selected one" translatesAutoresizingMaskIntoConstraints="NO" id="slL-2h-MPl">
|
||||
<button toolTip="Set tracks without a language to the selected one" translatesAutoresizingMaskIntoConstraints="NO" id="slL-2h-MPl">
|
||||
<rect key="frame" x="110" y="206" width="160" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Complete tracks language" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="cxz-2q-RIP">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
@@ -439,7 +439,7 @@
|
||||
</binding>
|
||||
</connections>
|
||||
</button>
|
||||
<button toolTip="Load the external srt subtitles file" translatesAutoresizingMaskIntoConstraints="NO" id="22k-mA-HyA">
|
||||
<button toolTip="Delete all custom track names" translatesAutoresizingMaskIntoConstraints="NO" id="22k-mA-HyA">
|
||||
<rect key="frame" x="110" y="224" width="123" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Clear tracks names" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="mtK-5C-Pzh">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
@@ -481,7 +481,7 @@
|
||||
<binding destination="-2" name="enabled" keyPath="self.options.SBQueueMetadata" id="Iqc-R5-L9d"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
<button toolTip="Set the track without a language to the selected one" translatesAutoresizingMaskIntoConstraints="NO" id="Pdq-s0-erT">
|
||||
<button toolTip="Set the color space of video tracks to the selected one" translatesAutoresizingMaskIntoConstraints="NO" id="Pdq-s0-erT">
|
||||
<rect key="frame" x="110" y="170" width="116" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Apply color space" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="0By-RQ-4mS">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
|
||||
+37
-40
@@ -492,61 +492,58 @@
|
||||
if (_importCheckArray[i].boolValue) {
|
||||
NSUInteger conversion = _actionArray[i].integerValue;
|
||||
|
||||
if ([track isMemberOfClass:[MP42AudioTrack class]]) {
|
||||
if ([track isMemberOfClass:[MP42AudioTrack class]] && conversion) {
|
||||
NSUInteger bitRate = [[[NSUserDefaults standardUserDefaults] valueForKey:@"SBAudioBitrate"] integerValue];
|
||||
NSString *mixdown = SBNoneMixdown;
|
||||
float drc = [[[NSUserDefaults standardUserDefaults] valueForKey:@"SBAudioDRC"] floatValue];
|
||||
|
||||
if (conversion == 7) {
|
||||
|
||||
BOOL copyTrack = (conversion == 6 || conversion == 7) ? YES : NO;
|
||||
BOOL convertDTSToAC3 = (conversion == 7) ? YES : NO;
|
||||
if (conversion == 6 || conversion == 7) {
|
||||
conversion = [[[NSUserDefaults standardUserDefaults]
|
||||
valueForKey:@"SBAudioMixdown"] integerValue];
|
||||
}
|
||||
|
||||
switch (conversion) {
|
||||
case 5:
|
||||
mixdown = SBNoneMixdown;
|
||||
break;
|
||||
case 4:
|
||||
mixdown = SBMonoMixdown;
|
||||
break;
|
||||
case 3:
|
||||
mixdown = SBStereoMixdown;
|
||||
break;
|
||||
case 2:
|
||||
mixdown = SBDolbyMixdown;
|
||||
break;
|
||||
case 1:
|
||||
default:
|
||||
mixdown = SBDolbyPlIIMixdown;
|
||||
break;
|
||||
}
|
||||
|
||||
if (copyTrack) {
|
||||
MP42AudioTrack *audioTrack = (MP42AudioTrack *)track;
|
||||
MP42AudioTrack *copy = [track copy];
|
||||
MP42ConversionSettings *settings = [MP42AudioConversionSettings audioConversionWithBitRate:bitRate
|
||||
mixDown:SBDolbyPlIIMixdown
|
||||
mixDown:mixdown
|
||||
drc:drc];
|
||||
copy.conversionSettings = settings;
|
||||
|
||||
audioTrack.fallbackTrack = copy;
|
||||
audioTrack.enabled = NO;
|
||||
|
||||
if (convertDTSToAC3) { // Wouldn't it be better to use pref settings too instead of 640/Multichannel and the drc from the prefs?
|
||||
audioTrack.conversionSettings = [[MP42AudioConversionSettings alloc] initWitFormat:kMP42AudioCodecType_AC3
|
||||
bitRate:640
|
||||
mixDown:SBNoneMixdown
|
||||
drc:drc];
|
||||
[tracks addObject:copy];
|
||||
}
|
||||
else if (conversion == 6) {
|
||||
MP42AudioTrack *audioTrack = (MP42AudioTrack *)track;
|
||||
MP42AudioTrack *copy = [track copy];
|
||||
MP42ConversionSettings *settings = [MP42AudioConversionSettings audioConversionWithBitRate:bitRate
|
||||
mixDown:SBDolbyPlIIMixdown
|
||||
drc:drc];
|
||||
copy.conversionSettings = settings;
|
||||
|
||||
audioTrack.fallbackTrack = copy;
|
||||
audioTrack.enabled = NO;
|
||||
|
||||
[tracks addObject:copy];
|
||||
}
|
||||
else if (conversion) {
|
||||
NSString *mixdown = SBNoneMixdown;
|
||||
|
||||
switch (conversion) {
|
||||
case 5:
|
||||
mixdown = SBNoneMixdown;
|
||||
break;
|
||||
case 4:
|
||||
mixdown = SBMonoMixdown;
|
||||
break;
|
||||
case 3:
|
||||
mixdown = SBStereoMixdown;
|
||||
break;
|
||||
case 2:
|
||||
mixdown = SBDolbyMixdown;
|
||||
break;
|
||||
case 1:
|
||||
default:
|
||||
mixdown = SBDolbyPlIIMixdown;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
[tracks addObject:copy];
|
||||
}
|
||||
else {
|
||||
MP42ConversionSettings *settings = [MP42AudioConversionSettings audioConversionWithBitRate:bitRate
|
||||
mixDown:mixdown
|
||||
drc:drc];
|
||||
|
||||
Reference in new issue
Block a user