subtitle

Can't change video subtitles codec using ffmpeg

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've got a mkv file with somes streams embedded: Stream #0:0: Video: h264 (High), yuv420p(tv, smpte170m/smpte170m/bt709), 720x300, SAR 1:1 DAR 12:5, 25 fps, 25 tbr, 48003.07 tbn, 50 tbc (default) Stream #0:1(tr): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default) Stream #0:2(fr): Subtitle: dvd_subtitle, 720x300 When playing on my PC, I can see subtitles. When playing it from my old DVD/DIVX player, I cannot see the subtitles (other mkv/avi work fine). So I wanted to change the subtitle encoding, to see if another one could work with my

Should have subtitle controller already set Mediaplayer error Android

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Whenever I play a media, it shows a warning in DDMS Should have subtitle controller already set MY CODE: private void start () { mediaPlayer . start (); mediaPlayer . setOnCompletionListener ( new OnCompletionListener () { @Override public void onCompletion ( MediaPlayer mp ) { mp . stop (); mp . release (); } }); } DDMS LOG Should have subtitle controller already set info/warning (2, 0) When I searched on Google, not even a single topic related to it. How can I get rid of or disable this? 回答1: A developer recently added subtitle

WKWebView 在 tableview 上的展示

匿名 (未验证) 提交于 2019-12-03 00:22:01
创建 WKWebView _webView = [[WKWebView alloc]initWithFrame:self .view .bounds ] ; _webHeight = _webView .height ; _webView .backgroundColor = [UIColor whiteColor] ; _webView .UIDelegate = self ; _webView .navigationDelegate = self ; _webView .scrollView .bounces = NO ; _webView .scrollView .scrollEnabled = NO ; _webView .scrollView .showsHorizontalScrollIndicator = NO ; _webView .scrollView .delegate = self ; WKWebView加载 html 数据: NSString *result = [ NSString stringWithFormat:@ "<img style='display: block; max-width: %.0f'" ,kScreenWidth]; id courseData = self .object ; NSAttributedString

ExpansionTile

匿名 (未验证) 提交于 2019-12-02 23:43:01
ExpansionTile( backgroundColor: Colors.orangeAccent, title: Text('hello'), leading: Icon(Icons.widgets), children: <Widget>[ ListTile( title: Text('title'), subtitle: Text('subtitle'), ), Card( child: Icon(Icons.security), ), ],),

How to set background to subtitle in ffmpeg?

安稳与你 提交于 2019-11-30 09:09:14
It is described here how ot burn a srt file into a video. However, I want to put a semi-transparent background to the subtitles so that the texts can be read more easily. How can I do that? llogan ASS subtitles can have a semi-transparent background for the text. With aegisub The easiest way to do this is with aegisub . Open your subtitles file with aegisub. Click Subtitle → Styles manager . Under Current Script choose Default , then press the Edit button. Experiment with the Outline and Shadow values. Check Opaque box . Under Colors click the color under Outline or Shadows . A window will

Java API for SRT subtitles [closed]

纵饮孤独 提交于 2019-11-30 08:57:16
Is there any Java API for SRT subtitles ? The actual SRT parsing is performed through regular expressions, which Java is able to manipulate. The actual regexp is: protected static final String nl = "\\\n"; protected static final String sp = "[ \\t]*"; Pattern.compile("(?s)(\\d+)" + sp + nl + "(\\d{1,2}):(\\d\\d):(\\d\\d),(\\d\\d\\d)" + sp + "-->"+ sp + "(\\d\\d):(\\d\\d):(\\d\\d),(\\d\\d\\d)" + sp + "(X1:\\d.*?)??" + nl + "(.*?)" + nl + nl); group 2, 3, 4, and 5 is start time group 6, 7, 8, and 9 is finish time group 11 is subtitle text I have produced a java logic with which to parse and read

iPhone Title and Subtitle in Navigation Bar

試著忘記壹切 提交于 2019-11-29 20:59:34
In my application, I'd like to have the navigation bar display a title and subtitle. To that extent, I added the following code to my view controller: // Replace titleView CGRect headerTitleSubtitleFrame = CGRectMake(0, 0, 200, 44); UIView* _headerTitleSubtitleView = [[[UILabel alloc] initWithFrame:headerTitleSubtitleFrame] autorelease]; _headerTitleSubtitleView.backgroundColor = [UIColor clearColor]; _headerTitleSubtitleView.autoresizesSubviews = YES; CGRect titleFrame = CGRectMake(0, 2, 200, 24); UILabel *titleView = [[[UILabel alloc] initWithFrame:titleFrame] autorelease]; titleView

How to set background to subtitle in ffmpeg?

只愿长相守 提交于 2019-11-29 13:48:32
问题 It is described here how ot burn a srt file into a video. However, I want to put a semi-transparent background to the subtitles so that the texts can be read more easily. How can I do that? 回答1: ASS subtitles can have a semi-transparent background for the text. With aegisub The easiest way to do this is with aegisub. Open your subtitles file with aegisub. Click Subtitle → Styles manager . Under Current Script choose Default , then press the Edit button. Experiment with the Outline and Shadow

Customize subtitle position - JFreeChart

别来无恙 提交于 2019-11-29 12:49:53
I want to know if it is possible to put a JFreeChart subtitle in the bottom of the chart, under the chart, and not under the Title. What I want to do is illustrated on these images: http://i.stack.imgur.com/AmPJ8.jpg and http://i.stack.imgur.com/VBfvL.jpg . I just tried almost everything and cannot do this. I am using subtitle insted of legend, because legend is presented with a red square, indicating the color of the series shown on the graphics. Thanks in advance! Joey In this example , the following TextTitle appears to work. chart.addSubtitle(new TextTitle(new Date().toString(), new Font(

Java API for SRT subtitles [closed]

不羁的心 提交于 2019-11-29 08:05:34
问题 Is there any Java API for SRT subtitles ? 回答1: The actual SRT parsing is performed through regular expressions, which Java is able to manipulate. The actual regexp is: protected static final String nl = "\\\n"; protected static final String sp = "[ \\t]*"; Pattern.compile("(?s)(\\d+)" + sp + nl + "(\\d{1,2}):(\\d\\d):(\\d\\d),(\\d\\d\\d)" + sp + "-->"+ sp + "(\\d\\d):(\\d\\d):(\\d\\d),(\\d\\d\\d)" + sp + "(X1:\\d.*?)??" + nl + "(.*?)" + nl + nl); group 2, 3, 4, and 5 is start time group 6, 7,