E
E
Evgeny Ivanov2020-02-14 09:53:15
Video
Evgeny Ivanov, 2020-02-14 09:53:15

ffmpeg how to cut video without quality loss?

I am using fmpeg.

Team

ffmpeg -i original_video.mp4 -c copy -ss 00:01:43 -to 00:01:47 cut_1_test.mp4

Gives incorrect result - black screen at the beginning, frame failure, etc.

Team
ffmpeg -i original_video.mp4 -vcodec libx264 -ss 00:01:43 -to 00:01:47 cut_1.mp4

Gives the correct result, but the specific libx264 codec is specified here.

How to cut video without quality loss?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2020-02-14
@logpol32

move the option -ssbefore specifying the input

ffmpeg -ss 00:01:43 -i original_video.mp4 -c copy -t 00:00:04  cut_1_test.mp4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question