Class JobInput
- All Implemented Interfaces:
Serializable
,Cloneable
Information about the file that you're transcoding.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The aspect ratio of the input file.The container type for the input file.The detected properties of the input file.The encryption settings, if any, that are used for decrypting your input files.The frame rate of the input file.Whether the input file is interlaced.getKey()
The name of the file to transcode.This value must beauto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.int
hashCode()
void
setAspectRatio
(String aspectRatio) The aspect ratio of the input file.void
setContainer
(String container) The container type for the input file.void
setDetectedProperties
(DetectedProperties detectedProperties) The detected properties of the input file.void
setEncryption
(Encryption encryption) The encryption settings, if any, that are used for decrypting your input files.void
setFrameRate
(String frameRate) The frame rate of the input file.void
setInterlaced
(String interlaced) Whether the input file is interlaced.void
The name of the file to transcode.void
setResolution
(String resolution) This value must beauto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.toString()
Returns a string representation of this object; useful for testing and debugging.withAspectRatio
(String aspectRatio) The aspect ratio of the input file.withContainer
(String container) The container type for the input file.withDetectedProperties
(DetectedProperties detectedProperties) The detected properties of the input file.withEncryption
(Encryption encryption) The encryption settings, if any, that are used for decrypting your input files.withFrameRate
(String frameRate) The frame rate of the input file.withInterlaced
(String interlaced) Whether the input file is interlaced.The name of the file to transcode.withResolution
(String resolution) This value must beauto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.
-
Constructor Details
-
JobInput
public JobInput()
-
-
Method Details
-
setKey
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
InputBucket
object 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.- Parameters:
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. TheInputBucket
object 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.
-
getKey
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
InputBucket
object 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
InputBucket
object 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.
-
withKey
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
InputBucket
object 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.- Parameters:
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. TheInputBucket
object 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:
- Returns a reference to this object so that method calls can be chained together.
-
setFrameRate
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
,60
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of the frame rate.- Parameters:
frameRate
- The frame rate of the input file. If you want Elastic Transcoder to automatically detect the frame rate of the input file, specifyauto
. 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
,60
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of the frame rate.
-
getFrameRate
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
,60
If 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
,60
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of the frame rate.
-
withFrameRate
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
,60
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of the frame rate.- Parameters:
frameRate
- The frame rate of the input file. If you want Elastic Transcoder to automatically detect the frame rate of the input file, specifyauto
. 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
,60
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of the frame rate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResolution
This value must be
auto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.- Parameters:
resolution
- This value must beauto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.
-
getResolution
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.
-
withResolution
This value must be
auto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.- Parameters:
resolution
- This value must beauto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAspectRatio
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:9
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of the aspect ratio.- Parameters:
aspectRatio
- The aspect ratio of the input file. If you want Elastic Transcoder to automatically detect the aspect ratio of the input file, specifyauto
. 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:9
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of the aspect ratio.
-
getAspectRatio
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:9
If 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:9
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of the aspect ratio.
-
withAspectRatio
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:9
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of the aspect ratio.- Parameters:
aspectRatio
- The aspect ratio of the input file. If you want Elastic Transcoder to automatically detect the aspect ratio of the input file, specifyauto
. 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:9
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of the aspect ratio.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInterlaced
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
,false
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of interlacing.- Parameters:
interlaced
- Whether the input file is interlaced. If you want Elastic Transcoder to automatically detect whether the input file is interlaced, specifyauto
. If you want to specify whether the input file is interlaced, enter one of the following values:true
,false
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of interlacing.
-
getInterlaced
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
,false
If 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
,false
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of interlacing.
-
withInterlaced
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
,false
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of interlacing.- Parameters:
interlaced
- Whether the input file is interlaced. If you want Elastic Transcoder to automatically detect whether the input file is interlaced, specifyauto
. If you want to specify whether the input file is interlaced, enter one of the following values:true
,false
If you specify a value other than
auto
, Elastic Transcoder disables automatic detection of interlacing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setContainer
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
- Parameters:
container
- The container type for the input file. If you want Elastic Transcoder to automatically detect the container type of the input file, specifyauto
. 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
-
getContainer
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
-
withContainer
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
- Parameters:
container
- The container type for the input file. If you want Elastic Transcoder to automatically detect the container type of the input file, specifyauto
. 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:
- Returns a reference to this object so that method calls can be chained together.
-
setEncryption
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 will use to decrypt your file.
- Parameters:
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 will use to decrypt your file.
-
getEncryption
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 will use 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 will use to decrypt your file.
-
withEncryption
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 will use to decrypt your file.
- Parameters:
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 will use to decrypt your file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDetectedProperties
The detected properties of the input file.
- Parameters:
detectedProperties
- The detected properties of the input file.
-
getDetectedProperties
The detected properties of the input file.
- Returns:
- The detected properties of the input file.
-
withDetectedProperties
The detected properties of the input file.
- Parameters:
detectedProperties
- The detected properties of the input file.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-