如何获取视频的width,height和duration?
来源:5-15 抽取视频数据

Sail_NiGht
2022-11-13
哪些函数可以如何获取视频的 width, height 和 duration 并输出?
写回答
1回答
-
李超
2022-11-14
avformat_open_input(avctx, file name, NULL, NULL);
avformat_find_stream_info(avctx, NULL)
int64_t duration = avctx->durations
00
相似问题