Struct aws_sdk_elastictranscoder::types::JobInput
source · #[non_exhaustive]pub struct JobInput {
pub key: Option<String>,
pub frame_rate: Option<String>,
pub resolution: Option<String>,
pub aspect_ratio: Option<String>,
pub interlaced: Option<String>,
pub container: Option<String>,
pub encryption: Option<Encryption>,
pub time_span: Option<TimeSpan>,
pub input_captions: Option<InputCaptions>,
pub detected_properties: Option<DetectedProperties>,
}
Expand description
Information about the file that you're transcoding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key: Option<String>
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.
frame_rate: Option<String>
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.
resolution: Option<String>
This value must be auto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.
aspect_ratio: Option<String>
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.
interlaced: Option<String>
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.
container: Option<String>
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: Option<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.
time_span: Option<TimeSpan>
Settings for clipping an input. Each input can have different clip settings.
input_captions: Option<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-text
Valid outputs include:
mov-text
Elastic 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), andwebvtt
Valid 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 Captions
to null. To pass through existing captions unchanged, set the MergePolicy
to MergeRetain
, and pass in a null CaptionSources
array.
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.
detected_properties: Option<DetectedProperties>
The detected properties of the input file.
Implementations§
source§impl JobInput
impl JobInput
sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
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.
sourcepub fn frame_rate(&self) -> Option<&str>
pub fn frame_rate(&self) -> Option<&str>
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.
sourcepub fn resolution(&self) -> Option<&str>
pub fn resolution(&self) -> Option<&str>
This value must be auto
, which causes Elastic Transcoder to automatically detect the resolution of the input file.
sourcepub fn aspect_ratio(&self) -> Option<&str>
pub fn aspect_ratio(&self) -> Option<&str>
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.
sourcepub fn interlaced(&self) -> Option<&str>
pub fn interlaced(&self) -> Option<&str>
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.
sourcepub fn container(&self) -> Option<&str>
pub fn container(&self) -> Option<&str>
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
sourcepub fn encryption(&self) -> Option<&Encryption>
pub fn encryption(&self) -> Option<&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.
sourcepub fn time_span(&self) -> Option<&TimeSpan>
pub fn time_span(&self) -> Option<&TimeSpan>
Settings for clipping an input. Each input can have different clip settings.
sourcepub fn input_captions(&self) -> Option<&InputCaptions>
pub fn input_captions(&self) -> Option<&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-text
Valid outputs include:
mov-text
Elastic 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), andwebvtt
Valid 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 Captions
to null. To pass through existing captions unchanged, set the MergePolicy
to MergeRetain
, and pass in a null CaptionSources
array.
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.
sourcepub fn detected_properties(&self) -> Option<&DetectedProperties>
pub fn detected_properties(&self) -> Option<&DetectedProperties>
The detected properties of the input file.
Trait Implementations§
impl StructuralPartialEq for JobInput
Auto Trait Implementations§
impl Freeze for JobInput
impl RefUnwindSafe for JobInput
impl Send for JobInput
impl Sync for JobInput
impl Unpin for JobInput
impl UnwindSafe for JobInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more