相关疑难解决方法(0)

ffmpeg.c什么是pts和dts?这个代码块在ffmpeg.c中做了什么?

  • 简单来说,什么是pts和dts值?
  • 为什么它们在转码[decode-encode]视频时很重要?

这段代码在ffmpeg.c中做了什么,它的目的是什么?

01562    ist->next_pts = ist->pts = picture.best_effort_timestamp;
01563    if (ist->st->codec->time_base.num != 0) {
01564        int ticks= ist->st->parser ? ist->st->parser->repeat_pict+1 : ist->st->codec->ticks_per_frame;
01565        ist->next_pts += ((int64_t)AV_TIME_BASE *
01566                         ist->st->codec->time_base.num * ticks) /
01567                         ist->st->codec->time_base.den;
01568    }
Run Code Online (Sandbox Code Playgroud)

c ffmpeg

50
推荐指数
1
解决办法
3万
查看次数

标签 统计

c ×1

ffmpeg ×1