to understand what we're doing, take a look at the attached image. It shows a large rectangle (the video frame) with 3 smaller rectangles within it. We want to render lines of text into these rectangles. The font-size of the text should be set to the height of the rectangle, and if a line is too long, it should wrap to the next rectangle. (Note that the number of rectangles should be adjustable). This should be rendered as a static image for a specified number of video frames. If there are too many lines of text to show in one image, then we want to render the rest of the text into subsequent images (each one lasting a specified number of video frames)
- input arguments:
- width_percent: see "w" in the image. this variable is a percent ranging from 0 to 100, and represents a percent of the total video width. this variable determines how wide each text-rectangle will be, and also, because the rectangles should be centered horizontally, it determines where each line of text will begin horizontally (the text in each rectangle should be left-justified)
- height_percent: see "h" in the image. this variable is a percent ranging from 0 to 100, and represents a percent of the total video height. this variable determines how much vertical space the lines of text will consume, and because this region should be centered vertically, it determines the vertical position of the first line of text
- line_height_percent: see "f" in the image, this variable is also a percent of the total video frame height, and represents the height of a single line of text.
- line_count: see "count" in the image, this variable says how many lines of text there should be (based on this, and the line height, and "h", you'll need to determine the space between each line)
- frames_per_image: each generated static image should be shown as video for this number of frames
- array of arrays of strings. Each inner array of strings represents an ffmpeg command, like ['ffmpeg', '-i', '[login to view URL]'], but in case we need to invoke ffmpeg multiple times, we have the outter array of commands. So a valid output might look like: [['ffmpeg', '-i', '[login to view URL]'], ['ffmpeg', '-i', '[login to view URL]']]