walterfan / webrtc_stats

webrtc internals dump file analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

It is a python script to parse the dump file of webrtc-internals

Quick Start

$ virtualenv -p python3 venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ fab -l

Metrics

When we open chrome://webrtc-internals/ in chrome, or open edge://webrtc-internals/ in edge, or open about:webrtc in firefox

We can see the following info and metrics

  • ICE connection state
  • Signaling state
  • ICE candidate grid
  • ICE connection candidate pair and related metrics
  • Inbound RTP and remote inbound RTP stream metrics
  • Outbound RTP and remote outbound RTP stream metrics

We need pay more attention to

  • Candidate-pair
  • Local-candidate
  • Remote-candidate
  • Inbound-rtp
  • Outbound-rtp
  • Opus codec: maxaveragebitrate, maxplaybackrate, stereo, useinbandfec, etc.
  • H264 codec: level-asymmetry-allowed, max-br, max-dpb, max-fps, max-fs, max-mbps, packetization-mode, profile-level-id, id, etc.

Front end page

A simple flask based app

virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt

source ./venv/bin/activate
export FLASK_DEBUG=1
export FLASK_APP=app.py
flask run --host=0.0.0.0 --port=8000 &

About

webrtc internals dump file analyzer

License:Apache License 2.0


Languages

Language:HTML 59.0%Language:Python 40.9%Language:Shell 0.1%