[FFmpeg-user] Setting -output_ts_offset always adds 2 frames

Julien De Luca julien.deluca at synchronized.tv
Thu Feb 7 22:46:51 EET 2019


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 <kumowoon1025 at gmail.com> wrote:

> > On Feb 6, 2019, at 5:17 PM, Julien De Luca <
> julien.deluca at synchronized.tv> 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
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list