每30秒就是剪一个3s的视频 [英] Every 30 seconds is to cut a video 3s

查看:21
本文介绍了每30秒就是剪一个3s的视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 30 分钟的视频.我想每 30 秒跳过 3 秒.并继续到视频的结尾.它将所有 30 年代的视频连接在一起示例:00:00:00 到 00:30:00 + 00:33:00 到 00:63:00 + 00:66:00 到 00:96:00 ..... 结束视频就这么多请帮我写

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 -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

视频和音频选择过滤器每 33 秒保留前 30 秒.如果您的文件没有音频,请删除 -af .. 选项.

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.

这篇关于每30秒就是剪一个3s的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆