Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg video editing command in milliseconds timestamp

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.

like image 936
Harjit Singh Avatar asked Apr 19 '14 15:04

Harjit Singh


People also ask

How do I set duration in FFmpeg?

Use the -t option to specify a time limit: `-t duration' Restrict the transcoded/captured video sequence to the duration specified in seconds. hh:mm:ss[.

What is FFmpeg timestamp?

The ffmpeg -timestamp option takes a date, which it stores in the output file. It is not related to the timecode and does not cause any text to be rendered.


1 Answers

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.

like image 97
Arnaud Leyder Avatar answered Sep 29 '22 05:09

Arnaud Leyder