Ubuntu使用ffmepg等工具

1. ffmepg裁剪视频

$ ffmpeg -i source.mp4 -ss starttime -t length -c copy (filepath)output.mp4
-ss xx:xx:xx/M #h:m:s or M s, start time
-t N/xx:xx:xx #N s or h:m:s,length of output.mp4

filepath需要存在,没有的文件夹要先创建,ffmepg不会创建文件夹,只会报错:No such file or dictionary.

2. 可以使用youtube-dl下载YouTube上的视频,用youtube-dl -U先确认是最新版;在vscode内打开Terminal,再使用youtube-dl可能无法下载,另外打开Terminal可以,不知道为什么

猜你喜欢

转载自www.cnblogs.com/grainrain/p/13377560.html