summaryrefslogtreecommitdiff
path: root/content/notes/ffmpeg.md
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2026-08-29 15:36:31 -0700
committerHunter Kvalevog <hunter@kvog.sh>2026-08-29 15:36:31 -0700
commit80ad356d7ad90f4753e15e8af7254723894e2b40 (patch)
treeb1edf006b298a41a7896281975d26f12aa040860 /content/notes/ffmpeg.md
parent58d2300924fb22170bc94e97c270b8e3a356df1a (diff)
Diffstat (limited to 'content/notes/ffmpeg.md')
-rw-r--r--content/notes/ffmpeg.md21
1 files changed, 10 insertions, 11 deletions
diff --git a/content/notes/ffmpeg.md b/content/notes/ffmpeg.md
index cdd950c..a7e6803 100644
--- a/content/notes/ffmpeg.md
+++ b/content/notes/ffmpeg.md
@@ -1,6 +1,5 @@
+++
-date = '2026-06-17T17:50:30-05:00'
-title = 'ffmpeg'
+title = 'FFmpeg development notes'
+++
## Websites
@@ -20,19 +19,19 @@ title = 'ffmpeg'
## Building
List all compile options:
-```
+```sh
$ ./configure --help | vim -
```
Quick development build; takes about 90 seconds on an M1 MacBook Air:
-```
+```sh
$ ./configure --disable-optimizations --disable-asm
$ make -j $(nproc)
$ make -j $(sysctl -n hw.logicalcpu)
```
Troubleshooting build:
-```
+```sh
$ ./configure --disable-optimizations --assert-level=2 --toolchain=clang-asan
$ ./configure --disable-optimizations --assert-level=2 --toolchain=clang-asan-ubsan
```
@@ -42,7 +41,7 @@ $ ./configure --disable-optimizations --assert-level=2 --toolchain=clang-asan-ub
## Regression testing
FATE documentation: https://ffmpeg.org/fate.html, TLDR:
-```
+```sh
$ ./configure --disable-optimizations --assert-level=2 --toolchain=clang-asan --samples=$HOME/Proj/FFmpeg-FATE
$ make
$ make fate-rsync
@@ -54,12 +53,12 @@ $ make fate
checkasm docs: https://checkasm.videolan.me/
Build within FFmpeg:
-```
+```sh
$ make checkasm
```
List tests:
-```
+```sh
$ ./tests/checkasm/checkasm --list-tests | sort | vim -
```
@@ -69,7 +68,7 @@ The easiest way to see what test calls what functions is to check the source cod
[`-> tests/checkasm/checkasm.c`](https://code.ffmpeg.org/FFmpeg/FFmpeg/src/branch/master/tests/checkasm/checkasm.c).
Example:
-```
+```sh
$ ./tests/checkasm/checkasm --bench --test=vf_bwdif
```
<details>
@@ -118,7 +117,7 @@ Benchmark results:
</details>
-## libavformat architecture
+<!-- ## libavformat architecture
Note: This is all based off of FFmpeg 8.1.2 (commit `38b88335f99e76ed89ff3c93f877fdefce736c13`)
@@ -206,4 +205,4 @@ demuxer instance, and reads the file header.
[`doc/examples/remux.c:80`](https://code.ffmpeg.org/FFmpeg/FFmpeg/src/commit/38b88335f99e76ed89ff3c93f877fdefce736c13/doc/examples/remux.c#L80):
`main` calls `avformat_find_stream_info`.
-</div>
+</div> -->