org.jcodec.containers.mkv
Class MKVRemuxer

java.lang.Object
  extended by org.jcodec.containers.mkv.MKVRemuxer

public class MKVRemuxer
extends Object


Nested Class Summary
static class MKVRemuxer.BlockComparator
           
 
Field Summary
 List<MasterElement> tree
           
 
Constructor Summary
MKVRemuxer(List<MasterElement> tree, FileChannel source)
           
 
Method Summary
 void mux(FileChannel os)
          The JCodec convention to muxing MKV files is following
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tree

public final List<MasterElement> tree
Constructor Detail

MKVRemuxer

public MKVRemuxer(List<MasterElement> tree,
                  FileChannel source)
Method Detail

mux

public void mux(FileChannel os)
         throws IOException
The JCodec convention to muxing MKV files is following
 +----------+
 | SeekHead |
 +----------+
 | Info?    |
 +----------+
 | Tracks?  |
 +----------+
 | Tags?    |
 +----------+
 | Cues     |
 +----------+
 | Cluster  |
 +----------+
 | Cluster  |
 +----------+
 | ....     |
 
Which stands for "Seek Head" element followed by at most one "Info" element, followed by at most one "Tracks" element, followed by at most one "Tags" element, followed by Cues element, followed by as many as needed Cluster elements Also "Seek Head" contains pointers to Info, Tracks, Tags, and Cues (if correspodning element is present), but not to Cluster. In its turn Cues contains pointers to every Cluster element. In case of big cluster, several CuePoints can point to a single Cluster element.

Parameters:
os -
Throws:
IOException


Copyright © 2013. All Rights Reserved.