Class PipeOutput

All Implemented Interfaces:
Output

public class PipeOutput extends TcpOutput<PipeOutput> implements Output
Output implementation which passes ffmpeg output to OutputStream.

Note OutputStream is non seekable, so ffmpeg may not correctly finalize many formats. Consider using ChannelOutput

See Also:
  • Constructor Details

    • PipeOutput

      protected PipeOutput(OutputStream destination, int bufferSize)
      Creates PipeOutput.
      Parameters:
      destination - output stream to copy to
      bufferSize - buffer size to copy data
    • PipeOutput

      protected PipeOutput(PipeOutputNegotiator negotiator)
  • Method Details

    • pumpTo

      public static PipeOutput pumpTo(OutputStream destination)
      Creates PipeOutput with default buffer size.
      Parameters:
      destination - output stream to copy to
      Returns:
      PipeOutput
    • pumpTo

      public static PipeOutput pumpTo(OutputStream destination, int bufferSize)
      Creates PipeOutput.
      Parameters:
      destination - output stream to copy to
      bufferSize - buffer size to copy data
      Returns:
      PipeOutput