当前位置:   article > 正文

ffmpeg seek--ts_ffmpeg seek ts

ffmpeg seek ts

read_timestamp返回pos--pos_limit间的视频帧的dts信息;

  1. /**
  2. * Get the next timestamp in stream[stream_index].time_base units.
  3. * @return the timestamp or AV_NOPTS_VALUE if an error occurred
  4. */
  5. int64_t (*read_timestamp)(struct AVFormatContext *s, int stream_index,
  6. int64_t *pos, int64_t pos_limit);

基于二分查找实现seek,外部接口

  1. /**
  2. * Perform a binary search using av_index_search_timestamp() and
  3. * AVInputFormat.read_timestamp().
  4. *
  5. * @param target_ts target timestamp in the time base of the given stream
  6. * @param stream_index stream number
  7. */
  8. int ff_seek_frame_binary(AVFormatContext *s, int stream_index,
  9. int64_t target_ts, int flags);


二分查找实现seek,内部接口

  1. /**
  2. * Perform a binary search using read_timestamp().
  3. *
  4. * @param targe
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/647061
推荐阅读
相关标签
  

闽ICP备14008679号