diff options
Diffstat (limited to 'content/notes/ffmpeg.md')
| -rw-r--r-- | content/notes/ffmpeg.md | 21 |
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> --> |