I tried using setpts filter, but it has no effect the output first frame pkt_pts_time is 1.480000 : ffmpeg -i vs0/out2.ts -y -filter_complex "setpts=expr=10-STARTPTS+PTS" -acodec aac -vcodec libx264 -f mpegts test.ts
The goal is to make this work whatever the input is, and manually adding 0.08 would imply to have the control on the encoder, which I would try to avoid. On Thu, Feb 7, 2019 at 3:58 PM Ted Park <[email protected]> wrote: > > On Feb 6, 2019, at 5:17 PM, Julien De Luca < > [email protected]> wrote: > > > > I'm trying to set the initial pkt_pts_time using output_ts_offset. On > > streams encoded using ffmpeg, it always sets the offset + 0.08s, which > is 2 > > frames. > > The encoder must be setting the starting timestamp to 0.08s, and then the > 10s offset being added to it. You could add 9.92 if it’s important? Or if > the start is different for other files you could use > setpts=expr=10-STARTPTS+PTS as a filter. > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
