Problem: t_ext defaults to video_length if t>video_length (i.e. 5 seconds clip can only become 10 seconds long even if i try to hold any frame for 20 seconds)


Command I'm using:

ffmpeg -i 'video_path' -vf "setpts='PTS-STARTPTS + gte(T,t)*(t_ext/TB)'" -af "asetpts='PTS-STARTPTS + gte(T,t)*(t_ext/TB)', aresample=async=1: first_pts=0" -vsync cfr 'output.mp4'

ffmpeg version 4.1.3-0ubuntu1

Most appreciated.

  • Add -report and rerun. Share report.
    – Gyan
    May 8 at 4:52


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.