0

I have a video that is composed of 3 parts: intro, outro and middle. in the outro and intro I need to add some text as an overlay and on the middle part, I need to change the background (which is one color) to an image I'll provide plus add a text overlay. All the texts will appear at certain times, be displayed for few seconds in different parts of the video and disappear. The background image too needs to be displayed only for few seconds in the middle of the video. Can you point me to something that can help me or give me few pointers that can help me accomplish this task? Thank you.

  • Too short to qualify for an answer - Premiere Pro, Vegas Pro, or any other competent video editing software will do this with a few mouse vlicks. – pojo-guy Nov 22 '17 at 4:46
  • If you searching for automation solution, you can use ffmpeg and a small part of programming. – bukkojot Nov 22 '17 at 8:10
  • 1
    This is a broad request. You can do this with ffmpeg (or melt), but you should try to figure it out yourself and then come back here to address specific issues you encounter. See the drawtext (or subtitle) and overlay filters with enable option for timeline editing support. – llogan Nov 22 '17 at 19:27
1

The comments all suggest using an NLE (I agree), but given that your question is tagged with ffmpeg, here are a few pointers to documentation:

You can accomplish text overlay with the drawtext filter.

Draw a text string or text from a specified file on top of a video, using the libfreetype library.

For changing the background, you should look into the colorkey filter. From the docs, here's an example to "make every green pixel in the input image transparent":

ffmpeg -i input.png -vf colorkey=green out.png

As for timing, you should cross-reference if they support timeline editing.

Some filters support a generic enable option. For the filters supporting timeline editing, this option can be set to an expression which is evaluated before sending a frame to the filter. If the evaluation is non-zero, the filter will be enabled, otherwise the frame will be sent unchanged to the next filter in the filtergraph.

Again, this is probably better suited for an NLE, but it's certainly possible with ffmpeg, and will likely render significantly faster (at the tradeoff of likely taking much longer to craft the ffmpeg invocation vs. using an NLE). Good luck!

0

Pretty much any Non-Linear Editing program can do this: 'Free' versions include; iMovie (Mac), Microsoft Photos (Windows). KDNELIVE (Linux).

For more Professional apps, try the free DaVinci Resolve, or trial Adobe Premiere or Apple Final Cut Pro X.

Simply overlay the text on the edited video using that software’s preferes method.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.