Skip to content

Commit

Permalink
feat: qvbr aws example profile
Browse files Browse the repository at this point in the history
  • Loading branch information
oshinongit committed Aug 9, 2024
1 parent f858bc6 commit edc1f14
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 5 deletions.
45 changes: 45 additions & 0 deletions examples/aws/encoding-profile-qvbr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"Inputs": [
{
"TimecodeSource": "ZEROBASED",
"VideoSelector": {},
"FileInput": "$INPUT"
}
],
"OutputGroups": [
{
"Name": "File Group",
"OutputGroupSettings": {
"Type": "FILE_GROUP_SETTINGS",
"FileGroupSettings": {
"Destination": "$OUTPUT"
}
},
"Outputs": [
{
"VideoDescription": {
"CodecSettings": {
"Codec": "H_264",
"H264Settings": {
"RateControlMode": "QVBR",
"QvbrSettings": {
"QvbrQualityLevel": "$QVBRQUALITYLEVEL"
},
"CodecProfile": "HIGH"
}
},
"Width": "$WIDTH",
"Height": "$HEIGHT"
},
"ContainerSettings": {
"Container": "MP4",
"Mp4Settings": {}
}
}
]
}
],
"TimecodeConfig": {
"Source": "ZEROBASED"
}
}
12 changes: 7 additions & 5 deletions src/pipelines/aws/aws-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,13 @@ export default class AWSPipeline implements Pipeline {
'$HEIGHT',
targetResolution.height.toString()
);
settingsStr = this.stringReplacement(
settingsStr,
'$BITRATE',
targetBitrate.toString()
);
if (!settingsStr.includes("$QVBRQUALITYLEVEL")) {
settingsStr = this.stringReplacement(
settingsStr,
'$BITRATE',
targetBitrate.toString()
);
}
// HEVC specific settings
settingsStr = this.stringReplacement(
settingsStr,
Expand Down

0 comments on commit edc1f14

Please sign in to comment.