每30秒将视频剪辑3秒

编程入门 行业动态 更新时间:2024-10-25 04:18:30
本文介绍了每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秒

本文发布于:2023-10-25 14:17:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1527203.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:视频剪辑

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!