Every 30 seconds is to cut a video 3s

前端 未结 1 1584
无人共我
无人共我 2020-12-11 11:33

I have a 30 minute video. I want to skip 3 seconds every 30 seconds. And continue to the end of the video. And it connects all 30s video together Example: 00:00:00 to 00:30:

相关标签:
1条回答
  • 2020-12-11 12:23

    The select filter is the most convenient for this,

    ffmpeg -i in -vf "select='lt(mod(t,33),30)',setpts=N/FRAME_RATE/TB" -af "aselect='lt(mod(t,33),30)',asetpts=N/SR/TB" out
    

    The video and audio select filters keep the first 30 seconds out of every 33 seconds. If your file doesn't have audio, drop the -af .. option.

    0 讨论(0)
提交回复
热议问题