Disable bitrate reporting until FEC accuracy issues are resolved
This commit is contained in:
parent
66b96e75af
commit
8ed7144751
1 changed files with 12 additions and 3 deletions
|
|
@ -835,20 +835,29 @@ void FFmpegVideoDecoder::stringifyVideoStats(VIDEO_STATS& stats, char* output, i
|
||||||
|
|
||||||
if (stats.receivedFps > 0) {
|
if (stats.receivedFps > 0) {
|
||||||
if (m_VideoDecoderCtx != nullptr) {
|
if (m_VideoDecoderCtx != nullptr) {
|
||||||
|
#ifdef DISPLAY_BITRATE
|
||||||
double avgVideoMbps = m_BwTracker.GetAverageMbps();
|
double avgVideoMbps = m_BwTracker.GetAverageMbps();
|
||||||
double peakVideoMbps = m_BwTracker.GetPeakMbps();
|
double peakVideoMbps = m_BwTracker.GetPeakMbps();
|
||||||
|
#endif
|
||||||
|
|
||||||
ret = snprintf(&output[offset],
|
ret = snprintf(&output[offset],
|
||||||
length - offset,
|
length - offset,
|
||||||
"Video stream: %dx%d %.2f FPS (Codec: %s)\n"
|
"Video stream: %dx%d %.2f FPS (Codec: %s)\n"
|
||||||
"Bitrate: %.1f Mbps, Peak (%us): %.1f\n",
|
#ifdef DISPLAY_BITRATE
|
||||||
|
"Bitrate: %.1f Mbps, Peak (%us): %.1f\n"
|
||||||
|
#endif
|
||||||
|
,
|
||||||
m_VideoDecoderCtx->width,
|
m_VideoDecoderCtx->width,
|
||||||
m_VideoDecoderCtx->height,
|
m_VideoDecoderCtx->height,
|
||||||
stats.totalFps,
|
stats.totalFps,
|
||||||
codecString,
|
codecString
|
||||||
|
#ifdef DISPLAY_BITRATE
|
||||||
|
,
|
||||||
avgVideoMbps,
|
avgVideoMbps,
|
||||||
m_BwTracker.GetWindowSeconds(),
|
m_BwTracker.GetWindowSeconds(),
|
||||||
peakVideoMbps);
|
peakVideoMbps
|
||||||
|
#endif
|
||||||
|
);
|
||||||
if (ret < 0 || ret >= length - offset) {
|
if (ret < 0 || ret >= length - offset) {
|
||||||
SDL_assert(false);
|
SDL_assert(false);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue