<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
- <binding destination="240" name="hidden" keyPath="self.job.mp4OptionsEnabled" id="Vlg-uB-45p">
+ <binding destination="240" name="hidden" keyPath="self.job.mp4iPodCompatibleEnabled" id="eGS-R2-zSV">
<dictionary key="options">
<string key="NSValueTransformerName">NSNegateBoolean</string>
</dictionary>
@interface HBJob (UIAdditions)
@property (nonatomic, readonly) BOOL mp4OptionsEnabled;
+@property (nonatomic, readonly) BOOL mp4iPodCompatibleEnabled;
+
@property (nonatomic, readonly) NSArray *angles;
@end
- (BOOL)mp4OptionsEnabled
{
- if (self.container & HB_MUX_MASK_MP4)
- {
- return YES;
- }
- else
- {
- return NO;
- }
+ return ((self.container & HB_MUX_MASK_MP4) != 0);
+}
+
+- (BOOL)mp4iPodCompatibleEnabled
+{
+ return ((self.container & HB_MUX_MASK_MP4) != 0) && (self.video.encoder & HB_VCODEC_H264_MASK);
}
- (NSArray *)angles
retval = [NSSet setWithObjects:@"container", nil];
}
+ if ([key isEqualToString:@"mp4iPodCompatibleEnabled"])
+ {
+ retval = [NSSet setWithObjects:@"container", @"video.encoder", nil];
+ }
+
return retval;
}
job->chapter_markers = 0;
}
- if (job->vcodec == HB_VCODEC_X264 || job->vcodec == HB_VCODEC_X265)
+ if (job->vcodec == HB_VCODEC_X264)
{
// iPod 5G atom
job->ipod_atom = self.mp4iPodCompatible;
+ }
+ if (job->vcodec == HB_VCODEC_X264 || job->vcodec == HB_VCODEC_X265)
+ {
// set fastfirstpass if 2-pass and Turbo are enabled
if (self.video.twoPass)
{
job->fastfirstpass = self.video.turboTwoPass;
}
- // advanced x264 options
+ // advanced x264/x265 options
NSString *tmpString;
// translate zero-length strings to NULL for libhb
const char *encoder_preset = NULL;
}
else
{
- // we are using the x264 preset system
+ // we are using the x264/x265 preset system
if ([(tmpString = self.video.completeTune) length])
{
encoder_tune = [tmpString UTF8String];