Use ffmpeg to add text subtitles [closed]

NOTE: This solution adds the subtitles to the video as a separate optional (and user-controlled) subtitle track. ffmpeg -i infile.mp4 -i infile.srt -c copy -c:s mov_text outfile.mp4 -vf subtitles=infile.srt will not work with -c copy The order of -c copy -c:s mov_text is important. You are telling FFmpeg: Video: copy, Audio: copy, Subtitle: copy Subtitle: … Read more

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

The latest ggplot2 builds (i.e., 2.1.0.9000 or newer) have subtitles and below-plot captions as built-in functionality. That means you can do this: library(ggplot2) # 2.1.0.9000+ 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)) m <- m + geom_bar(fill=”darkblue”, stat=”identity”) m <- m + labs(x=”Weather stations”, y=”Accumulated Rainfall [mm]”, title=”Rainfall”, … Read more

How to add a title to each subplot

ax.title.set_text(‘My Plot Title’) seems to work too. fig = plt.figure() ax1 = fig.add_subplot(221) ax2 = fig.add_subplot(222) ax3 = fig.add_subplot(223) ax4 = fig.add_subplot(224) ax1.title.set_text(‘First Plot’) ax2.title.set_text(‘Second Plot’) ax3.title.set_text(‘Third Plot’) ax4.title.set_text(‘Fourth Plot’) plt.show()

How to add title to subplots in Matplotlib

ax.title.set_text(‘My Plot Title’) seems to work too. fig = plt.figure() ax1 = fig.add_subplot(221) ax2 = fig.add_subplot(222) ax3 = fig.add_subplot(223) ax4 = fig.add_subplot(224) ax1.title.set_text(‘First Plot’) ax2.title.set_text(‘Second Plot’) ax3.title.set_text(‘Third Plot’) ax4.title.set_text(‘Fourth Plot’) plt.show()

tech