M
M
Misha_Neponimayuschiy2021-12-28 21:11:05
fmpeg
Misha_Neponimayuschiy, 2021-12-28 21:11:05

How to use not integers but dotted numbers like 2.29 in FFmpeg?

Can't use dotted numbers in ffmpeg. Here is a script that cuts, I indicated 2.208 seconds in it, but it only cut by 2:

ffmpeg -ss 00:00:02.208 -i input.webm -c copy -t 00:08:00 output.webm

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2021-12-28
@sergiks

Here is a description of the time options in FFMPEG. Including:
[-][HH:]MM:SS[.m...]- your option, quite legitimate.
But video is a sequence of individual frames, and, depending on the codec, not all of them can be taxied - only to the "key". There can be one key frame, say, for 8. A frame is recorded with a full picture, and the next 7 are only diffs, changes relative to the key frame.
Alternatively, try specifying the same time in ms:
-ss 2208ms

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question