Class JobInput
- java.lang.Object
-
- software.amazon.awssdk.services.elastictranscoder.model.JobInput
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<JobInput.Builder,JobInput>
@Generated("software.amazon.awssdk:codegen") public final class JobInput extends Object implements SdkPojo, Serializable, ToCopyableBuilder<JobInput.Builder,JobInput>
Information about the file that you're transcoding.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceJobInput.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaspectRatio()The aspect ratio of the input file.static JobInput.Builderbuilder()Stringcontainer()The container type for the input file.DetectedPropertiesdetectedProperties()The detected properties of the input file.Encryptionencryption()The encryption settings, if any, that are used for decrypting your input files.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringframeRate()The frame rate of the input file.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InputCaptionsinputCaptions()You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another.Stringinterlaced()Whether the input file is interlaced.Stringkey()The name of the file to transcode.Stringresolution()This value must beauto, which causes Elastic Transcoder to automatically detect the resolution of the input file.List<SdkField<?>>sdkFields()static Class<? extends JobInput.Builder>serializableBuilderClass()TimeSpantimeSpan()Settings for clipping an input.JobInput.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
key
public final String key()
The name of the file to transcode. Elsewhere in the body of the JSON block is the the ID of the pipeline to use for processing the job. The
InputBucketobject in that pipeline tells Elastic Transcoder which Amazon S3 bucket to get the file from.If the file name includes a prefix, such as
cooking/lasagna.mpg, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.- Returns:
- The name of the file to transcode. Elsewhere in the body of the JSON block is the the ID of the pipeline
to use for processing the job. The
InputBucketobject in that pipeline tells Elastic Transcoder which Amazon S3 bucket to get the file from.If the file name includes a prefix, such as
cooking/lasagna.mpg, include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error.
-
frameRate
public final String frameRate()
The frame rate of the input file. If you want Elastic Transcoder to automatically detect the frame rate of the input file, specify
auto. If you want to specify the frame rate for the input file, enter one of the following values:10,15,23.97,24,25,29.97,30,60If you specify a value other than
auto, Elastic Transcoder disables automatic detection of the frame rate.- Returns:
- The frame rate of the input file. If you want Elastic Transcoder to automatically detect the frame rate
of the input file, specify
auto. If you want to specify the frame rate for the input file, enter one of the following values:10,15,23.97,24,25,29.97,30,60If you specify a value other than
auto, Elastic Transcoder disables automatic detection of the frame rate.
-
resolution
public final String resolution()
This value must be
auto, which causes Elastic Transcoder to automatically detect the resolution of the input file.- Returns:
- This value must be
auto, which causes Elastic Transcoder to automatically detect the resolution of the input file.
-
aspectRatio
public final String aspectRatio()
The aspect ratio of the input file. If you want Elastic Transcoder to automatically detect the aspect ratio of the input file, specify
auto. If you want to specify the aspect ratio for the output file, enter one of the following values:1:1,4:3,3:2,16:9If you specify a value other than
auto, Elastic Transcoder disables automatic detection of the aspect ratio.- Returns:
- The aspect ratio of the input file. If you want Elastic Transcoder to automatically detect the aspect
ratio of the input file, specify
auto. If you want to specify the aspect ratio for the output file, enter one of the following values:1:1,4:3,3:2,16:9If you specify a value other than
auto, Elastic Transcoder disables automatic detection of the aspect ratio.
-
interlaced
public final String interlaced()
Whether the input file is interlaced. If you want Elastic Transcoder to automatically detect whether the input file is interlaced, specify
auto. If you want to specify whether the input file is interlaced, enter one of the following values:true,falseIf you specify a value other than
auto, Elastic Transcoder disables automatic detection of interlacing.- Returns:
- Whether the input file is interlaced. If you want Elastic Transcoder to automatically detect whether the
input file is interlaced, specify
auto. If you want to specify whether the input file is interlaced, enter one of the following values:true,falseIf you specify a value other than
auto, Elastic Transcoder disables automatic detection of interlacing.
-
container
public final String container()
The container type for the input file. If you want Elastic Transcoder to automatically detect the container type of the input file, specify
auto. If you want to specify the container type for the input file, enter one of the following values:3gp,aac,asf,avi,divx,flv,m4a,mkv,mov,mp3,mp4,mpeg,mpeg-ps,mpeg-ts,mxf,ogg,vob,wav,webm- Returns:
- The container type for the input file. If you want Elastic Transcoder to automatically detect the
container type of the input file, specify
auto. If you want to specify the container type for the input file, enter one of the following values:3gp,aac,asf,avi,divx,flv,m4a,mkv,mov,mp3,mp4,mpeg,mpeg-ps,mpeg-ts,mxf,ogg,vob,wav,webm
-
encryption
public final Encryption encryption()
The encryption settings, if any, that are used for decrypting your input files. If your input file is encrypted, you must specify the mode that Elastic Transcoder uses to decrypt your file.
- Returns:
- The encryption settings, if any, that are used for decrypting your input files. If your input file is encrypted, you must specify the mode that Elastic Transcoder uses to decrypt your file.
-
timeSpan
public final TimeSpan timeSpan()
Settings for clipping an input. Each input can have different clip settings.
- Returns:
- Settings for clipping an input. Each input can have different clip settings.
-
inputCaptions
public final InputCaptions inputCaptions()
You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions:
-
Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.
Valid input values include:
CEA-608 (EIA-608, first non-empty channel only),CEA-708 (EIA-708, first non-empty channel only), andmov-textValid outputs include:
mov-textElastic Transcoder supports a maximum of one embedded format per output.
-
Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.
Valid input values include:
dfxp(first div element only),ebu-tt,scc,smpt,srt,ttml(first div element only), andwebvttValid outputs include:
dfxp(first div element only),scc,srt, andwebvtt.
If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.
To remove captions or leave the captions empty, set
Captionsto null. To pass through existing captions unchanged, set theMergePolicytoMergeRetain, and pass in a nullCaptionSourcesarray.For more information on embedded files, see the Subtitles Wikipedia page.
For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.
- Returns:
- You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All
captions must be in UTF-8. Elastic Transcoder supports two types of captions:
-
Embedded: Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file.
Valid input values include:
CEA-608 (EIA-608, first non-empty channel only),CEA-708 (EIA-708, first non-empty channel only), andmov-textValid outputs include:
mov-textElastic Transcoder supports a maximum of one embedded format per output.
-
Sidecar: Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file.
Valid input values include:
dfxp(first div element only),ebu-tt,scc,smpt,srt,ttml(first div element only), andwebvttValid outputs include:
dfxp(first div element only),scc,srt, andwebvtt.
If you want ttml or smpte-tt compatible captions, specify dfxp as your output format.
Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process.
To remove captions or leave the captions empty, set
Captionsto null. To pass through existing captions unchanged, set theMergePolicytoMergeRetain, and pass in a nullCaptionSourcesarray.For more information on embedded files, see the Subtitles Wikipedia page.
For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages.
-
-
-
detectedProperties
public final DetectedProperties detectedProperties()
The detected properties of the input file.
- Returns:
- The detected properties of the input file.
-
toBuilder
public JobInput.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<JobInput.Builder,JobInput>
-
builder
public static JobInput.Builder builder()
-
serializableBuilderClass
public static Class<? extends JobInput.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-