[FFmpeg-user] Some questions about PTS

Edward Park kumowoon1025 at gmail.com
Fri Aug 28 14:38:09 EEST 2020


> 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

Ted Park

More information about the ffmpeg-user mailing list