# mpv-player/mpv SLOC report

> mpv-player/mpv: 211,659 code lines at commit 649001d4e2ed, counted with tokei-15.0.0 on 2026-11-13. Saved result 6296f8e04455561cb688af3e5480f058b6bec697d7d8bea62b4cb095a8baa608.

mpv-player/mpv has 211,659 source lines of code out of 281,359 total lines across 737 files, counted with tokei from the master ref at commit 649001d4e2ed on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving mpv-player/mpv to commit 649001d4e2ed, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

mpv-player/mpv: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a large codebase by counted code lines. Code represents 75.2% of all lines, comments represent 10.4%, and the repository averages 287 code lines per file. C accounts for 73.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 364 | 198,535 | 155,426 | 16,393 | 26,716 |
| ReStructuredText | 26 | 24,559 | 19,023 | 0 | 5,536 |
| C Header | 215 | 25,552 | 12,818 | 9,098 | 3,636 |
| Lua | 31 | 15,330 | 11,835 | 1,320 | 2,175 |
| Swift | 25 | 5,372 | 4,156 | 471 | 745 |
| Meson | 12 | 2,319 | 1,973 | 54 | 292 |
| Python | 14 | 1,996 | 1,574 | 156 | 266 |
| Objective-C | 8 | 1,593 | 1,207 | 143 | 243 |
| Shell | 13 | 1,204 | 981 | 102 | 121 |
| JavaScript | 1 | 862 | 649 | 92 | 121 |
| PowerShell | 2 | 646 | 568 | 23 | 55 |
| C++ | 1 | 584 | 489 | 34 | 61 |
| SVG | 3 | 352 | 346 | 3 | 3 |
| Forge Config | 1 | 165 | 158 | 6 | 1 |
| Zsh | 1 | 269 | 157 | 56 | 56 |
| Bitbake | 4 | 105 | 101 | 0 | 4 |
| MSBuild | 1 | 77 | 77 | 0 | 0 |
| Fish | 1 | 95 | 60 | 27 | 8 |
| XML | 1 | 29 | 29 | 0 | 0 |
| Batch | 2 | 24 | 20 | 0 | 4 |
| TOML | 1 | 13 | 12 | 0 | 1 |
| Autoconf | 1 | 9 | 0 | 9 | 0 |
| Markdown | 7 | 1,011 | 0 | 783 | 228 |
| Plain Text | 2 | 658 | 0 | 517 | 141 |

Top language: C 73.4%. Generated on November 13, 2026. Canonical report: https://octocounts.com/github/mpv-player/mpv/commit/649001d4e2edbfc0d469333898b07c96b977faba?reportId=6296f8e04455561cb688af3e5480f058b6bec697d7d8bea62b4cb095a8baa608&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/mpv-player/mpv/commit/649001d4e2edbfc0d469333898b07c96b977faba?reportId=6296f8e04455561cb688af3e5480f058b6bec697d7d8bea62b4cb095a8baa608&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does mpv-player/mpv have?

mpv-player/mpv has 211,659 lines of code, plus 29,287 comment lines and 40,413 blank lines, for 281,359 total lines at commit 649001d4e2ed on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the mpv-player/mpv line count measured?

OctoCounts resolved the public GitHub repository to commit 649001d4e2ed, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for mpv-player/mpv?

This OctoCounts report was generated from master at commit 649001d4e2ed on November 13, 2026.

## Similar repository reports

- [libgit2/libgit2](https://octocounts.com/github/libgit2/libgit2) — C, 213,009 code lines
- [openwrt/openwrt](https://octocounts.com/github/openwrt/openwrt) — C, 213,729 code lines
- [tbl00c/TLChat](https://octocounts.com/github/tbl00c/TLChat) — C, 222,524 code lines
- [OpenYSM/YSMParser](https://octocounts.com/github/OpenYSM/YSMParser) — C, 222,906 code lines
- [immortalwrt/immortalwrt](https://octocounts.com/github/immortalwrt/immortalwrt) — C, 223,691 code lines
- [mirror/busybox](https://octocounts.com/github/mirror/busybox) — C, 202,941 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
