Understand libav.js configuration file structure
masterA libav.js configuration (or a configuration fragment) consists of several files that are concatenated during the build process. When you run make build-<variant>, the build system expects to find these files in configs/configs/<variant>.
Configuration Files
deps.mk: Library dependencies used to direct the building of libraries (generated fromdeps.txtwithin fragments).ffmpeg-config.txt: The specific configuration options passed to FFmpeg.libs.txt: Libraries to be linked.license.js: The license header prepended to built files.link-flags.txt: Extra link flags required during the build.
Fragment Behavior
- Explicit Fragments: Some fragments exist as physical directories in
configs/fragmentscontaining the files listed above. - Implicit Fragments: For most FFmpeg features (protocols, formats, codecs, etc.), no physical fragment file is required. If you specify a name like
codec-h263p, the system will automatically include the relevant FFmpeg configuration flag even ifconfigs/fragments/codec-h263pdoes not exist.