Constructor and Description |
---|
MKVMuxer(SeekableByteChannel s) |
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.
|
MuxerTrack |
addVideoTrack(Codec codec,
VideoCodecMeta meta)
Adds a video track and stores the provided metadata fields inside the
container.
|
static void |
createBuffer(EbmlMaster parent,
MKVType type,
ByteBuffer value) |
static void |
createDate(EbmlMaster parent,
MKVType type,
Date value) |
static void |
createDouble(EbmlMaster parent,
MKVType type,
double value) |
static void |
createLong(EbmlMaster parent,
MKVType type,
long value) |
static void |
createString(EbmlMaster parent,
MKVType type,
String value) |
MKVMuxerTrack |
createVideoTrack(VideoCodecMeta meta,
String codecId) |
void |
finish()
Finalize writing this file.
|
public MKVMuxer(SeekableByteChannel s)
public MKVMuxerTrack createVideoTrack(VideoCodecMeta meta, String codecId)
public void finish() throws IOException
Muxer
finish
in interface Muxer
IOException
public static void createLong(EbmlMaster parent, MKVType type, long value)
public static void createString(EbmlMaster parent, MKVType type, String value)
public static void createDate(EbmlMaster parent, MKVType type, Date value)
public static void createBuffer(EbmlMaster parent, MKVType type, ByteBuffer value)
public static void createDouble(EbmlMaster parent, MKVType type, double value)
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.Copyright © 2017. All rights reserved.