#!/bin/sh
ffmpeg -y -i video.mov -filter_complex \
"[0]split[base][text];[text] \
drawtext=fontfile=gvr.otf:text='Which of these is not an event listener adapter defined in the java.awt.event package?': fontcolor=white: fontsize=40: x=100:y=200, \
format=yuva444p,fade=t=in:st=1:d=1:alpha=1,fade=t=out:st=18:d=1:alpha=1[subtitles]; \
[base][subtitles]overlay" test_out.mp4
ffmpeg -y -i test_out.mp4 -filter_complex \
"[0]split[base][text];[text] \
drawtext=fontfile=gvr.otf:text='a) public void apple(String s, int i) {}': fontcolor=white: fontsize=40: x=100:y=(200) + 50 * 2, \
format=yuva444p,fade=t=in:st=3:d=1:alpha=1,fade=t=out:st=15:d=1:alpha=1[subtitles]; \
[base][subtitles]overlay" test_out1.mp4
ffmpeg -y -i test_out1.mp4 -filter_complex \
"[0]split[base][text];[text] \
drawtext=fontfile=gvr.otf:text='b) public int apple(int i, String s) {}': fontcolor=white: fontsize=40: x=100:y=(200) + 50 * 3, \
format=yuva444p,fade=t=in:st=4:d=1:alpha=1,fade=t=out:st=18:d=1:alpha=1[subtitles]; \
[base][subtitles]overlay" test_out2.mp4
ffmpeg -y -i test_out2.mp4 -filter_complex \
"[0]split[base][text];[text] \
drawtext=fontfile=gvr.otf:text='c) public void apple(int i, String mystring) {}': fontcolor=white: fontsize=40: x=100:y=(200) + 50 * 4, \
format=yuva444p,fade=t=in:st=5:d=1:alpha=1,fade=t=out:st=18:d=1:alpha=1[subtitles]; \
[base][subtitles]overlay" test_out3.mp4
ffmpeg -y -i test_out3.mp4 -filter_complex \
"[0]split[base][text];[text] \
drawtext=fontfile=gvr.otf:text='d) public void Apple(int i, String s) {}': fontcolor=white: fontsize=40: x=100:y=(200) + 50 * 5, \
format=yuva444p,fade=t=in:st=6:d=1:alpha=1,fade=t=out:st=15:d=1:alpha=1[subtitles]; \
[base][subtitles]overlay" test_out4.mp4
ffmpeg -y -i test_out4.mp4 -filter_complex \
"[0]split[base][text];[text] \
drawtext=fontfile=gvr.otf:text='a) public void apple(String s, int i) {}': fontcolor=green: fontsize=40: x=100:y=(200) + 50 * 2, \
format=yuva444p,fade=t=in:st=15:d=1:alpha=1,fade=t=out:st=18:d=1:alpha=1[subtitles]; \
[base][subtitles]overlay" test_out5.mp4
ffmpeg -y -i test_out5.mp4 -filter_complex \
"[0]split[base][text];[text] \
drawtext=fontfile=gvr.otf:text='d) public void Apple(int i, String s) {}': fontcolor=green: fontsize=40: x=100:y=(200) + 50 * 5, \
format=yuva444p,fade=t=in:st=15:d=1:alpha=1,fade=t=out:st=18:d=1:alpha=1[subtitles]; \
[base][subtitles]overlay" test_out6.mp4
On this page of the site you can watch the video online Java question sample using ffmpeg : Code in Description with a duration of hours minute second in good quality, which was uploaded by the user PrAvEsH KuMaR 27 March 2018, share the link with friends and acquaintances, this video has already been watched 213 times on youtube and it was liked by 1 viewers. Enjoy your viewing!