humble-video-noarch/src/main/java/io/humble/video/Muxer.java
public boolean write(MediaPacket packet, boolean forceInterleave) {
    return VideoJNI.Muxer_write(swigCPtr, this, MediaPacket.getCPtr(packet), packet, forceInterleave);
  }
public boolean write(MediaPacket packet, boolean forceInterleave) {
    return VideoJNI.Muxer_write(swigCPtr, this, MediaPacket.getCPtr(packet), packet, forceInterleave);
  }
Writes the given packet to the Muxer.<br>
<br>
@param packet The packet to write.<br>
@param forceInterleave If true, this Muxer will ensure that all packets are interleaved across streams<br>
(i.e. monotonically increasing timestamps in the Muxer container). If false, then the caller<br>
is responsible for ensuring the interleaving is valid for the container. Note this method is faster<br>
if forceInterleave is false.<br>
<br>
@return true if all data has been flushed, false if data remains to be flushed.<br>
<br>
@throws InvalidArgument if packet is null.<br>
@throws InvalidArgument if packet is not complete.<br>
@throws RuntimeException for other errors.