rockcarry / fanplayer

A portable video player based on ffmpeg for windows and android platform.
GNU Lesser General Public License v3.0
616 stars 163 forks source link

如何获取码流信息 #23

Closed zslovelq closed 4 years ago

zslovelq commented 4 years ago

void player_getparam(void hplayer, int id, void param); 这个函数可以获取吗? 比如编码类型H265,H264,帧率等信息?

rockcarry commented 4 years ago

player->avformat_context 或者 player->vcodec_context 里面有你需要的信息,加断点看看。 要自己改下代码做接口出来获取这些信息。