[FFmpeg-user] Pictures in video

Cecil Westerhof Cecil at decebal.nl
Tue May 24 22:55:20 EEST 2022


With a search on the internet I found I could put a picture into a
video with:
    ffmpeg -i introductie.mkv -i Pictures/reiger.jpg \
    -filter_complex "[0:v][1:v] overlay=W-w:H-h:enable='between(t,0,20)'" \
    -pix_fmt yuv420p -c:a copy \
    metReiger.mp4

But what if I would insert another picture at another time?
Or two at the same time? One top left, the other top right.

What I find strange is that the input video is 23 MB and the picture
is 302 KB, but the generated video is 42 MB.
Am I doing something wrong?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list