在Ubuntu中使用ffmpeg剪切视频

PHP*_*per 5 linux ubuntu ffmpeg

我在Ubuntu中执行命令以剪切视频:

/usr/bin/ffmpeg -i video.mp4 -an -ss 00:00:1 -t 00:00:08 -async 1
Run Code Online (Sandbox Code Playgroud)

在Windows 10中可以使用,但在Ubuntu中不能使用。

我在Ubuntu中收到警告:

在命令行上找到尾随选项。

并收到错误:

必须至少指定一个输出文件

我该怎么办?

tso*_*tso 7

做:
ffmpeg -i video.mp4 -ss 00:00:01 -t 00:00:08 -async 1 cut.mp4

在这种情况下,只需添加输出文件名-cut.mp4