[FFmpeg-user] Some questions about PTS

Michael Koch astroelectronic at t-online.de
Fri Aug 28 15:59:55 EEST 2020

Am 28.08.2020 um 13:38 schrieb Edward Park:
> Hi,
>> Let's assume the framerate is constant. For example, I want to delay a video by 5 frames and then hstack the original video and the delayed version:
>> ffmpeg -i test.mp4 -vf "split[a][b];[b]setpts=PTS+5/(FR*TB)[c];[a][c]hstack" -y out.mp4
> I would try tpad=start=5, but I'm not sure what happens for the first 5 frames... If your example works I'm pretty sure it would work.
>> ffmpeg -i test.mp4 -vf "split[a],tpad=start=5[b];[a][b]hstack" -y out.mp4

yes, that does also work fine. For the first 5 frames it's black, or the 
first frame can be cloned if "start_mode=clone" is added.


More information about the ffmpeg-user mailing list