AVStream 中的time_base  为帧率倒数。数据结构是  

typedef struct AVRational{
  int num; ///< numerator
  int den; ///< denominator
} AVRational;

打印看结果是  

num = 1, den = 23. 每秒23帧。

 

关于 av_q2d

源码中

/**
* Convert rational to double.
* @param a rational to convert
* @return (double) a
*/
static inline double av_q2d(AVRational a){
return a.num / (double) a.den;
}

 

 

 

 

ps:

  http://www.chinavideo.org/viewthread.php?tid=2888

相关文章:

  • 2021-08-31
  • 2022-01-20
  • 2021-09-11
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-25
  • 2021-07-05
  • 2022-02-20
  • 2021-09-17
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
相关资源
相似解决方案