Subtitles are derived from either a transcript or screenplay of the dialog or commentary in films, television programs, video games, and the like, usually displayed at the bottom of the screen.
Questions tagged [subtitle]
600 questions
446
votes
10 answers
How to add a title to each subplot
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 =…

Shailen
- 7,909
- 3
- 29
- 37
216
votes
9 answers
Use ffmpeg to add text subtitles
I am trying to add text subtitles to an .mp4 container using ffmpeg:
ffmpeg -i input.mp4 -i input.srt -map 0.0 -map 0.1 -map 1.0 output.mp4
When I am trying to run this line, it gives me an error :
Nmber of stream maps must match number of output…

0-alpha
- 3,281
- 5
- 20
- 12
109
votes
7 answers
How to add a ggplot2 subtitle with different size and colour?
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,…

Migue
- 1,401
- 2
- 15
- 19
38
votes
4 answers
How to disable subtitles decoding in ffmpeg
I'm trying to convert some video file containing video, audio and subtitles streams into another format using FFMpeg. However, ffmpeg complains about the subtitles format - it cannot decode the stream. Since I don't need this subtitles stream, I'd…

v_2e
- 2,603
- 2
- 22
- 29
30
votes
4 answers
Subtitles for
I'm trying to add a text transcription of a spoken audio file with the track tag. The default behavior for the video tag is to display them (works). By default the audio tag seems to lack some sort of 'canvas' (the black area a video tag displays…

phl
- 408
- 1
- 4
- 9
28
votes
3 answers
How to give subtitles for subplot in plot_ly using R
I am wondering how to give difference subtitles for the subplots using plot_ly. Any hint please. I got one title BB in this case. Thanks.
p <- subplot(
plot_ly(economics, x = date, y = uempmed)%>%layout(showlegend = FALSE, title="AA"),
…

yuxu zi
- 485
- 1
- 5
- 10
26
votes
2 answers
Matplotlib title spanning two (or any number of) subplot columns
Because of the nature of what I am plotting, I want subplots akin to nested tables.
I'm not sure how to ask the question clearly so I'll added some pictures instead which I hope illustrate the problem.
What I have:
What I want:
Current (shortened)…
user6870124
25
votes
2 answers
iPhone Title and Subtitle in Navigation Bar
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*…

Reuven
- 2,142
- 3
- 18
- 30
25
votes
2 answers
ffmpeg set subtitles track as default
By adding an .ass subtitles track to an mkv video with ffmpeg, it isn't set as default track, so on playback you have to manually turn on subtitles. Is it possible to set the default flag for the subtitles track?
ffmpeg command used:
ffmpeg -i…

blörk
- 279
- 1
- 3
- 4
24
votes
3 answers
How to Add Font size in subtitles in ffmpeg video filter
I'm using this command to crop,scale, and then add subtitles as overlay
ffmpeg -i input.avi -vf "[in]crop=in_w:in_h-20:0:0 [crop]; [crop]scale=320:240 [scale];[scale]subtitles=srt.srt" -aspect 16:9 -vcodec libx264 -crf 23 oq.mp4
how can we set…

khizar ansari
- 1,476
- 2
- 18
- 29
23
votes
1 answer
How to use AVFoundation to extract (or 'demux') subtitle from mp4 video?
I am trying to create a small procedure that will take an mp4 video and extract the subtitle information from the video using AVFoundation framework. In doing so it will create and return an NSArray of NSDictionary elements in the format…

sm535
- 587
- 7
- 20
20
votes
2 answers
Set a subtitle language using ffmpeg
I tried googling a way to set the language of a subtitle stream with ffmpeg and found the -slang option. So I tried the following command but immediately receive an error:
ffmpeg -i input.avi -i subs.srt -c:a copy -c:s mov_text -slang eng -c:v…

sion
- 1,367
- 6
- 17
- 21
19
votes
5 answers
How to set background to subtitle in ffmpeg?
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?

supermario
- 2,625
- 4
- 38
- 58
18
votes
2 answers
How to delay subtitles in ffmpeg?
Using ffmpeg, I am burning subtitles to a movie using the following:
ffmpeg -i inputfile.mov -vf "subtitles=subtitles.srt:force_style='Alignment=9,Fontsize=8,Outline=0'" $outputfile.mov
Is there a way of delaying/shifting the subtitles start point?…

friendlygiraffe
- 871
- 2
- 6
- 18
18
votes
1 answer
Is there any apis for searching and downloading subtitles online?
I need an api for searching and downloading subtitles online in my android app.
I tried the Sublight's api,but i can't get any subtitle.
Is there any other api for that?

Allen Lee
- 191
- 1
- 1
- 5