gpt4 book ai didi

FFMPEG 分割视频无法正常工作

转载 作者:行者123 更新时间:2023-12-04 23:25:07 24 4
gpt4 key购买 nike

我正在尝试将视频拆分为帧。我正在动态传递开始时间和结束时间。

例如:

ffmpeg -i /Users/mypc/Documents/Avatar/input.mp4 -ss 00:00:39.799 -t 00:00:42.039  /Users/mypc/Downloads/testing/output.mp4

它应该将视频从第 39 秒缩短到 42 秒。大约 3 秒。但是,它 split 超过3秒。我被卡住了,为什么它会这样。

我在我的命令中遗漏了什么吗?

请建议

附上我的终端的屏幕截图:

enter image description here

最佳答案

我在玩错误的命令。 -t 将指示视频将从 -ss 拆分为 -t。

正确的命令是

 ffmpeg -i input.mp4 -ss 00:01:00 -to 00:02:00 -c copy output.mp4

关于FFMPEG 分割视频无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51303329/

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