[FFmpeg-user] avoid_negative_ts : what integer ?

Moritz Barsnick barsnick at gmx.net
Fri Sep 28 21:53:58 EEST 2018

On Fri, Sep 28, 2018 at 13:49:54 -0400, sean darcy wrote:
> So:
> -avoid_negative_ts 1  means 'make_non_negative'
> or the option is
> -avoid_negative_ts make_non_negative

A bit confusing indeed. The latter, using the named option, is
preferred. In this case, it does actually map to "1", so your former
command will also work.

$ ffmpeg -h full
lists the valid arguments, and the range they map to:

  -avoid_negative_ts <int>        E........ shift timestamps so they start at 0 (from -1 to 2) (default auto)
     auto                         E........ enabled when required by target format
     disabled                     E........ do not change timestamps
     make_non_negative              E........ shift timestamps so they are non negative
     make_zero                    E........ shift timestamps so they start at 0

So "auto" and "disabled" are not 2 and 3, as you could think from the
docs, but rather -1 and 0. That's why using the named arguments is


More information about the ffmpeg-user mailing list