Class ChannelInput

java.lang.Object
com.github.kokorin.jaffree.ffprobe.TcpInput
com.github.kokorin.jaffree.ffprobe.ChannelInput
All Implemented Interfaces:
Input

public class ChannelInput extends TcpInput
ChannelInput is the implementation of Input which allows usage of SeekableByteChannel as ffprobe input.
  • Constructor Details

    • ChannelInput

      protected ChannelInput(String fileName, SeekableByteChannel channel, int bufferSize)
      Creates ChannelInput.
      Parameters:
      fileName - file name
      channel - byte channel
      bufferSize - buffer size to use when copying data
  • Method Details

    • fromChannel

      public static ChannelInput fromChannel(SeekableByteChannel channel)
      Creates ChannelInput.

      ffmpeg uses fileName's extension to autodetect input format

      Parameters:
      channel - byte channel
      Returns:
      ChannelInput
    • fromChannel

      public static ChannelInput fromChannel(SeekableByteChannel channel, int bufferSize)
      Creates ChannelInput.

      ffmpeg uses fileName's extension to autodetect input format

      Parameters:
      channel - byte channel
      bufferSize - buffer size to copy data
      Returns:
      ChannelInput
    • fromChannel

      public static ChannelInput fromChannel(String fileName, SeekableByteChannel channel)
      Creates ChannelInput.

      ffmpeg uses fileName's extension to autodetect input format

      Parameters:
      fileName - file name
      channel - byte channel
      Returns:
      ChannelInput
    • fromChannel

      public static ChannelInput fromChannel(String fileName, SeekableByteChannel channel, int bufferSize)
      Creates ChannelInput.

      ffmpeg uses fileName's extension to autodetect input format

      Parameters:
      fileName - file name
      channel - byte channel
      bufferSize - buffer size to copy data
      Returns:
      ChannelInput