Mercurial
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 241:9c2eec61a152 | 242:543df0fe7168 |
|---|---|
| 1 # FFmpeg CLI wrapper | |
| 2 | |
| 3 This package restores the existing process-based FFmpeg wrapper and adds | |
| 4 fragmented-MP4 HLS VOD generation. | |
| 5 | |
| 6 The wrapper uses `fork`/`execvp` with explicit arguments instead of building a | |
| 7 shell command. FFmpeg must be installed on the machine running the target. | |
| 8 | |
| 9 ```c | |
| 10 Fmp4HlsOpts options = ffmpeg_fmp4_hls_opts_default(); | |
| 11 options.codec = FFMPEG_HLS_VP9_OPUS; | |
| 12 ffmpeg_video_to_fmp4_hls( | |
| 13 "input.mp4", | |
| 14 "output", | |
| 15 "sample", | |
| 16 &options); | |
| 17 ``` | |
| 18 | |
| 19 The wrapper supports VP9/Opus and H.264/AAC fMP4 renditions so callers can | |
| 20 build codec-compatible HLS master playlists. | |
| 21 | |
| 22 ```bash | |
| 23 bazel test //third_party/ffmpeg:ffmpeg_hls_test | |
| 24 ``` |