diff options
author | ritsuka <[email protected]> | 2014-08-21 17:26:28 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-08-21 17:26:28 +0000 |
commit | f96f713a3d83538ef59be552c0987ebf1b21d0a0 (patch) | |
tree | 896f1bbe81972224a7e3b02e9cd87cd5182c2802 /macosx/HBQueueController.mm | |
parent | 6998c5f6e5c600273d9722536d1aef41651ea366 (diff) |
MacGui: generalize video preset/tune/profile/level handling to make it works with the x265 encoder. Moved the lavc encoder options textfield to the video tab.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6334 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBQueueController.mm')
-rw-r--r-- | macosx/HBQueueController.mm | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/macosx/HBQueueController.mm b/macosx/HBQueueController.mm index ef2fb3889..9fedcf943 100644 --- a/macosx/HBQueueController.mm +++ b/macosx/HBQueueController.mm @@ -945,46 +945,46 @@ [finalString appendString: videoInfo withAttributes:detailAttr]; [finalString appendString:@"\n" withAttributes:detailAttr]; - if ([item[@"VideoEncoder"] isEqualToString: @"H.264 (x264)"]) + if ([item[@"VideoEncoder"] isEqualToString: @"H.264 (x264)"] || [item[@"VideoEncoder"] isEqualToString: @"H.265 (x265)"]) { - /* we are using x264 */ - NSString *x264Info = @""; + /* we are using x264/x265 */ + NSString *encoderPresetInfo = @""; if ([item[@"x264UseAdvancedOptions"] intValue]) { // we are using the old advanced panel if (item[@"x264Option"] && [item[@"x264Option"] length]) { - x264Info = [x264Info stringByAppendingString: item[@"x264Option"]]; + encoderPresetInfo = [encoderPresetInfo stringByAppendingString: item[@"x264Option"]]; } else { - x264Info = [x264Info stringByAppendingString: @"default settings"]; + encoderPresetInfo = [encoderPresetInfo stringByAppendingString: @"default settings"]; } } else { // we are using the x264 system - x264Info = [x264Info stringByAppendingString: [NSString stringWithFormat:@"Preset: %@", item[@"x264Preset"]]]; - if ([item[@"x264Tune"] length]) + encoderPresetInfo = [encoderPresetInfo stringByAppendingString: [NSString stringWithFormat:@"Preset: %@", item[@"VideoPreset"]]]; + if ([item[@"VideoTune"] length]) { - x264Info = [x264Info stringByAppendingString: [NSString stringWithFormat:@" - Tune: %@", item[@"x264Tune"]]]; + encoderPresetInfo = [encoderPresetInfo stringByAppendingString: [NSString stringWithFormat:@" - Tune: %@", item[@"VideoTune"]]]; } - if ([item[@"x264OptionExtra"] length]) + if ([item[@"VideoOptionExtra"] length]) { - x264Info = [x264Info stringByAppendingString: [NSString stringWithFormat:@" - Options: %@", item[@"x264OptionExtra"]]]; + encoderPresetInfo = [encoderPresetInfo stringByAppendingString: [NSString stringWithFormat:@" - Options: %@", item[@"VideoOptionExtra"]]]; } - if ([item[@"h264Profile"] length]) + if ([item[@"VideoProfile"] length]) { - x264Info = [x264Info stringByAppendingString: [NSString stringWithFormat:@" - Profile: %@", item[@"h264Profile"]]]; + encoderPresetInfo = [encoderPresetInfo stringByAppendingString: [NSString stringWithFormat:@" - Profile: %@", item[@"VideoProfile"]]]; } - if ([item[@"h264Level"] length]) + if ([item[@"VideoLevel"] length]) { - x264Info = [x264Info stringByAppendingString: [NSString stringWithFormat:@" - Level: %@", item[@"h264Level"]]]; + encoderPresetInfo = [encoderPresetInfo stringByAppendingString: [NSString stringWithFormat:@" - Level: %@", item[@"VideoLevel"]]]; } } - [finalString appendString: @"x264: " withAttributes:detailBoldAttr]; - [finalString appendString: x264Info withAttributes:detailAttr]; + [finalString appendString: @"Encoder Options: " withAttributes:detailBoldAttr]; + [finalString appendString: encoderPresetInfo withAttributes:detailAttr]; [finalString appendString:@"\n" withAttributes:detailAttr]; } else if (![item[@"VideoEncoder"] isEqualToString: @"VP3 (Theora)"]) |