# mpv-player/mpv SLOC report

> mpv-player/mpv: 211,934 code lines at commit 543a8c2c59b9, counted with tokei-15.0.0 on 2026-11-15. Saved result 13a21af47071188eff7aa6e33a6bf3041b75c891ae0dafd8f7830942e4c03b57.

mpv-player/mpv has 211,934 source lines of code out of 281,736 total lines across 739 files, counted with tokei from the master ref at commit 543a8c2c59b9 on November 15, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving mpv-player/mpv to commit 543a8c2c59b9, 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 | 365 | 198,789 | 155,613 | 16,417 | 26,759 |
| ReStructuredText | 26 | 24,560 | 19,024 | 0 | 5,536 |
| C Header | 216 | 25,635 | 12,876 | 9,116 | 3,643 |
| Lua | 31 | 15,330 | 11,835 | 1,320 | 2,175 |
| Swift | 25 | 5,372 | 4,156 | 471 | 745 |
| Meson | 12 | 2,320 | 1,974 | 54 | 292 |
| Python | 14 | 1,996 | 1,574 | 156 | 266 |
| Objective-C | 8 | 1,631 | 1,235 | 144 | 252 |
| 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 15, 2026. Canonical report: https://octocounts.com/github/mpv-player/mpv/commit/543a8c2c59b9ea2f80e4992225b80a2b14b91346?reportId=13a21af47071188eff7aa6e33a6bf3041b75c891ae0dafd8f7830942e4c03b57&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/543a8c2c59b9ea2f80e4992225b80a2b14b91346?reportId=13a21af47071188eff7aa6e33a6bf3041b75c891ae0dafd8f7830942e4c03b57&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,934 lines of code, plus 29,330 comment lines and 40,472 blank lines, for 281,736 total lines at commit 543a8c2c59b9 on November 15, 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 543a8c2c59b9, 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 543a8c2c59b9 on November 15, 2026.

## Similar repository reports

- [libgit2/libgit2](https://octocounts.com/github/libgit2/libgit2) — C, 213,005 code lines
- [openwrt/openwrt](https://octocounts.com/github/openwrt/openwrt) — C, 213,584 code lines
- [mirror/busybox](https://octocounts.com/github/mirror/busybox) — C, 202,941 code lines
- [tbl00c/TLChat](https://octocounts.com/github/tbl00c/TLChat) — C, 222,524 code lines
- [immortalwrt/immortalwrt](https://octocounts.com/github/immortalwrt/immortalwrt) — C, 223,073 code lines
- [milescoviello/OS-DEV](https://octocounts.com/github/milescoviello/OS-DEV) — C, 200,650 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)
