From 80ad356d7ad90f4753e15e8af7254723894e2b40 Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Sat, 29 Aug 2026 15:36:31 -0700 Subject: --- content/notes/ffmpeg.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'content/notes/ffmpeg.md') 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 ```
@@ -118,7 +117,7 @@ Benchmark results:
-## libavformat architecture + -- cgit v1.2.3