Creates an archive helper bound to a specific FFmpeg instance.
Optionalffmpeg: FFmpegOptional FFmpeg instance. When omitted, the engine singleton FFmpeg instance is used.
Adds an in-memory byte buffer to the open archive.
Target file path inside the archive.
Byte buffer to write.
When true, reuses the provided buffer instead of cloning it first.
A promise that resolves to true if the data was added successfully.
Adds a file from the FFmpeg virtual filesystem to the open archive.
Source file path to add.
Optional directory inside the archive where the file should be placed.
A promise that resolves to true if the file was added successfully.
Adds multiple files from the FFmpeg virtual filesystem to the open archive.
Source file paths to add.
Optional directory inside the archive where the files should be placed.
A promise that resolves to true if the files were added successfully.
Closes an archive handle.
Archive handle identifier to close.
A promise that resolves to true if the archive was closed successfully.
Creates a new archive file and opens it for subsequent operations.
Output archive path in the FFmpeg virtual filesystem.
A promise that resolves to true if the archive was created successfully.
Closes the currently open archive if one is active.
A promise that resolves to the FFmpeg close result, or undefined if no archive is open.
Extracts all archive contents into the specified directory.
Destination directory in the FFmpeg virtual filesystem.
A promise that resolves to true if extraction completed successfully.
Extracts a single archived file to a destination path.
File path inside the archive.
Destination path in the FFmpeg virtual filesystem.
A promise that resolves to true if the file was extracted successfully.
Returns the FFmpeg instance used for archive operations.
The bound FFmpeg instance.
Indicates whether an archive is currently open.
true if the archive helper has an active archive handle; otherwise false.
Lists the files currently stored in the open archive.
A promise that resolves to the archive file path list.
Opens an existing archive file.
Archive path in the FFmpeg virtual filesystem.
A promise that resolves to true if the archive was opened successfully.
Reads a single file from the open archive.
Path of the archived file to read.
A promise that resolves to the file bytes, or null if the read fails.
Flushes pending changes to the currently open archive.
A promise that resolves to true if the archive was saved successfully.
Convenience wrapper around FFmpeg archive operations for creating, reading, and extracting zip-like archives.