<p>I Will take a look at compilation</p>
<div class="gmail_quote">Le 9 juin 2012 19:12, "Brendon Justin" <<a href="mailto:brendonjustin@gmail.com">brendonjustin@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
VLCStreamOutput now accepts subtitle-related options<br>
for transcoding.<br>
---<br>
Two things:<br>
This patch is for VLCKit, not vlc.git.<br>
<br>
I have had no success compiling VLCKit, even when it was<br>
still in vlc.git, so I have been unable to test these changes.<br>
The code does compile on its own, so it is at least syntactically<br>
valid.<br>
<br>
 Sources/VLCStreamOutput.m |    8 ++++++++<br>
 1 files changed, 8 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/Sources/VLCStreamOutput.m b/Sources/VLCStreamOutput.m<br>
index 85b3312..49bfc61 100644<br>
--- a/Sources/VLCStreamOutput.m<br>
+++ b/Sources/VLCStreamOutput.m<br>
@@ -3,9 +3,11 @@<br>
  *****************************************************************************<br>
  * Copyright (C) 2008 Pierre d'Herbemont<br>
  * Copyright (C) 2008 VLC authors and VideoLAN<br>
+ * Copyright (C) 2012 Brendon Justin<br>
  * $Id$<br>
  *<br>
  * Authors: Pierre d'Herbemont <pdherbemont # <a href="http://videolan.org" target="_blank">videolan.org</a>><br>
+ *          Brendon Justin <brendonjustin # <a href="http://gmail.com" target="_blank">gmail.com</a>><br>
  *<br>
  * This program is free software; you can redistribute it and/or modify it<br>
  * under the terms of the GNU Lesser General Public License as published by<br>
@@ -157,6 +159,7 @@<br>
     {<br>
         NSString * videoCodec = [transcodingOptions objectForKey:@"videoCodec"];<br>
         NSString * audioCodec = [transcodingOptions objectForKey:@"audioCodec"];<br>
+        NSString * subtitleCodec = [transcodingOptions objectForKey:@"subtitleCodec"];<br>
         NSString * videoBitrate = [transcodingOptions objectForKey:@"videoBitrate"];<br>
         NSString * audioBitrate = [transcodingOptions objectForKey:@"audioBitrate"];<br>
         NSString * channels = [transcodingOptions objectForKey:@"channels"];<br>
@@ -165,6 +168,8 @@<br>
         NSString * width = [transcodingOptions objectForKey:@"width"];<br>
         NSString * audioSync = [transcodingOptions objectForKey:@"audioSync"];<br>
         NSString * videoEncoder = [transcodingOptions objectForKey:@"videoEncoder"];<br>
+        NSString * subtitleEncoder = [transcodingOptions objectForKey:@"subtitleEncoder"];<br>
+        NSString * subtitleOverlay = [transcodingOptions objectForKey:@"subtitleOverlay"];<br>
         if( videoEncoder )   [subOptions addObject:[NSString stringWithFormat:@"venc=%@", videoEncoder]];<br>
         if( videoCodec )   [subOptions addObject:[NSString stringWithFormat:@"vcodec=%@", videoCodec]];<br>
         if( videoBitrate ) [subOptions addObject:[NSString stringWithFormat:@"vb=%@", videoBitrate]];<br>
@@ -175,6 +180,9 @@<br>
         if( audioBitrate ) [subOptions addObject:[NSString stringWithFormat:@"ab=%@", audioBitrate]];<br>
         if( channels ) [subOptions addObject:[NSString stringWithFormat:@"channels=%@", channels]];<br>
         if( audioSync ) [subOptions addObject:[NSString stringWithFormat:@"audioSync", width]];<br>
+        if( subtitleCodec ) [subOptions addObject:[NSString stringWithFormat:@"scodec=%@", subtitleCodec]];<br>
+        if( subtitleEncoder ) [subOptions addObject:[NSString stringWithFormat:@"senc=%@", subtitleEncoder]];<br>
+        if( subtitleOverlay ) [subOptions addObject:@"soverlay"];<br>
         [optionsAsArray addObject: [NSString stringWithFormat:@"#transcode{%@}", [subOptions componentsJoinedByString:@","]]];<br>
         [subOptions removeAllObjects];<br>
     }<br>
--<br>
1.7.7.5 (Apple Git-26)<br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</blockquote></div>