ffmpeg video editing command in milliseconds timestamp

Harjit Singh picture Harjit Singh · Apr 19, 2014 · Viewed 21.7k times · Source

I am editing a video with ffmpeg where I have to keep in view the timestamp further deep from seconds to milliseconds. I know such command : ffmpeg -i a.ogg -ss 00:01:02 -to 00:01:03 -c copy x2.ogg. This uses seconds, but I want down to milliseconds.

Answer

Arnaud Leyder picture Arnaud Leyder · Apr 19, 2014

you can try:

ffmpeg -i a.ogg -ss 00:01:02.500 -t 00:01:03.250 -c copy x2.ogg

Timestamps need to be in HH:MM:SS.xxx format for advanced precision (where xxx are milliseconds).

Let me know if it works.