public class WavMuxer extends Object implements Muxer, MuxerTrack
| Modifier and Type | Field and Description |
|---|---|
protected WavHeader |
header |
protected SeekableByteChannel |
out |
protected int |
written |
| Constructor and Description |
|---|
WavMuxer(SeekableByteChannel out) |
| 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 |
close() |
void |
finish()
Finalize writing this file.
|
protected SeekableByteChannel out
protected WavHeader header
protected int written
public WavMuxer(SeekableByteChannel out) throws IOException
IOExceptionpublic void addFrame(Packet outPacket) throws IOException
addFrame in interface MuxerTrackIOExceptionpublic void close()
throws IOException
IOExceptionpublic MuxerTrack addVideoTrack(Codec codec, VideoCodecMeta meta)
MuxeraddVideoTrack in interface Muxercodec - Codec type stored in this track.meta - Video metadata including the codec type.public MuxerTrack addAudioTrack(Codec codec, AudioCodecMeta meta)
MuxeraddAudioTrack in interface Muxercodec - Codec type stored in this track.meta - Audio metadata including the codec type.public void finish()
throws IOException
Muxerfinish in interface MuxerIOExceptionCopyright © 2019. All rights reserved.