Class FrameOutput
java.lang.Object
com.github.kokorin.jaffree.ffmpeg.BaseInOut<FrameOutput>
com.github.kokorin.jaffree.ffmpeg.BaseOutput<FrameOutput>
com.github.kokorin.jaffree.ffmpeg.TcpOutput<FrameOutput>
com.github.kokorin.jaffree.ffmpeg.FrameOutput
- All Implemented Interfaces:
Output
Allows to consume in Java audio & video frames produced by ffmpeg.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classTcpNegotiatorimplementation which usesFrameOutput.FrameReaderto receive bytes over TCP connection.protected static interface -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFrameOutput(FrameOutput.FrameReader frameReader, String format, String videoCodec, String pixelFormat, String audioCodec) CreateFrameOutputforFFmpeg. -
Method Summary
Modifier and TypeMethodDescriptionfinal FrameOutputCodec copying is impossible, every frame is raw frame.final FrameOutputcopyCodec(StreamType streamType) Codec copying is impossible, every frame is raw frame.final FrameOutputCodec copying is impossible, every frame is raw frame.disableStream(StreamType streamType) Disable stream of the specified type.final FrameOutputsetCodec(StreamType streamType, String codec) Codec change is prohibited afterFrameOutputinstantiation.final FrameOutputCodec change is prohibited afterFrameOutputinstantiation.final FrameOutputFormat change is prohibited afterFrameOutputinstantiation.final FrameOutputsetPixelFormat(String streamSpecifier, String pixelFormat) Pixel format change is prohibited afterFrameOutputinstantiation.static FrameOutputwithConsumer(FrameConsumer consumer) CreatesFrameOutput.protected static FrameOutputwithConsumer(FrameConsumer consumer, ImageFormat imageFormat) static FrameOutputwithConsumerAlpha(FrameConsumer consumer) CreatesFrameOutputwith alpha channel.Methods inherited from class com.github.kokorin.jaffree.ffmpeg.TcpOutput
helperThreadMethods inherited from class com.github.kokorin.jaffree.ffmpeg.BaseOutput
addMap, addMap, addMap, addMap, addProgram, addProgram, buildArguments, setFrameCount, setOutputPosition, setOutputPosition, setSizeLimitMethods inherited from class com.github.kokorin.jaffree.ffmpeg.BaseInOut
addArgument, addArguments, getAdditionalArguments, setDuration, setDuration, setFrameRate, setFrameRate, setFrameSize, setFrameSize, setFrameSize, setPixelFormat, setPosition, setPosition, setPositionEof, setPositionEof, thisAsT, toArgumentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.kokorin.jaffree.ffmpeg.Output
buildArguments, helperThread
-
Constructor Details
-
FrameOutput
protected FrameOutput(FrameOutput.FrameReader frameReader, String format, String videoCodec, String pixelFormat, String audioCodec) CreateFrameOutputforFFmpeg.- Parameters:
frameReader- frame readerformat- media formatvideoCodec- video codecpixelFormat- pixel formataudioCodec- audio codec- See Also:
-
-
Method Details
-
setFormat
Format change is prohibited afterFrameOutputinstantiation.- Overrides:
setFormatin classBaseInOut<FrameOutput>- Parameters:
format- format- Returns:
- never returns
- Throws:
JaffreeException- always
-
setCodec
Codec change is prohibited afterFrameOutputinstantiation.- Overrides:
setCodecin classBaseInOut<FrameOutput>- Parameters:
streamSpecifier- stream specifiercodec- codec name- Returns:
- never returns
- Throws:
JaffreeException- always- See Also:
-
setCodec
Codec change is prohibited afterFrameOutputinstantiation.- Overrides:
setCodecin classBaseInOut<FrameOutput>- Parameters:
streamType- stream typecodec- codec name- Returns:
- never returns
- Throws:
JaffreeException- always
-
copyAllCodecs
Codec copying is impossible, every frame is raw frame.- Overrides:
copyAllCodecsin classBaseOutput<FrameOutput>- Returns:
- never returns
- Throws:
JaffreeException- always
-
copyCodec
Codec copying is impossible, every frame is raw frame.- Overrides:
copyCodecin classBaseOutput<FrameOutput>- Parameters:
streamSpecifier- stream specifier- Returns:
- never returns
- Throws:
JaffreeException- always- See Also:
-
copyCodec
Codec copying is impossible, every frame is raw frame.- Overrides:
copyCodecin classBaseOutput<FrameOutput>- Parameters:
streamType- stream type- Returns:
- never returns
- Throws:
JaffreeException- always
-
setPixelFormat
Pixel format change is prohibited afterFrameOutputinstantiation.- Overrides:
setPixelFormatin classBaseInOut<FrameOutput>- Parameters:
streamSpecifier- stream specifierpixelFormat- pixel format- Returns:
- never returns
- Throws:
JaffreeException- always- See Also:
-
disableStream
Disable stream of the specified type.- Overrides:
disableStreamin classBaseOutput<FrameOutput>- Parameters:
streamType- stream type- Returns:
- this
-
withConsumer
CreatesFrameOutput.- Parameters:
consumer- frame consumer- Returns:
- FrameOutput
-
withConsumerAlpha
CreatesFrameOutputwith alpha channel.- Parameters:
consumer- frame consumer- Returns:
- FrameOutput
-
withConsumer
-