Class ChannelInput
java.lang.Object
com.github.kokorin.jaffree.ffprobe.TcpInput
com.github.kokorin.jaffree.ffprobe.ChannelInput
- All Implemented Interfaces:
Input
ChannelInput is the implementation of Input
which allows usage of SeekableByteChannel as ffprobe input.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChannelInput(String fileName, SeekableByteChannel channel, int bufferSize) CreatesChannelInput. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelInputfromChannel(String fileName, SeekableByteChannel channel) CreatesChannelInput.static ChannelInputfromChannel(String fileName, SeekableByteChannel channel, int bufferSize) CreatesChannelInput.static ChannelInputfromChannel(SeekableByteChannel channel) CreatesChannelInput.static ChannelInputfromChannel(SeekableByteChannel channel, int bufferSize) CreatesChannelInput.Methods inherited from class com.github.kokorin.jaffree.ffprobe.TcpInput
getUrl, helperThread
-
Constructor Details
-
ChannelInput
CreatesChannelInput.- Parameters:
fileName- file namechannel- byte channelbufferSize- buffer size to use when copying data
-
-
Method Details
-
fromChannel
CreatesChannelInput.ffmpeg uses fileName's extension to autodetect input format
- Parameters:
channel- byte channel- Returns:
- ChannelInput
-
fromChannel
CreatesChannelInput.ffmpeg uses fileName's extension to autodetect input format
- Parameters:
channel- byte channelbufferSize- buffer size to copy data- Returns:
- ChannelInput
-
fromChannel
CreatesChannelInput.ffmpeg uses fileName's extension to autodetect input format
- Parameters:
fileName- file namechannel- byte channel- Returns:
- ChannelInput
-
fromChannel
public static ChannelInput fromChannel(String fileName, SeekableByteChannel channel, int bufferSize) CreatesChannelInput.ffmpeg uses fileName's extension to autodetect input format
- Parameters:
fileName- file namechannel- byte channelbufferSize- buffer size to copy data- Returns:
- ChannelInput
-