|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::FFmpegMuxContext::open | ( | const std::string & | filepath, |
| const std::string & | explicit_format = {} |
||
| ) |
Allocate an output context and open the avio layer for writing.
Format is inferred from the filepath extension via avformat_alloc_output_context2. Pass explicit_format to override (e.g. "matroska" to force MKV regardless of extension).
Does NOT write any data to disk. Call write_header() after all stream contexts have been opened on this mux context.
| filepath | Output file path. Extension determines container. |
| explicit_format | FFmpeg short format name override; empty = infer. |
Definition at line 26 of file FFmpegMuxContext.cpp.
References close(), format_context, MayaFlux::IO::FFmpegDemuxContext::init_ffmpeg(), m_last_error, and MayaFlux::IO::resolve_write_path().
Referenced by MayaFlux::IO::SoundFileWriter::worker_loop(), and MayaFlux::IO::VideoFileWriter::worker_loop().
Here is the call graph for this function:
Here is the caller graph for this function: