diff options
author | dynaflash <[email protected]> | 2013-01-01 18:38:36 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2013-01-01 18:38:36 +0000 |
commit | 2b6d88894dab3290fcb8ded79e03d69d40dd6dc3 (patch) | |
tree | 58e927fcdbbb788a72de653457dc537a012cff17 /macosx/HBQueueController.mm | |
parent | 5ec51be789cc39bcfb0abfcaa19d2ce1720e69b8 (diff) |
MacGui: Initial x264 presets implementation.
- Note: HB Built-ins are not updated as needs more testing
- Backwards compatible afaik for older presets including custom.
- Queue Item editing function needs to be updated yet.
- Preset import/ export will probably need work as well especially since some kvp's seem to still be up in the air.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5126 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBQueueController.mm')
-rw-r--r-- | macosx/HBQueueController.mm | 55 |
1 files changed, 50 insertions, 5 deletions
diff --git a/macosx/HBQueueController.mm b/macosx/HBQueueController.mm index 6add5ab90..b2f4c2100 100644 --- a/macosx/HBQueueController.mm +++ b/macosx/HBQueueController.mm @@ -1319,19 +1319,64 @@ return ![(HBQueueOutlineView*)outlineView isDragging]; [finalString appendString: videoInfo withAttributes:detailAttr]; [finalString appendString:@"\n" withAttributes:detailAttr]; + // x264 options (for now either the x264 presets panel or the hb x264 advanced panel if ([[item objectForKey:@"VideoEncoder"] isEqualToString: @"H.264 (x264)"]) { - [finalString appendString: @"x264 Options: " withAttributes:detailBoldAttr]; - if ([item objectForKey:@"x264Option"]) + // check to see if we are using a x264 preset, if so concatenate the display of presets, tunes , etc. + if ([item objectForKey:@"x264Preset"]) { - [finalString appendString: [item objectForKey:@"x264Option"] withAttributes:detailAttr]; + [finalString appendString: @"x264 Presets: " withAttributes:detailBoldAttr]; + NSString * x264PresetsInfo = @""; + x264PresetsInfo = [x264PresetsInfo stringByAppendingString: [NSString stringWithFormat:@"Preset:%@ - ",[item objectForKey:@"x264Preset"]]]; + if ([item objectForKey:@"x264Tune"]) + { + x264PresetsInfo = [x264PresetsInfo stringByAppendingString: [NSString stringWithFormat:@"Tune:%@ - ",[item objectForKey:@"x264Tune"]]]; + } + else + { + x264PresetsInfo = [x264PresetsInfo stringByAppendingString: [NSString stringWithFormat:@"Tune:none - "]]; + } + if ([item objectForKey:@"x264Option"]) + { + x264PresetsInfo = [x264PresetsInfo stringByAppendingString: [NSString stringWithFormat:@"Additional Options:%@ - ",[item objectForKey:@"x264AdditionalOptions"]]]; + } + if ([item objectForKey:@"h264Profile"]) + { + x264PresetsInfo = [x264PresetsInfo stringByAppendingString: [NSString stringWithFormat:@"Profile:%@ - ",[item objectForKey:@"h264Profile"]]]; + } + else + { + x264PresetsInfo = [x264PresetsInfo stringByAppendingString: [NSString stringWithFormat:@"Profile:auto - "]]; + } + if ([item objectForKey:@"h264Level"]) + { + x264PresetsInfo = [x264PresetsInfo stringByAppendingString: [NSString stringWithFormat:@"Level:%@",[item objectForKey:@"h264Level"]]]; + } + else + { + x264PresetsInfo = [x264PresetsInfo stringByAppendingString: [NSString stringWithFormat:@"Level:auto"]]; + } + + [finalString appendString: x264PresetsInfo withAttributes:detailAttr]; + } - else + else /// we are using the HB Advanced Panel { - [finalString appendString: @"x264 defaults" withAttributes:detailAttr]; + [finalString appendString: @"x264 Advanced Options: " withAttributes:detailBoldAttr]; + if ([item objectForKey:@"x264Option"]) + { + [finalString appendString: [item objectForKey:@"x264Option"] withAttributes:detailAttr]; + } + else + { + [finalString appendString: @"x264 defaults" withAttributes:detailAttr]; + } + } + [finalString appendString:@"\n" withAttributes:detailAttr]; } + /*If we are not x264 and we are not Theora then we must be FFmpeg (lavc) */ else if (![[item objectForKey:@"VideoEncoder"] isEqualToString: @"VP3 (Theora)"]) { |