Reputation: 2676
I want to add 1 second to my video from beginning of it with the first frame. I mean the video will play 1 second length first frame before it starts. I am wondering how to do this with ffmpeg.
Upvotes: 0
Views: 554
Reputation: 92928
Use
ffmpeg -i in.mp4 -filter_complex "[0]trim=end_frame=1[i];[0]setpts=PTS+1/TB[m];[i][m]overlay" out.mp4
Audio is ignored. To delay audio as well,
ffmpeg -i in.mp4 -filter_complex "[0]trim=end_frame=1[i];[0]setpts=PTS+1/TB[m];[i][m]overlay" -af "adelay=1000|1000" out.mp4
Upvotes: 1