# mpv-player/mpv SLOC report

> As of 2026-10-23 (commit 0fae4695470b), mpv-player/mpv contains 279,770 total lines: 210,248 code, 29,232 comments, 40,290 blank, across 814 files in 24 languages (top: C 73.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

mpv-player/mpv has 210,248 source lines of code out of 279,770 total lines across 814 files, counted from the master ref at commit 0fae4695470b by the OctoCounts tokei engine on 2026-10-23. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving mpv-player/mpv to commit 0fae4695470b, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## 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 258 code lines per file. C accounts for 73.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 362 | 197,425 | 154,503 | 16,281 | 26,641 |
| ReStructuredText | 29 | 24,316 | 18,797 | 0 | 5,519 |
| C Header | 215 | 25,421 | 12,715 | 9,083 | 3,623 |
| Lua | 31 | 15,310 | 11,819 | 1,317 | 2,174 |
| Swift | 25 | 5,372 | 4,156 | 471 | 745 |
| Meson | 12 | 2,280 | 1,938 | 54 | 288 |
| Python | 13 | 1,880 | 1,490 | 135 | 255 |
| Objective-C | 8 | 1,593 | 1,207 | 143 | 243 |
| Shell | 13 | 1,175 | 957 | 99 | 119 |
| JavaScript | 1 | 862 | 649 | 92 | 121 |
| PowerShell | 2 | 646 | 568 | 23 | 55 |
| C++ | 1 | 584 | 489 | 34 | 61 |

Top language (C 73.5%). Generated at 2026-10-23T09:09:22.381427032+00:00. Canonical report: https://octocounts.com/github/mpv-player/mpv

## Reproduce this report

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

## Report FAQ

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

mpv-player/mpv has 279,770 total lines, including 210,248 code lines, 29,232 comment lines, and 40,290 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 0fae4695470b, 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 0fae4695470b on 2026-10-23T09:09:22.381427032+00:00.

## Similar repository reports

- [openwrt/openwrt](https://octocounts.com/github/openwrt/openwrt) — C, 210,589 code lines
- [milescoviello/OS-DEV](https://octocounts.com/github/milescoviello/OS-DEV) — C, 200,650 code lines
- [immortalwrt/immortalwrt](https://octocounts.com/github/immortalwrt/immortalwrt) — C, 220,445 code lines
- [libvips/libvips](https://octocounts.com/github/libvips/libvips) — C, 199,612 code lines
- [sunblaze-ucb/exploitgym](https://octocounts.com/github/sunblaze-ucb/exploitgym) — C, 198,194 code lines
- [rusqlite/rusqlite](https://octocounts.com/github/rusqlite/rusqlite) — C, 225,142 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)
- [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)
