|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::FFmpegMuxContext::write_packet | ( | AVPacket * | pkt | ) |
Submit one encoded packet for interleaved writing.
Uses av_interleaved_write_frame, which buffers packets internally to preserve correct interleaving order for containers that require it (MP4, MKV). For single-stream audio-only containers (WAV, FLAC) this is equivalent to av_write_frame.
The packet's stream_index, PTS, DTS, and duration must be set by the calling encode context before this call. Ownership of the packet data is transferred to FFmpeg; the caller must not reference pkt after return.
| pkt | Encoded packet with all fields populated. |
Definition at line 124 of file FFmpegMuxContext.cpp.
References format_context, m_header_written, and m_last_error.
Referenced by MayaFlux::IO::AudioEncodeContext::drain_packets(), and MayaFlux::IO::VideoEncodeContext::drain_packets().
Here is the caller graph for this function: