# add subtitle ffmpeg -i <infile> -i <subtitle> -c copy -c:s mov_text <outfile> # record screen ffmpeg -video_size "$(xrandr | awk ' /\*/ { print $1 }')" -framerate 25 -f x11grab -i :0.0+100,200 output.mp4