Skip to content

How to submit job settings for MediaConvert from the client? #675

Answered by jdisanti
codeandA asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not familiar with MediaConvert, so I can't say if this will work or not, but this is what that given JSON snippet looks like in the Rust SDK's builder pattern:

use aws_sdk_mediaconvert::model::*;

let input = Input::builder()
    .file_input("{input}")
    .audio_selectors("Audio Selector 1",
        AudioSelector::builder()
            .selector_type(AudioSelectorType::Track)
            .tracks(1)
            .build()
    )
    .build();
let output_group = OutputGroup::builder()
    .name("File Group")
    .outputs(
        Output::builder()
            .preset("System-Generic_Hd_Mp4_Avc_Aac_16x9_1920x1080p_24Hz_6Mbps")
            .extension("mp4")
            .name_modifier("_16x9…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@codeandA
Comment options

Answer selected by codeandA
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants