ffmpeg -i input.mp4 -ss 00:00:00,000 -to 00:00:03,466 -c:v copy output.mp4
The above is my ffmpeg command which is throwing the error of “Invalid duration specification for ss 00:00:00,000”. I think it is throwing the error because of the timestamp format. It is not taking input of milliseconds. That is why it is not executing the full command. Any idea how to fix this?
Advertisement
Answer
The ffmpeg documentation clearly specifies the format of timestamp to be
[-][HH:]MM:SS[.m…]
So you’ll need to somehow convert your input by replacing the comma with a “.” in the timestamp to make it work.
Also, this solution also suggests the same.