]> granicus.if.org Git - handbrake/commitdiff
Added AC3 track to ATV2 preset
authorsr55 <sr55.hb@outlook.com>
Tue, 30 Nov 2010 19:38:00 +0000 (19:38 +0000)
committersr55 <sr55.hb@outlook.com>
Tue, 30 Nov 2010 19:38:00 +0000 (19:38 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3693 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/HBPresets.m

index 1c58b7707eded6c76389e3c8d1e067db3e7db6b2..810cae6b528ba09243243523146f786046ef0cfa 100644 (file)
     [audioTrack1Array autorelease];
     [audioListArray addObject:audioTrack1Array];
        
+    /* Track 2 */
+    NSMutableDictionary *audioTrack2Array = [[NSMutableDictionary alloc] init];
+    [audioTrack2Array setObject:[NSNumber numberWithInt:1] forKey:@"AudioTrack"];
+    [audioTrack2Array setObject:@"AC3 Passthru" forKey:@"AudioEncoder"];
+    [audioTrack2Array setObject:@"AC3 Passthru" forKey:@"AudioMixdown"];
+    [audioTrack2Array setObject:@"Auto" forKey:@"AudioSamplerate"];
+    [audioTrack2Array setObject:@"160" forKey:@"AudioBitrate"];
+    /* Note: we ignore specified bitrate for AC3 Passthru in libhb and use
+     * the sources bitrate, however we need to initially set the value to something so
+     * the macgui doesnt barf, so 160 seems as good as anything */
+    [audioTrack2Array setObject:[NSNumber numberWithFloat:0.0] forKey:@"AudioTrackDRCSlider"];
+    [audioTrack2Array autorelease];
+    [audioListArray addObject:audioTrack2Array];
+       
+       
     [preset setObject:[NSMutableArray arrayWithArray: audioListArray] forKey:@"AudioList"];
        
     /* Subtitles*/