The OutputFormatContext API extends FormatContext to provide functionality for writing media files.
const format = new ffmpeg.OutputFormatContext(formatName, io)formatName(string): The output format name (e.g.,'mp4','avi')io(IOContext): The IO context for writing. Ownership is automatically transferred to the format context, making the original IOContext safe to destroy multiple times.
Returns: A new OutputFormatContext instance
Gets the output format associated with this context.
Returns: OutputFormat instance or undefined if not available
Creates a new stream in the output format.
Parameters:
codec(Codec): The codec to use for the stream
Returns: A new Stream instance
Destroys the OutputFormatContext and closes the output format. Automatically called when the object is managed by a using declaration.
Returns: void