subtitle

How to read non-english characters with Scanner java?

笑着哭i 提交于 2019-12-19 04:55:16
问题 there I'm making this app to change subtitle files. when I was testing it I faced a strange problem, when I was testing it on non-english (persian for instance) the program wouldn't read the file. this is how I read subtitles in my program: Scanner sub = null; try { sub = new Scanner(new File(address)); } catch (FileNotFoundException ex) { ex.printStackTrace(); } while(sub.hasNext()){ String sentence = sub.nextLine(); //some magical stuff here :) } where address is a String keeping place of

Parse subtitle file using regex C#

二次信任 提交于 2019-12-17 21:36:11
问题 I need to find the number, the in and out timecode points and all lines of the text. 9 00:09:48,347 --> 00:09:52,818 - Let's see... what else she's got? - Yea... ha, ha. 10 00:09:56,108 --> 00:09:58,788 What you got down there, missy? 11 00:09:58,830 --> 00:10:00,811 I wouldn't do that! 12 00:10:03,566 --> 00:10:07,047 -Shit, that's not enough! -Pull her back! I'm currently using this pattern but it forgets all two lines text (?<Order>\d+)\r\n(?<StartTime>(\d\d:){2}\d\d,\d{3}) --> (?<EndTime>

How to add a ggplot2 subtitle with different size and colour?

最后都变了- 提交于 2019-12-17 04:16:13
问题 I'm using ggplot2 to improve precipitation barplots. Here's a reproducible example of what I want to achieve: library(ggplot2) library(gridExtra) secu <- seq(1, 16, by=2) melt.d <- data.frame(y=secu, x=LETTERS[1:8]) m <- ggplot(melt.d, aes(x=x, y=y)) + geom_bar(fill="darkblue") + labs(x="Weather stations", y="Accumulated Rainfall [mm]") + opts(axis.text.x=theme_text(angle=-45, hjust=0, vjust=1), title=expression("Rainfall"), plot.margin = unit(c(1.5, 1, 1, 1), "cm"), plot.title = theme_text

How to add title to subplots in Matplotlib?

坚强是说给别人听的谎言 提交于 2019-12-17 04:15:02
问题 I have one figure which contains many subplots. fig = plt.figure(num=None, figsize=(26, 12), dpi=80, facecolor='w', edgecolor='k') fig.canvas.set_window_title('Window Title') # Returns the Axes instance ax = fig.add_subplot(311) ax2 = fig.add_subplot(312) ax3 = fig.add_subplot(313) How do I add titles to the subplots? fig.suptitle adds a title to all graphs and although ax.set_title() exists, the latter does not add any title to my subplots. Thank you for your help. Edit: Corrected typo about

Is there any way to control DirectShow VSFilter programmatically?

假装没事ソ 提交于 2019-12-13 00:42:24
问题 I'm trying to set up a subtitles file to DirectShow VSFilter programmatically. There is a way to do so through its property pages but I can't find any documentation regarding its API or even if it has one. Is there any sort of API, Interop, anything which would allow to set up a subtitle file for VSFilter? 回答1: There is no specific documentation on VSFilter, however it's open source software. So you can download source code, reference its interface definition e.g. in MPC-HC source \Mpc-hc\src

Batch to Create video .srt Subtitles with right timing

浪尽此生 提交于 2019-12-12 14:39:23
问题 Oh boy! I don't know even know what to start with) So, I have a folder with a lot of videos. What I need is to create subtitles with the names of those videos also minding their length to create subtitles in .srt format. I have already look up some info and copied some code @echo off set dirpath=%1 dir C:\FolderwithVideos /O:S /b /-p /o:gn > "C:\result.txt" call replacer.bat result.txt ".mp4" "" exit As a result i got this in result.txt videoname1 videoname2 videoname3 What I need is to make

Disable showing subtitle file in QMediaPlayer

这一生的挚爱 提交于 2019-12-12 14:13:08
问题 How to disable QMediaPlayer autoload subtitles with DirectVobSub which is tools of K-Lite Codec Pack? i don't want to show subtitle in QMediaPlayer if the subtitle file be in same directory of the video file? 回答1: Answer As QMediaPlayer relies on external frameworks for rendering video, it has limited control over how those frameworks decide to render it. In this case, as George Y. mentioned, the subtitles are probably not possible to control without resorting to win32 API. Another option

Swift UITableViewCell Alignment

。_饼干妹妹 提交于 2019-12-12 11:50:30
问题 I am trying to display a page like the following page title (left align) region name(center align) people in the region(subtitle with email in the detail label) But if I choose subtitle as cell style, everything will be left aligned and I cannot change them in the code. Then If I choose custom as style the detailtextlabel will not show. if(poDetailList.LastName == "POName"){ cell.backgroundColor = SharedClass().coopGroupHeaderColor let selectedColor = UIView() selectedColor.backgroundColor =

How to extract subtitles from MKV files in pure Java?

99封情书 提交于 2019-12-12 11:38:23
问题 does anybody know how to extract subtiles from MKV files using pure Java? (I know how to do it using tools such as mkvtoolnix. I know I could call them from Java but that's not what I want) Thanks! 回答1: This looks like the file format specification: http://www.matroska.org/technical/specs/index.html#track 回答2: I‘m not quite sure what exactly you expect as an answer. You can of course write your own Matroska parser (specification is available at matroska.org) and then simple extract the

Does AVPlayer support DVB Bitmap subtitles?

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:05:33
问题 I currently work at a cable TV provider in Brazil which requires DVB Bitmap for some of its assets. I've searched quite alot on Google and Stackoverflow and haven't found any denial or confirmation about this. Does AVPlayer support DVB Bitmap subtitles? If not, which subtitle types does it support? 来源: https://stackoverflow.com/questions/46077711/does-avplayer-support-dvb-bitmap-subtitles