每30秒将视频剪辑3秒 [英] Every 30 seconds is to cut a video 3s

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

问题描述

我有30分钟的视频.我想每30秒跳过3秒.并继续播放视频的结尾.它将所有30年代的视频连接在一起 例如: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

推荐答案

选择过滤器对此最为方便,

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

视频和音频选择过滤器使前33秒保持为每33秒一次.如果您的文件没有音频,请放下-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秒将视频剪辑3秒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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