A
A
akula222018-07-28 15:05:45
fmpeg
akula22, 2018-07-28 15:05:45

How to use ffmpeg to overlay a picture in front of a video?

There are two files video.mp4 and picture.png
I want a picture to be shown for 5 seconds and then a video

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Sokolov, 2018-07-28
@sergiks

It is necessary to make a video from the picture exactly the same size, format and codec as the main video.
And combine them via concat .

1
15432, 2018-07-28
@15432

Use the script utility AviSynth, there it will be in a couple of lines:
(well, maybe conjure a bit)
and then submit the script to ffmpeg

ffmpeg -i myscript.avs -c:v libx264 -crf 24 "result.mp4"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question