Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cut video with ffmpeg in Ubuntu

I execute the command in Ubuntu to cut a video:

/usr/bin/ffmpeg -i video.mp4 -an -ss 00:00:1 -t 00:00:08 -async 1

In Windows 10 its work, but not work in Ubuntu.

I receive in Ubuntu the warning:

Trailing options were found on the commandline.

and receive the error:

At least one output file must be specified

What do I do?

like image 929
PHP Developer Avatar asked May 03 '17 17:05

PHP Developer


People also ask

Can you edit videos with FFmpeg?

FFmpeg is a cross-platform solution to record, convert and edit audio and video. It is a command line tool to convert one video file format to another. However, you could also find a FFmpeg GUI for user-friendly video editing.

Can FFmpeg play videos?

Ffmpeg stands for Fast Forward MPEG. It's an opensource software project for working with audio and video. It is command-line based and lets you handle video, audio, multimedia files, and streams.


1 Answers

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

just add output file name, in this situation - cut.mp4

like image 119
tso Avatar answered Oct 18 '22 14:10

tso