Package com.zakgof.velvetvideo
Interface IMuxer
- All Superinterfaces:
java.lang.AutoCloseable
public interface IMuxer
extends java.lang.AutoCloseable
Muxer - interface to write media streams into a media container.
-
Method Summary
Modifier and Type Method Description IAudioEncoderStreamaudioEncoder(int index)Get an audio encoding media stream earlier added to this muxer.voidclose()Free resources and close the muxer.IRemuxerStreamremuxer(int index)Get a remuxer media stream earlier added to this muxer.IVideoEncoderStreamvideoEncoder(int index)Get a video encoding media stream earlier added to this muxer.
-
Method Details
-
videoEncoder
Get a video encoding media stream earlier added to this muxer. Throws an exception if the stream with such index does not exist or is not a video encoding stream.- Parameters:
index- stream index.- Returns:
- encoder stream instance
-
audioEncoder
Get an audio encoding media stream earlier added to this muxer. Throws an exception if the stream with such index does not exist or is not an audio encoding stream.- Parameters:
index- stream index.- Returns:
- encoder stream instance
-
remuxer
Get a remuxer media stream earlier added to this muxer. Throws an exception if the stream with such index does not exist or is not a remuxing stream.- Parameters:
index- stream index.- Returns:
- remuxer stream instance
-
close
void close()Free resources and close the muxer. It is necessary to call this method to avoid resource leaking.- Specified by:
closein interfacejava.lang.AutoCloseable
-