Commit fe157d45 authored by Felix Paul Kühne's avatar Felix Paul Kühne

* added 2 boxes to the wizard to allow access to sout-transcode-soverlay with...

* added 2 boxes to the wizard to allow access to sout-transcode-soverlay with the GUI. needs further testing, but can't break anything. (forward-porting [18977], closes #1005
parent 24df55bb
......@@ -91,6 +91,7 @@
"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;
......@@ -99,6 +100,7 @@
"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;
......@@ -111,6 +113,7 @@
"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;
......@@ -123,6 +126,7 @@
"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;
......
......@@ -5,7 +5,7 @@
<key>IBDocumentLocation</key>
<string>255 498 356 241 0 0 1024 746 </string>
<key>IBFramework Version</key>
<string>443.0</string>
<string>446.1</string>
<key>IBLockedObjects</key>
<array>
<integer>6</integer>
......@@ -17,6 +17,8 @@
<integer>6</integer>
</array>
<key>IBSystem Version</key>
<string>8H14</string>
<string>8L127</string>
<key>IBUsesTextArchiving</key>
<true/>
</dict>
</plist>
......@@ -102,6 +102,7 @@
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") */
......@@ -111,6 +112,7 @@
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") */
......@@ -123,6 +125,7 @@
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;
......@@ -137,6 +140,7 @@
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;
......
......@@ -444,6 +444,7 @@ static VLCWizard *_o_sharedInstance = nil;
[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")];
......@@ -452,6 +453,11 @@ static VLCWizard *_o_sharedInstance = nil;
[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") */
......@@ -476,6 +482,8 @@ static VLCWizard *_o_sharedInstance = nil;
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: @":"]];
}
......@@ -1143,6 +1151,11 @@ static VLCWizard *_o_sharedInstance = nil;
[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];
}
......@@ -1267,6 +1280,11 @@ static VLCWizard *_o_sharedInstance = nil;
[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];
}
......@@ -1405,6 +1423,12 @@ static VLCWizard *_o_sharedInstance = nil;
{
[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:
......@@ -1418,7 +1442,6 @@ static VLCWizard *_o_sharedInstance = nil;
[o_t8_fld_trnscdAudio setStringValue: _NS("no")];
}
if ([[o_userSelections objectForKey:@"trnscdOrStrmg"] isEqualToString:@"strmg"])
{
/* we are streaming and perhaps also transcoding */
......@@ -1493,7 +1516,7 @@ static VLCWizard *_o_sharedInstance = nil;
[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"])
......@@ -1572,6 +1595,10 @@ static VLCWizard *_o_sharedInstance = nil;
{
[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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment