Skip to content

Commit e33ec26

Browse files
committed
Updated build number and API
1 parent 5d210d8 commit e33ec26

File tree

1 file changed

+4
-4
lines changed
  • kotlin/services/mediaconvert/src/main/kotlin/com/kotlin/mediaconvert

1 file changed

+4
-4
lines changed

kotlin/services/mediaconvert/src/main/kotlin/com/kotlin/mediaconvert/CreateJob.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ suspend fun main(args: Array<String>) {
6666
suspend fun createMediaJob(
6767
mcClient: MediaConvertClient,
6868
mcRoleARN: String,
69-
fileInput: String
69+
fileInput1: String
7070
): String? {
7171
// Step 1: Describe endpoints to get the MediaConvert endpoint URL
7272
val describeResponse = mcClient.describeEndpoints(
@@ -87,15 +87,15 @@ suspend fun createMediaJob(
8787
}
8888

8989
// Output destination folder in S3 - put in 'output/' folder beside input
90-
val outputDestination = fileInput.substringBeforeLast('/') + "/output/"
90+
val outputDestination = fileInput1.substringBeforeLast('/') + "/output/"
9191

9292
// Step 3: Create the job request with minimal valid video codec settings
9393
val jobRequest = CreateJobRequest {
9494
role = mcRoleARN
9595
settings = JobSettings {
9696
inputs = listOf(
9797
Input {
98-
this.fileInput = fileInput
98+
fileInput = fileInput1
9999
}
100100
)
101101
outputGroups = listOf(
@@ -121,7 +121,7 @@ suspend fun createMediaJob(
121121
qvbrSettings = H264QvbrSettings {
122122
qvbrQualityLevel = 7
123123
}
124-
maxBitrate = 5000000
124+
maxBitrate = 5_000_000
125125
codecLevel = H264CodecLevel.Auto
126126
codecProfile = H264CodecProfile.Main
127127
framerateControl = H264FramerateControl.InitializeFromSource

0 commit comments

Comments
 (0)