totalFrames=pInputVstream->duration
*pInputVstream->time_base.num/pInputVstream->time_base.den
*pInputVstream->r_frame_rate.num/pInputVstream->r_frame_rate.den;
the totaltime is more easy ,
pInputVstream->duration
*pInputVstream->time_base.num/pInputVstream->time_base.den
得出的是微妙.而pts的是毫秒.
本文深入探讨了视频流处理中关键参数的理解与应用,包括总帧数、时间基准、帧率等,揭示了微妙与毫秒之间的转换,以及如何在实际应用中灵活运用这些参数。
979

被折叠的 条评论
为什么被折叠?



