begeekmyfriend/yasea

视频帧率解码为0,实时帧率为1000.

lixiong0713 opened this issue · 2 comments

使用ffmpeg解码
AVRational frame_rate = stream->avg_frame_rate;
AVRational r_frame_rate = stream->r_frame_rate;
int fps = av_q2d(frame_rate);
int r_fps = av_q2d(r_frame_rate);
结果: fps = 0 ,r_fps= 1000.

使用ffplay 拉流不显示帧率
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Data: none
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp
Stream #0:2: Video: h264 (High), yuv420p(tv, unknown/bt470bg/unknown, progressive), 720x1280, 1k tbr, 1k tbn

测试机型小米手机

请用SRS服务器测试一下,感觉你没拉到流

请用SRS服务器测试一下,感觉你没拉到流

拉到流了,ffplay 拉流画面正常