[FFmpeg-user] Encode to timestamp on ts with "holes"

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Mar 5 18:20:49 EET 2019

2019-03-05 12:31 GMT+01:00, Gabriele Greco <gabrielegreco at gmail.com>:

> Actually what I do basically is:
> ffmpeg -ss start_ts -i input.ts -to (end_ts - start_ts) out.mp4
> this can work only if the input file has no holes...
> so after reading ffmpeg documentation and various stackoverflow questions I
> decided that copyts was my friend to achieve my result and I tried:
> ffmpeg -ss start_ts -copyts -i input.ts -to end_ts out.mp4
> ffmpeg -ss start_ts -i input.ts -copyts -to end_ts out.mp4

Use "-async 1" instead of copyts imo.

Or do you mean timestamp resets? There is a (big) difference...

Carl Eugen

More information about the ffmpeg-user mailing list