ffmpeg video editing command in milliseconds timestamp

前端 未结 2 1695
深忆病人
深忆病人 2020-12-29 01:59

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.o

相关标签:
2条回答
  • 2020-12-29 02:26

    Time duration can be present two format. (FFmpeg 4.3 or newer)

    Format 1 :

    [-][HH:]MM:SS[.m...]
    

    or

    Format 2 :

    [-]S+[.m...][s|ms|us]
    

    Format 1 samples

    01:20:10        1 hour 20 minute 10 seconds
    04:03           4 minutes 3 seconds
    07:02:05.100    7 hours 2 minutes 5 seconds 100 miliseconds 
    

    Format 2 samples

    120             120 seconds
    120.2           120.2 seconds or 120 seconds 200 miliseconds
    1200ms          1200 milliseconds
    1300us          1300 microseconds
    

    I never rely on decimals. If possible, use always format2 (-ss '120534ms').

    ffmpeg -i a.ogg -ss '100ms' -t '600ms' -c copy x2.ogg
    
    0 讨论(0)
  • 2020-12-29 02:37

    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.

    0 讨论(0)
提交回复
热议问题