本文共 1178 字,大约阅读时间需要 3 分钟。
-vsync parameterVideo sync method. For compatibility reasons old values can be specified as numbers. Newly added values will have to be specified as strings always.0, passthroughEach frame is passed with its timestamp from the demuxer to the muxer.1, cfrFrames will be duplicated and dropped to achieve exactly the requested constant frame rate.2, vfrFrames are passed through with their timestamp or dropped so as to prevent 2 frames from having the same timestamp.dropAs passthrough but destroys all timestamps, making the muxer generate fresh timestamps based on frame-rate.-1, autoChooses between 1 and 2 depending on muxer capabilities. This is the default method.Note that the timestamps may be further modified by the muxer, after this. For example, in the case that the format option avoid_negative_ts is enabled.With -map you can select from which stream the timestamps should be taken. You can leave either video or audio unchanged and sync the remaining stream(s) to the unchanged one.
转载地址:http://hlfli.baihongyu.com/