How to use the frame at 5s and replace all frames before it using ffmpeg?
You can use a combination of the trim and tpad filters for this.
ffmpeg -i in.flv -vf &quot;trim=4,setpts=PTS-STARTPTS,tpad=start_duration=4:start_mode=clone&quot; -c:v libx264 -c:a copy out.flv