FFMpeg时间转换计算

2020-03-07  本文已影响0人  程序员都是傻子呀

int seconds = formatContext->duration / AV_TIME_BASE;
int us = formatContext->duration % AV_TIME_BASE;
int minutes = seconds / 60;
[s appendFormat:@"%02d:%02d:%02d.%01d",
minutes / 60, minutes % 60, seconds % 60, (10 * us) / AV_TIME_BASE];

上一篇下一篇

猜你喜欢

热点阅读