Concatenate image video to another video
I am currently trying to achieve with ffmepg a `freeze frame effect`. This is something easy to do with adobe after effects shown
. However I would like to achieve a freeze frame effect(of 5 seconds duration) followed by the 15 second video for the final output video. This should amount to a final duration of 20 seconds. However with the settings below, I am not getting a "freeze frame effect". The video keeps its original size of 15 seconds due to some trimming which I am not sure why. How can I achieve a "freeze frame effect" in ffmpeg?
//create freeze image effect
I notice your first command outputs a PNG file, and your second command inputs a JPG. Presumably that's just a typo.
The "overlay" filter will lay one video on top of the other, and the duration will be the longest video (15 seconds). What you want is to concatenate two videos together (play one after the other), for a total duration of 20 seconds, so you want the "concat" filter.
You will probably want to make the frame image into its own 5 second video with a blank audio track, then concatenate it with the full video:
See here for audio:
And here for concatenate:
Many thanks Jim! I am now trying to add white text with a black bar background
Sounds like you can't do the "-filter_complex" (for the concatenate) and the "-vf" (for the drawtext) in the same command.
Fortunately you can combine them in the same "-filter_complex" statement: