MediaSink
An open output file (muxer). Add every encoder first, video and audio, because the muxer's header freezes the stream list. Then push frames through the encoders. Close the sink to write the trailer and flush buffers.
An open output file (muxer). Add every encoder first, video and audio, because the muxer's header freezes the stream list. Then push frames through the encoders. Close the sink to write the trailer and flush buffers.
An open output file (muxer). Add every encoder first, video and audio, because the muxer's header freezes the stream list. Then push frames through the encoders. Close the sink to write the trailer and flush buffers.
An open output file (muxer). Add every encoder first, video and audio, because the muxer's header freezes the stream list. Then push frames through the encoders. Close the sink to write the trailer and flush buffers.
Types
Functions
Add an audio encoder. Must be called before any frame is written.
Add an audio encoder. Must be called before any frame is written.
Add an audio encoder. Must be called before any frame is written.
Add an audio encoder. Must be called before any frame is written.
Add a video encoder. Must be called before any frame is written.
Add a video encoder. Must be called before any frame is written.
Add a video encoder. Must be called before any frame is written.
Add a video encoder. Must be called before any frame is written.
Flushes every encoder, writes the trailer, and frees the muxer.
Flushes every encoder, writes the trailer, and frees the muxer.
Flushes every encoder, writes the trailer, and frees the muxer.
Flushes every encoder, writes the trailer, and frees the muxer.
Chapters for the output, each with its title and its other tags. Call this before any frame or packet is written. The bounds are on the output's own timeline, whose zero is the earliest source time the output shows: the earliest presentation time of the copied audio and video, counting the samples a stream skips at its start, or the first encoded frame when that is earlier. A caller copying chapters from a MediaSource subtracts that time. For a copy cut between keyframes it is the keyframe before the cut, not the cut itself. A chapter Chapter.id only has to be unique within the list.
Chapters for the output, each with its title and its other tags. Call this before any frame or packet is written. The bounds are on the output's own timeline, whose zero is the earliest source time the output shows: the earliest presentation time of the copied audio and video, counting the samples a stream skips at its start, or the first encoded frame when that is earlier. A caller copying chapters from a MediaSource subtracts that time. For a copy cut between keyframes it is the keyframe before the cut, not the cut itself. A chapter Chapter.id only has to be unique within the list.
Chapters for the output, each with its title and its other tags. Call this before any frame or packet is written. The bounds are on the output's own timeline, whose zero is the earliest source time the output shows: the earliest presentation time of the copied audio and video, counting the samples a stream skips at its start, or the first encoded frame when that is earlier. A caller copying chapters from a MediaSource subtracts that time. For a copy cut between keyframes it is the keyframe before the cut, not the cut itself. A chapter Chapter.id only has to be unique within the list.
Chapters for the output, each with its title and its other tags. Call this before any frame or packet is written. The bounds are on the output's own timeline, whose zero is the earliest source time the output shows: the earliest presentation time of the copied audio and video, counting the samples a stream skips at its start, or the first encoded frame when that is earlier. A caller copying chapters from a MediaSource subtracts that time. For a copy cut between keyframes it is the keyframe before the cut, not the cut itself. A chapter Chapter.id only has to be unique within the list.
Container-level metadata tags (title, artist, comment, …). Call this before any frame or packet is written, because the tags are stored in the header.
Container-level metadata tags (title, artist, comment, …). Call this before any frame or packet is written, because the tags are stored in the header.
Container-level metadata tags (title, artist, comment, …). Call this before any frame or packet is written, because the tags are stored in the header.
Container-level metadata tags (title, artist, comment, …). Call this before any frame or packet is written, because the tags are stored in the header.