FFmpeg命令积累

精准切割

裁剪前 10 秒:

ffmpeg -ss 0:0 -t 0:10 -i input.mov output.mp4

-ss 开始时间
-t 持续时间

裁剪最后 10 秒:

ffmpeg -sseof -0:10 -i input.mov output.mp4

-sseof 相对于文件末尾的开始时间


Powershell采用的是ASCI编码,所以写批处理文件时,要把bat文件保存为ASCI编码。

原文地址:https://www.cnblogs.com/hercules-chung/p/12500095.html