How to Show Stats Like Frame Drops and Bitrate in mpv?

This article provides a quick guide on how to display real-time on-screen performance statistics, such as frame drops, bitrates, codecs, and resolution, while watching videos in the mpv media player. You will learn the default keyboard shortcuts to toggle these overlays and how to customize them for a better viewing or troubleshooting experience.


Default Keyboard Shortcuts for mpv Stats

The mpv media player comes with a built-in statistics overlay that requires no extra plugins or complex configuration. You can trigger it instantly using your keyboard:

What Information is Displayed?

When you activate the stats overlay, mpv opens a multi-page data screen. You can navigate through different pages by pressing the corresponding numbers on your keyboard (e.g., 1, 2, 3) while the overlay is active.

Page 1: Current Playback and Performance

This is the most critical page for troubleshooting lag or buffering issues. It highlights:

Page 2: Codecs and Hardware Acceleration

This page details how the video is being processed:

Page 3: Cache and Network Info

If you are streaming a video directly via a URL (using yt-dlp integration), this page tracks your network health, including total cache size and speed.

Customizing the Stats Overlay

If you want to change how long the temporary stats stay on screen, or if you want to remap the toggle to a different key, you can modify your input.conf file.

  1. Locate your input.conf file (usually found in ~/.config/mpv/ on Linux/macOS or %APPDATA%\mpv\ on Windows).
  2. Add custom keybindings using the script-binding command:
# Change temporary stats to the 'v' key
v script-binding stats/display-stats

# Change permanent stats toggle to the 'V' key
V script-binding stats/display-stats-toggle

By utilizing these built-in tools, you can easily monitor your playback performance and pinpoint exactly why a video might be stuttering or dropping frames.