# FFmpeg/FFmpeg SLOC report

> As of 2026-09-14 (commit 639ee849526c), FFmpeg/FFmpeg contains 2,098,750 total lines: 1,628,496 code, 224,767 comments, 245,487 blank, across 5,479 files in 24 languages (top: C 77.1%). Default configuration. Counted with tokei via OctoCounts.

FFmpeg/FFmpeg has 1,628,496 source lines of code out of 2,098,750 total lines across 5,479 files, counted from the master ref at commit 639ee849526c by the OctoCounts tokei engine on 2026-09-14. 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 FFmpeg/FFmpeg to commit 639ee849526c, 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 very large codebase by counted code lines. Code represents 77.6% of all lines, comments represent 10.7%, and the repository averages 297 code lines per file. C accounts for 77.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 3,443 | 1,580,468 | 1,255,392 | 128,305 | 196,771 |
| C Header | 1,249 | 260,752 | 166,738 | 71,618 | 22,396 |
| GNU Style Assembly | 231 | 110,527 | 92,561 | 8,360 | 9,606 |
| Assembly | 186 | 83,661 | 68,265 | 8,020 | 7,376 |
| Makefile | 181 | 19,865 | 15,572 | 743 | 3,550 |
| Shell | 27 | 11,203 | 9,424 | 691 | 1,088 |
| GLSL | 68 | 9,483 | 6,267 | 1,834 | 1,382 |
| C++ | 6 | 5,761 | 4,641 | 288 | 832 |
| Objective-C | 5 | 3,059 | 2,369 | 229 | 461 |
| CUDA | 10 | 2,898 | 2,224 | 281 | 393 |
| OpenCL | 14 | 2,054 | 1,499 | 272 | 283 |
| Perl | 6 | 1,775 | 1,226 | 318 | 231 |

Top language (C 77.1%). Generated at 2026-09-14T20:48:31.138719474+00:00. Canonical report: https://octocounts.com/github/FFmpeg/FFmpeg

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/FFmpeg/FFmpeg/commit/639ee849526cfe61ceb312776335c245b98bd9d4?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Atrue%2C%22includeTests%22%3Atrue%2C%22includeGenerated%22%3Atrue%7D).

## Report FAQ

### How many lines of code does FFmpeg/FFmpeg have?

FFmpeg/FFmpeg has 2,098,750 total lines, including 1,628,496 code lines, 224,767 comment lines, and 245,487 blank lines.

### How was the FFmpeg/FFmpeg line count measured?

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

### What commit was counted for FFmpeg/FFmpeg?

This OctoCounts report was generated from master at commit 639ee849526c on 2026-09-14T20:48:31.138719474+00:00.

## Similar repository reports

- [python/cpython](https://octocounts.com/github/python/cpython) — C, 1,627,455 code lines
- [plan9foundation/plan9](https://octocounts.com/github/plan9foundation/plan9) — C, 1,659,936 code lines
- [php/php-src](https://octocounts.com/github/php/php-src) — C, 1,793,289 code lines
- [postgres/postgres](https://octocounts.com/github/postgres/postgres) — C, 1,817,922 code lines
- [apple-oss-distributions/xnu](https://octocounts.com/github/apple-oss-distributions/xnu) — C, 1,390,343 code lines
- [Kitware/CMake](https://octocounts.com/github/Kitware/CMake) — C, 1,254,658 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)
