Every 30 seconds is to cut a video 3s

2019-01-20 16:13发布

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:00 + 00:33:00 to 00:63:00 + 00:66:00 to 00:96:00 ..... so much for the ending video Please help me write it

标签: ffmpeg
1条回答
叛逆
2楼-- · 2019-01-20 16:59

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.

查看更多
登录 后发表回答