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
    IAudioEncoderStream audioEncoder​(int index)
    Get an audio encoding media stream earlier added to this muxer.
    void close()
    Free resources and close the muxer.
    IRemuxerStream remuxer​(int index)
    Get a remuxer media stream earlier added to this muxer.
    IVideoEncoderStream videoEncoder​(int index)
    Get a video encoding media stream earlier added to this muxer.
  • Method Details

    • videoEncoder

      IVideoEncoderStream videoEncoder​(int index)
      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

      IAudioEncoderStream audioEncoder​(int index)
      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

      IRemuxerStream remuxer​(int index)
      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:
      close in interface java.lang.AutoCloseable