gpt4 book ai didi

ffmpeg - 如何使用 ffmpeg 进行框架切换?

转载 作者:行者123 更新时间:2023-12-04 23:02:38 30 4
gpt4 key购买 nike

enter image description here

ffmpeg -i in.mp4 -vf "select='if(gt(scene,0.03),st(1,t),lte(t-ld(1),4))',setpts=N/FRAME_RATE/TB" -an trimmed2.mp4

我的代码,但它不适用于我的情况。请帮忙

最佳答案

假设您想从 1.25 秒修剪到 5 秒:

ffmpeg -ss 1.25 -i in.mp4 -to 5 -an trimmed2.mp4

同样的事情,但指定持续时间而不是终点(可能是首选):
ffmpeg -ss 1.25 -i in.mp4 -t 3.75 -an trimmed2.mp4

或者,如果您只想要 40 帧:
ffmpeg -ss 1.25 -i in.mp4 -frames:v 40 -an trimmed2.mp4

有关在此处寻找/修剪的更多信息: https://trac.ffmpeg.org/wiki/Seeking#Cuttingsmallsections

关于ffmpeg - 如何使用 ffmpeg 进行框架切换?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51690803/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com