How to trim video by multiple frame numbers then concatenate using FFMPEG
问题 Using following code, I'm able to trim video by time: ffmpeg -i input.mp4 -filter_complex \ "[0:v]trim=60:65,setpts=PTS-STARTPTS[v0]; \ [0:a]atrim=60:65,asetpts=PTS-STARTPTS[a0]; \ [0:v]trim=120:125,setpts=PTS-STARTPTS[v1]; [0:a]atrim=120:125,asetpts=PTS-STARTPTS[a1]; \ [v0][a0][v1][a1]concat=n=2:v=1:a=1[out]" \ -map "[out]" output.mp4 Above code trim video from 60-65 sec & 120-125sec then concatenate in output.mp4 file. Need to know how to trim video by using frame number and concatenate. Is