"o_t6_btn_mrInfo_ttl" = id;
"o_t6_ckb_local" = id;
"o_t6_ckb_sap" = id;
+ "o_t6_ckb_soverlay" = id;
"o_t6_fld_sap" = id;
"o_t6_fld_ttl" = id;
"o_t6_text" = id;
"o_t7_btn_chooseFile" = id;
"o_t7_btn_mrInfo_local" = id;
"o_t7_ckb_local" = id;
+ "o_t7_ckb_soverlay" = id;
"o_t7_fld_filePath" = id;
"o_t7_text" = id;
"o_t7_title" = id;
"o_t8_fld_partExtract" = id;
"o_t8_fld_sap" = id;
"o_t8_fld_saveFileTo" = id;
+ "o_t8_fld_soverlay" = id;
"o_t8_fld_strmgMthd" = id;
"o_t8_fld_trnscdAudio" = id;
"o_t8_fld_trnscdVideo" = id;
"o_t8_txt_partExtract" = id;
"o_t8_txt_sap" = id;
"o_t8_txt_saveFileTo" = id;
+ "o_t8_txt_soverlay" = id;
"o_t8_txt_strmgMthd" = id;
"o_t8_txt_text" = id;
"o_t8_txt_title" = id;
IBOutlet id o_t6_btn_mrInfo_ttl;
IBOutlet id o_t6_btn_mrInfo_sap;
IBOutlet id o_t6_btn_mrInfo_local;
+ IBOutlet id o_t6_ckb_soverlay;
IBOutlet id o_t6_ckb_local;
/* page seven ("Transcode 2") */
IBOutlet id o_t7_title;
IBOutlet id o_t7_txt_saveFileTo;
IBOutlet id o_t7_btn_mrInfo_local;
+ IBOutlet id o_t7_ckb_soverlay;
IBOutlet id o_t7_ckb_local;
/* page eight ("Summary") */
IBOutlet id o_t8_fld_strmgMthd;
IBOutlet id o_t8_fld_trnscdAudio;
IBOutlet id o_t8_fld_trnscdVideo;
+ IBOutlet id o_t8_fld_soverlay;
IBOutlet id o_t8_fld_ttl;
IBOutlet id o_t8_fld_mrl;
IBOutlet id o_t8_fld_local;
IBOutlet id o_t8_txt_title;
IBOutlet id o_t8_txt_trnscdAudio;
IBOutlet id o_t8_txt_trnscdVideo;
+ IBOutlet id o_t8_txt_soverlay;
IBOutlet id o_t8_txt_ttl;
IBOutlet id o_t8_txt_mrl;
IBOutlet id o_t8_txt_local;
[o_t6_btn_mrInfo_sap setTitle: _NS("More Info")];
[o_t6_ckb_local setTitle: _NS("Local playback")];
[o_t6_btn_mrInfo_local setTitle: _NS("More Info")];
+ [o_t6_ckb_soverlay setTitle: _NS("Add Subtitles to transcoded video")];
/* page seven ("Transcode 2") */
[o_t7_title setStringValue: _NS("Additional transcode options")];
[o_t7_txt_saveFileTo setStringValue: _NS("Select the file to save to")];
[o_t7_btn_chooseFile setTitle: _NS("Choose...")];
[o_t7_ckb_local setTitle: _NS("Local playback")];
+ [o_t7_ckb_soverlay setTitle: _NS("Add Subtitles to transcoded video")];
+ [o_t7_ckb_soverlay setToolTip: _NS("Adds available subtitles directly to " \
+ "the video. These cannot be disabled " \
+ "by the receiving user as they become " \
+ "part of the image.")];
[o_t7_btn_mrInfo_local setTitle: _NS("More Info")];
/* page eight ("Summary") */
stringByAppendingString: @":"]];
[o_t8_txt_trnscdVideo setStringValue: [_NS("Transcode video") \
stringByAppendingString: @":"]];
+ [o_t8_txt_soverlay setStringValue: [_NS("Include subtitles") \
+ stringByAppendingString: @":"]];
[o_t8_txt_local setStringValue: [_NS("Local playback") \
stringByAppendingString: @":"]];
}
[o_userSelections setObject:@"NO" forKey:@"localPb"];
}
+ /* include subtitles? */
+ [o_userSelections setObject:
+ [[NSNumber numberWithInt:[o_t6_ckb_soverlay state]] stringValue]
+ forKey: @"soverlay"];
+
/* go to "Summary" */
[self showSummary];
}
[o_t7_fld_filePath stringValue]] forKey: @"trnscdFilePath"];
}
+ /* include subtitles ? */
+ [o_userSelections setObject:
+ [[NSNumber numberWithInt:[o_t7_ckb_soverlay state]] stringValue]
+ forKey: @"soverlay"];
+
/* go to "Summary" */
[self showSummary];
}
{
[o_t8_fld_trnscdVideo setStringValue: _NS("no")];
}
+
+ if ([[o_userSelections objectForKey:@"soverlay"] isEqualToString:@"1"])
+ [o_t8_fld_soverlay setStringValue: _NS("yes")];
+ else
+ [o_t8_fld_soverlay setStringValue: _NS("no")];
+
if ([[o_userSelections objectForKey:@"trnscdAudio"] isEqualToString:@"YES"])
{
[o_t8_fld_trnscdAudio setStringValue: [NSString stringWithFormat:
[o_t8_fld_trnscdAudio setStringValue: _NS("no")];
}
-
if ([[o_userSelections objectForKey:@"trnscdOrStrmg"] isEqualToString:@"strmg"])
{
/* we are streaming and perhaps also transcoding */
[o_trnscdCmd appendString: @"}:"];
}
}
-
+
/* check whether the user requested local playback. if yes, prepare the
* string, if not, let it empty */
if ([[o_userSelections objectForKey:@"localPb"] isEqualToString:@"YES"])
{
[o_opts_string appendString: @"\"}"];
}
+
+ /* add subtitles to the video if desired */
+ [o_opts_string appendFormat: @":sout-transcode-soverlay=%@",
+ [o_userSelections objectForKey:@"soverlay"]];
[tempArray addObject: o_opts_string];