public class RawMuxer extends Object implements Muxer, MuxerTrack
Constructor and Description |
---|
RawMuxer(SeekableByteChannel destStream) |
Modifier and Type | Method and Description |
---|---|
MuxerTrack |
addAudioTrack(Codec codec,
AudioCodecMeta meta)
Adds an audio track and stores the provided metadata fields inside the
container.
|
void |
addFrame(Packet outPacket) |
MuxerTrack |
addVideoTrack(Codec codec,
VideoCodecMeta meta)
Adds a video track and stores the provided metadata fields inside the
container.
|
void |
finish()
Finalize writing this file.
|
public RawMuxer(SeekableByteChannel destStream)
public MuxerTrack addVideoTrack(Codec codec, VideoCodecMeta meta)
Muxer
addVideoTrack
in interface Muxer
codec
- Codec type stored in this track.meta
- Video metadata including the codec type.public MuxerTrack addAudioTrack(Codec codec, AudioCodecMeta meta)
Muxer
addAudioTrack
in interface Muxer
codec
- Codec type stored in this track.meta
- Audio metadata including the codec type.public void finish() throws IOException
Muxer
finish
in interface Muxer
IOException
public void addFrame(Packet outPacket) throws IOException
addFrame
in interface MuxerTrack
IOException
Copyright © 2019. All rights reserved.