Mercurial
diff third_party/ffmpeg/README.md @ 242:543df0fe7168
[tools] Add full HLS player support
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 03 Aug 2026 13:14:41 -0700 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/third_party/ffmpeg/README.md Mon Aug 03 13:14:41 2026 -0700 @@ -0,0 +1,24 @@ +# FFmpeg CLI wrapper + +This package restores the existing process-based FFmpeg wrapper and adds +fragmented-MP4 HLS VOD generation. + +The wrapper uses `fork`/`execvp` with explicit arguments instead of building a +shell command. FFmpeg must be installed on the machine running the target. + +```c +Fmp4HlsOpts options = ffmpeg_fmp4_hls_opts_default(); +options.codec = FFMPEG_HLS_VP9_OPUS; +ffmpeg_video_to_fmp4_hls( + "input.mp4", + "output", + "sample", + &options); +``` + +The wrapper supports VP9/Opus and H.264/AAC fMP4 renditions so callers can +build codec-compatible HLS master playlists. + +```bash +bazel test //third_party/ffmpeg:ffmpeg_hls_test +```