[FFmpeg-user] ffmpeg overlay last frame remaining in video

Lou lou at lrcd.com
Mon Aug 24 04:11:45 CEST 2015


On Sun, Aug 23, 2015, at 04:50 PM, Chad Horton wrote:

> ffmpeg -y -i basevideo.mov -r 30 -itsoffset 00:00:00.000 -i
> overlayvideo.mov -filter_complex
> "[1:v]scale=1280:720[ovrl];[0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa]"
> -map [outv] -map [outa] -c:v libx264 -vcodec mpeg4 -r 30 -strict
> experimental -b:v 1500000 finalvideo.mp4

Why do you place -r as an input option for overlayvideo.mov?

What is this -itsoffset for?

Why use -c:v libx264 *and* -vcodec mpeg4? These are mutually exclusive,
and mpeg4 is chosen as the encoder since it was declared later.

Your main input is 30000/1001. Why are you setting the output frame rate
with -r 30?

Why do you use single pass with -b:v instead of -crf? See:
https://trac.ffmpeg.org/wiki/Encode/H.264

Anyway, for your main issue, your overlay needs the eof_action option:
overlay=eof_action=pass

See overlay filter docs for more info:
https://ffmpeg.org/ffmpeg-filters.html#overlay

> ffmpeg version N-70223-g7296716 Copyright (c) 2000-2015 the FFmpeg
> developers

This version is about 6 months old which is considered geriatric. FFmpeg
development is very active.

Top-posting should be avoided on this mailing list.


More information about the ffmpeg-user mailing list