[FFmpeg-user] how to set start time of ts file

He Lei helei0908 at hotmail.com
Wed Sep 26 15:04:41 EEST 2018

Use the setpts filter, set startpts to 0;

ffmpeg -I in.file -vf setpts=’PTS-STARTPTS’  outfile

look at the libavfilter/setpts.c file. you can get it.

helei0908 at hotmail.com<mailto:helei0908 at hotmail.com>

在 2018年9月26日,下午7:45,qw <applemax82 at 163.com<mailto:applemax82 at 163.com>> 写道:

There are some ts files, whose start time is not zero, and even too large, such as 1 hour. How to set start time to zero for those ts files?

More information about the ffmpeg-user mailing list